PHP简单破解防找链代码分享

<?php     header('Content-type: image/jpg');     $url = $_GET['url'];     $refer = "目标站";     $ip = rand(1, 254) . '.' . rand(1, 254) . '.' . rand(1, 254) . '.' . rand(1, 25...
<?php

    header('Content-type: image/jpg');
    $url = $_GET['url'];
    $refer = "目标站";
    $ip = rand(1, 254) . '.' . rand(1, 254) . '.' . rand(1, 254) . '.' . rand(1, 254);
    $opt = [
            'http'=>[
                'header'=>["Referer: " . $refer,"X-Forwarded-For:" . $ip]
            ]
           ];
    $context = stream_context_create($opt); 
    $file_contents = file_get_contents($url,false, $context);
    echo $file_contents;
?>

主要就是伪造header头 

  • 发表于 2021-02-06 11:29
  • 阅读 ( 234 )
  • 分类:互联网

0 条评论

请先 登录 后评论
激情
激情

686 篇文章

你可能感兴趣的文章

相关问题