• 注册
  • 交流大厅 交流大厅 关注:28 内容:32

    PHP 镜像shopify独立站代码

  • 查看作者
  • 打赏作者
  • <?php
    
    $showcontent = file_get_content_sstr("https://sorayahennessy.com/".$_SERVER['REQUEST_URI']);
    
    $realU = $_SERVER['SERVER_NAME'];
    
    echo str_replace("sorayahennessy.com",$realU,$showcontent);
    
    exit();
    
    function FormatHeader($url, $myIp = null)
    
    {
    
        $temp = parse_url($url);
    
        $header = array (
    
                         "Host: {$temp['host']}",
    
                         "Content-Type: text/html; charset=utf-8",
    
                         'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
    
                         "Referer: http://{$temp['host']}/",
    
                         'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36',
    
                         "X-Forwarded-For: {$myIp}"
    
                    );
    
    
    
        return $header;
    
    }
  • 隐藏内容需要回复可以看见

    回复

    今天看到qq群里好像 有偿求这个代码

    回复

    正需要这个代码

    回复

    感谢分享!

    回复

    回复可见,安排

    回复

    谢谢大佬

    回复

    感谢分享

    回复

    感谢分享

    回复

    正好需要

    回复

    支持一下,不错

    回复

    1

    回复

    请登录之后再进行评论

    登录

    WordPress后台-外观-小工具 进行配置小工具

    帖子间隔 侧栏位置: