zoukankan      html  css  js  c++  java
  • 黑五类必用的屏蔽跳转代码

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

    正因为来之不易,所以才有了后来的倍加珍惜。
  • 相关阅读:
    第三章 第六节 SWT类的常量与函数
    第四章 第一节 概述
    第四章 第四节 使用RowLayout
    第四章 第三节 使用FillLayout
    IIS7下使用4.0框架集成模式URLRewriter重写中文URL乱码问题
    Google Chrome下无法获取标签innerHTML问题
    IIS7.5应用程序池集成模式和经典模式的区别
    IIS使用4.0框架时Request.RawUrl获取问题
    解决iOS与pad里ifram无法滑动问题
    react实现双向绑定
  • 原文地址:https://www.cnblogs.com/jjxhp/p/9278524.html
Copyright © 2011-2022 走看看