• 黑五类必用的屏蔽跳转代码


    分享黑五类中常用的屏蔽跳转代码,不管是信息流广告不是搜索广告,经常会用到,目的就是做判断,避开机审和人审,最好的屏蔽代码就是在加一层,除了地区跳转,判断其客户端或是媒体来源来进行跳转,下面由3个线上加2个php的。

    屏蔽跳转地区代码
     
    1、用搜狐的数据库判断地区跳转

    <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

    正因为来之不易,所以才有了后来的倍加珍惜。
  • 相关阅读:
    为什么越来越少的人用jQuery
    远程工作是一种怎样的体验?
    JavaScript黑客是这样窃取比特币的,Vue开发者不用担心!
    原有vue项目接入typescript
    ES6核心特性
    强烈推荐10个值得订阅的国外技术周报
    jquery ajax超时设置(转载)
    Multiple “order by” in LINQ(转载)
    Cookies, Claims and Authentication in ASP.NET Core(转载)
    Json.NET序列化后包含类型,保证序列化和反序列化的对象类型相同(转载)
  • 原文地址:https://www.cnblogs.com/jjxhp/p/9278524.html
Copyright © 2020-2023  润新知