如何隐藏我的真实IP地址?

Fad*_*kar 2 ip proxy curl spoofing web-scraping

我想从网站读取数据,但将我的真实 IP 地址涂黑了
我想使用 IP 列表读取数据:

代理列表1
代理列表2

我正在测试以这种方式隐藏我的真实 IP 地址,我的 IP 地址不存在于标题中,但目标网站找到我的真实 IP 地址并阻止它

我正在使用带有 curl 的 php
而我的目标网站是由 python 编写的

请帮我

小智 5

尝试使用以下代码访问您的目标站点:

$url = 'http://example.com';
$proxy = '127.0.0.1:8080';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_PROXY, $proxy);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);

$curl_scraped_page = curl_exec($ch);
curl_close($ch);

echo $curl_scraped_page;
Run Code Online (Sandbox Code Playgroud)