QQ防红跳转PHP代码,最新版防红代码!(QQ防红跳转)

防红专用 QQ微信打开提示跳转浏览器的代码

只要将下面代码插入index.php头部即可!

防红代码

<?php
//通过php代码,判断是否为qq,是qq显示防封页面,自动跳转,非普通防红防封代码,内置qq浏览器,支付宝,淘宝,us浏览器等自动跳转功能
//把下代码放在index.php最顶部
$conf['qqjump']=1;if(strpos($_SERVER['HTTP_USER_AGENT'], 'QQ/')||strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger')!==false && $conf['qqjump']==1){$siteurl='http://'.$_SERVER['SERVER_NAME'].':'.$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];echo '
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>请使用浏览器打开</title>
    <style type="text/css">
        .loader {
            width: 320px;
            margin: 50px auto 70px;
            position: relative;
             margin-top: 180px;
             /*text-align:center;*/
        }
        .loader .loading-1 {
            margin:0px auto;
            position: relative;
            width: 70%;
            height: 10px;
            border: 1px solid #69d2e7;
            border-radius: 10px;
            animation: turn 4s linear 1.75s infinite;
        }
        .loader .loading-1:before {
            content: "";
            display: block;
            position: absolute;
            width: 0%;
            height: 100%;
            background: #69d2e7;
            box-shadow: 10px 0px 15px 0px #69d2e7;
            animation: load 2s linear infinite;
        }
        .loader .loading-2 {
            width: 100%;
            position: absolute;
            top: 20px;
            color: #69d2e7;
            font-size: 22px;
            text-align: center;
            animation: bounce 2s  linear infinite;
        }
        @keyframes load {
            0% {
                width: 0%;
            }
            87.5%, 100% {
                width: 100%;
            }
        }
        @keyframes turn {
            0% {
                transform: rotateY(0deg);
            }
            6.25%, 50% {
                transform: rotateY(180deg);
            }
            56.25%, 100% {
                transform: rotateY(360deg);
            }
        }
        @keyframes bounce {
            0%,100% {
                top: 10px;
            }
            12.5% {
                top: 30px;
            }
        }
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    html {
      font-size: calc(100vw / 7.5);
    }
    html,
    body {
      width: 100%;
      height: 100%;
      overflow: hidden;
    }
    .share_box {
      position: relative;
      width: 100vw;
      height: 100vh;
      overflow: hidden;
    }
    .header_box {
      width: 100%;
      height: auto;
      overflow: hidden;
    }
    .header_box .bg {
      width: 100%;
      display: block;
    }
    .header_box .content {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      padding: 20px;
    }
    .header_box .content p {
      width: 100%;
      height: .6207rem;
      line-height: .6207rem;
      color: #fff;
      font-size: .3103rem;
    }
    .header_box .content p img {
      vertical-align: top;
      height: .4828rem;
      margin-top: .069rem;
    }
    .footer_box {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 20%;
    }
    .footer_box .p_1 {
      width: 100%;
      height: .4828rem;
      line-height: .4828rem;
      margin-bottom: .069rem;
      color: #000;
      font-size: .3103rem;
      text-align: center;
    }
    .footer_box .p_2 {
      position: relative;
      width: 100%;
      height: .4828rem;
      line-height: .4828rem;
      margin-bottom: .3793rem;
      color: #3764eb;
      font-size: .3103rem;
      text-align: center;
    }
    .footer_box .p_2::before,
    .footer_box .p_2::after {
      content: "";
      display: inline-block;
      vertical-align: top;
      width: .6897rem;
      height: .0138rem;
      margin-top: .2345rem;
      margin: .2345rem .2069rem;
      background-color: #3764eb;
    }
    .footer_box .button {
      width: 4.4483rem;
      height: .8414rem;
      line-height: .8414rem;
      margin: 0 auto;
      background-color: #3764eb;
      border-radius: .6897rem;
      color: #fff;
      font-size: .3448rem;
      font-weight: 500;
      text-align: center;
    }
    </style>
</head>
<body>  
<div>
    <!-- 头部 -->
    <div>
      <img src="https://vience6-1253314979.cos.ap-beijing.myqcloud.com/0515f57e7d698.webp">
      <div>
        <p>点击右上角的 <img src="https://vience6-1253314979.cos.ap-beijing.myqcloud.com/e8410d32a43c1.webp"> Safari打开</p>
        <p>可以继续浏览本站哦~</p>
      </div>
    </div>
        <div>
    <div>
    <header>
            <!--h1>小姐姐正在请求你<span>使用其他浏览器打开本站</span></h1-->
    </header>
        <div >
                <div>
                    <div>
                        <div>
                            <div>
                            <a style="display: none;" href="" id="vurl" rel="noreferrer"></a>
                                <div></div>
                                <div>因QQ自带浏览器不支持FLV<br>请点击右上角使用其他浏览器
                                </div>
    
 <script src="https://code.jquery.com/jquery-3.3.1.min.js" rel="external nofollow" ></script>
 <script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js" rel="external nofollow" ></script>
<script>
function openu(u){
document.getElementById("vurl").href= u;
document.getElementById("vurl").click();
}
var url = window.location.href;
    if(navigator.userAgent.indexOf("QQ/")> -1){
        //openu("ucbrowser://"+url);
        openu("mttbrowser://url="+url);
        //openu("baiduboxapp://browse?url="+url);
        //openu("googlechrome://browse?url="+url);
        //openu("mibrowser:"+url);
        //openu("taobao://"+url.split("://")[1]);
        //openu("alipays://platformapi/startapp?appId=20000067&url="+url);
        $("html").on("click",function(){
            //openu("ucbrowser://"+url);
            openu("mttbrowser://url="+url);
            //openu("baiduboxapp://browse?url="+url);
            //openu("googlechrome://browse?url="+url);
            //openu("mibrowser:"+url);
            //openu("taobao://"+url.split("://")[1]);
            //openu("alipays://platformapi/startapp?appId=20000067&url="+url);
        });
    }else if(navigator.userAgent.indexOf("MicroMessenger") > -1){
        if(navigator.userAgent.indexOf("Android") > -1){
            var iframe = document.createElement("iframe");
            iframe.style.display = "none";
            document.body.appendChild(iframe);
        }else{
        }
    }                                                       
</script>
                              </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
';exit; } ?>

如何起到防封作用?

尽量多加一些域名,加50个域名被封的概率为2% ,加100个域名被封的概率为1%

上传本文件,之后绑定个域名就行了,切记网站绑定的域名一定是没有封禁的。

推广用这个域名推广,把内容网站绑定好的域名按教程写在代码里面。

不可能起到一定防封,只能有一些防封作用,特殊类网站一定会被封,不要有侥幸心理。

© 版权声明
THE END
喜欢就支持一下吧
点赞11 分享