分享黑五类中常用的屏蔽跳转代码,不管是信息流广告不是搜索广告,经常会用到,目的就是做判断,避开机审和人审,最好的屏蔽代码就是在加一层,除了地区跳转,判断其客户端或是媒体来源来进行跳转,下面由3个线上加2个php的。
<script type=”text/javascript” src=”http://pv.sohu.com/cityjson?ie=utf-8″></script>
<script>
var city = returnCitySN[“cname”];
if (city.indexOf(“北京”) >= 0 || city.indexOf(“重庆”) >= 0)
{
location.href =”审核页”;
}
</script>
2、用新浪的数据库判断地区跳转
<script language=”javascript” type=”text/javascript” src=”http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js”></script>
<script>
if(remote_ip_info.city==’北京’ || remote_ip_info.city==’上海’ || remote_ip_info.city==’天津’|| remote_ip_info.city==’1′)
{
window.location.href=”审核页”;
}
</script>
3、判断设备跳转-pc页都正常,打开移动端跳转到推广页面
<script type=”text/javascript”>
var mobileAgent = new Array(“iphone”, “ipod”, “ipad”, “android”, “mobile”, “blackberry”, “webos”, “incognito”, “webmate”, “bada”, “nokia”, “lg”, “ucweb”, “skyfire”);
var browser = navigator.userAgent.toLowerCase();
var isMobile = false;
for (var i=0; i<mobileAgent.length; i++)
{
if (browser.indexOf(mobileAgent[i])!=-1){ isMobile = true; //alert(mobileAgent[i]);location.href = ‘目标页';break;}
}
</script>
4.php版用仿真数据库判断pc为审核页,移动端+地区为推广页
http://note.youdao.com/groupshare/?token=3DC7F7853EDB48CD8492B9ED57FD19BF&gid=15349587 仿真,阅读密码:ccff123
5.php版用本地数据库判断pc为审核页,移动端+地区为推广页
http://note.youdao.com/groupshare/?token=BA1754FFB7A8485D8725FBD7B267A434&gid=15349587 本地,阅读密码:ccff123