网站LOGO
公爵书房 | 技术分享
页面加载中
10月3日
网站LOGO 公爵书房 | 技术分享
以指键之轻,承载知识之重
菜单
  • 公爵书房 | 技术分享
    以指键之轻,承载知识之重
    用户的头像
    首次访问
    上次留言
    累计留言
    我的等级
    我的角色
    打赏二维码
    打赏博主
    子比go外链修改
    点击复制本页地址
    微信扫一扫
    文章二维码
    文章图片 文章标题
    创建时间
  • 一 言
    确认删除此评论么? 确认
  • 本弹窗介绍内容来自,本网站不对其中内容负责。

    子比go外链修改

    公爵 · 原创 ·
    笔记 · 子比美化wordpress外链
    共 5582 字 · 约 1 分钟 · 22

    效果图

    食用教程

    在子比目录下找文件,go.php 文件

    再把我下面这个代码粘贴进去然后保存即可

    php 代码:
    <?php
    if (
        strlen($_SERVER['REQUEST_URI']) > 384 
        strpos($_SERVER['REQUEST_URI'], "eval(") 
        strpos($_SERVER['REQUEST_URI'], "base64")
    ) {
    @header("HTTP/1.1 414 Request-URI Too Long");
    @header("Status: 414 Request-URI Too Long");
    @header("Connection: Close");
    @exit;
    }
    //通过QUERY_STRING取得完整的传入数据,然后取得url=之后的所有值,兼容性更好
    @session_start();
    $t_url = !empty($_SESSION['GOLINK']) ? $_SESSION['GOLINK'] : preg_replace('/^url=(.*)$/i', 'k_e_k_c_c_n', $_SERVER["QUERY_STRING"]);
    //数据处理
    if (!empty($t_url)) {
    //判断取值是否加密
    if ($t_url == base64_encode(base64_decode($t_url))) {
    $t_url = base64_decode($t_url);
    }
    //防止xss
    $t_url = htmlspecialchars($t_url);
    //对取值进行网址校验和判断
    preg_match('/^(httphttpsthunderqqdled2kFlashgetqbrowser):\/\//i', $t_url, $matches);
    $wiiui_title = get_bloginfo('name');
    $title = $wiiui_title . ' - 安全中心';
    if ($matches) {
    $url = $t_url;
    // $title = '页面加载中,请稍候...';
    } else {
    preg_match('/\./i', $t_url, $matche);
    if ($matche) {
    $url = 'http://' . $t_url;
    // $title = '页面加载中,请稍候...';
    } else {
    $url = 'http://' . $_SERVER['HTTP_HOST'];
    $title = '参数错误,正在返回首页...';
    }
    }
    } else {
    $title = '参数缺失,正在返回首页...';
    $url = 'http://' . $_SERVER['HTTP_HOST'];
    }
    $url = str_replace('&', '&', $url);
    ?>
    <html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="robots" content="noindex, nofollow" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
        <?php echo "<link rel='apple-touch-icon-precomposed icon' href='" . _pz('iconpng') . "' type='image/x-icon'/>";
    ?>
        <noscript>
            <meta http-equiv="refresh" content="1;url='<?php echo $url; ?>';">
        </noscript>
        <script>
            function link_jump() {
    //禁止其他网站使用我们的跳转页面
    var MyHOST = new RegExp("<?php echo $_SERVER['HTTP_HOST']; ?>");
    if (!MyHOST.test(document.referrer)) {
    location.href = "//" + MyHOST;
    }
    location.href = "<?php echo $url; ?>";
    }
    //延时10S跳转,可自行修改延时时间
    setTimeout(link_jump, 10000);
    //延时50S关闭跳转页面,用于文件下载后不会关闭跳转页的问题
    setTimeout(function() {
    window.opener = null;
    window.close();
    }
    , 50000);
    </script>
        <link rel="stylesheet" id="_fontawesome-css" href="//cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.min.css" type="text/css" media="all">
        <title>
            <?php echo $title;
    ?>
        </title>
        <style>
            body,html {
    padding:0;
    margin:0
    }
    body {
    background:#f5f6f7;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif
    }
    a {
    cursor:default;
    text-decoration:none;
    word-wrap:break-word;
    word-break:break-all
    }
    .wiiuii-go-main {
    display:flex;
    width:100%;
    height:100%;
    justify-content:center;
    align-items:center
    }
    .wiiuii-go-container {
    position: relative;
    max-width:28em;
    height:auto;
    display:inline-block;
    background:#fff;
    margin:10px;
    padding:1.5em;
    border-radius:5px;
    box-shadow:0 0 10px rgba(116,116,116,.1)
    }
    .wiiuii-go-content a {
    color:#036af4
    }
    .wiiuii-go-content a:hover {
    color:#e91e63
    }
    .wiiuii-go-logo {
    text-align:center;
    width:auto;
    height:65px;
    margin-bottom:10px
    }
    .wiiuii-go-logo img {
    max-width:100%;
    height:100%
    }
    .wiiuii-go-msg {
    cursor:default;
    text-align:center;
    padding:10px 5px;
    font-weight:700;
    color:rgba(255, 0, 0, 0.85);
    background:rgba(255, 0, 0, 0.1);
    border-radius:5px
    }
    .wiiuii-go-button-item {
    text-align:right
    }
    .wiiuii-go-button {
    display:inline-block;
    border-radius:99px;
    padding:10px 15px;
    background:rgba(116,116,116,.1);
    transition:all .5s
    }
    .wiiuii-go-button a {
    font-weight:700;
    font-size:14px;
    color:#333
    }
    .wiiuii-go-button:hover {
    color:#000;
    background:rgba(116,116,116,.2)
    }
    .wiiuii-goid-item {
    position:absolute;
    top:10px;
    left:10px;
    border-radius:4px;
    overflow:hidden;
    background:#ffd07c
    }
    .wiiuii-goid-title {
    padding:0 4px;
    background:#ffa400
    }
    .wiiuii-goid-text {
    padding-right:5px
    }
    .wiiuii-go-container hr {
    border: 0;
    height: 0.05em;
    background: #eee;
    }
    </style>
    </head>
    <body>
        <div class="wiiuii-go-main">
            <div class="wiiuii-go-container">
                <div class="wiiuii-goid-item">
                    <b class="wiiuii-goid-title">GID</b>
                    <span class="wiiuii-goid-text">LINK<?php echo hexdec($url);
    ?></span>
                </div>
                <div class="wiiuii-go-logo">
                    <?php echo zib_get_adaptive_theme_img(_pz('logo_src'), _pz('logo_src_dark'));
    ?>
                </div>
                <div class="wiiuii-go-content">
                    <div class="wiiuii-go-msg">
                        <span><i class="fa fa-exclamation-triangle" aria-hidden="true"></i> 您即将离开<?php echo $wiiui_title;
    ?>,请注意您的账号和财产安全。</span>
                    </div>
                    <p>访问链接:<a onclick="location.replace('<?php echo $url; ?>')" title="<?php echo $url; ?>"><?php echo $url;
    ?></a></p>
                </div>
                <hr>
                <div class="wiiuii-go-button-item">
                    <div class="wiiuii-go-button">
                        <a onclick="location.replace('//<?php echo $_SERVER['HTTP_HOST']; ?>')">返回首页</a>
                    </div>
                    <div class="wiiuii-go-button">
                        <a onclick="location.replace('<?php echo $url; ?>')">继续访问</a>
                    </div>
                </div>
            </div>
        </div>
    </body>
    </html>
    声明:本文由 公爵(博主)原创,依据 CC-BY-NC-SA 4.0 许可协议 授权,转载请注明出处。

    还没有人喜爱这篇文章呢

    发一条! 发一条!
    博客logo 公爵书房 | 技术分享 以指键之轻,承载知识之重 51统计 百度统计
    MOEICP 萌ICP备20226257号 ICP 赣ICP备2022001242号-1 ICP 闽公网安备35020502000606号 又拍云 本站由又拍云提供CDN加速/云存储服务

    🕛

    本站已运行 1 年 256 天 7 小时 7 分

    🌳

    自豪地使用 Typecho 建站,并搭配 MyLife 主题
    公爵书房 | 技术分享. © 2022 ~ 2023.
    网站logo

    公爵书房 | 技术分享 以指键之轻,承载知识之重
     
     
     
     
    壁纸