<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>js判断客户端ip地址跳转</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<script src="http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js"></script>
</head>
<body>
<script>
if(remote_ip_info.province != "广东"){
location.href="http://a.com"
}else{
location.href="http://b.com"
}
</script>
</body>
</html>
【摘自百度经验】