本文介绍了为什么我的原始IP仍然可见,即使我使用CURLOPT_PROXY与Curl?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我针对每个IP拥有网页浏览量配额的目标网站使用curl,例如每天每个IP 5000次网页浏览。现在我想通过切换IP地址获得更多。

I'm using curl against a target site that has a quota of page views per IP, e.g. 5000 page views per IP per day. Now I'm trying to get more by switching IP addresses.

我使用一些代理IP地址每月$ 10。所以我通过CURLOPT_PROXY选项将它们添加到PHP curl,但是目标站点仍然能够检测到我的原始IP,并且不会为代理IP提供新的配额。

I'm using some proxy IP addresses for $10 / month. So I added them to PHP curl via the CURLOPT_PROXY option, but somehow the target site is still able to detect my original IP and doesn't give new quotas for the proxy IPs.

我尝试使用代理卷曲其他网站,并且它正常工作。

I tried to curl some other sites with the proxy on and it's working properly.

为什么目标网站能够检测到我的原始IP,即使我在PHP中使用curl的代理?如何使我的原始IP完全隐藏在这个意义上?

Why is it that the target site is able to detect my original IP even when I use a proxy with curl in PHP? How to make my original IP completely hidden in this sense?

这似乎也是这样,当我通过代理浏览网站,但不知何故,他们仍然能够检测我的本地计算机IP地址。

This seems also the case when I'm browsing sites through proxy but somehow they are still able to detect my local computer IP address.

为什么这样?

推荐答案

有不同类型的代理:


  • 透明:您的真实IP会添加到http标头。

  • / strong>:你的真实ip被隐藏或者一个假的被添加到http头。

  • (高度)匿名:您的ip是隐藏并且代理identy被隐藏。客户认为这是一个直接连接。

  • Transparent: your real ip is added to the http header.
  • Distorting: your real ip is hidden or a fake one is added to the http header. But the proxy "identy" is added in the header so that the client knows that you are going through a proxy.
  • (Highly) Anonymous: your ip is hidden and the proxy "identy" is hidden. The client believes that it is a "direct" connection.

因此,您当然使用透明代理。

So you are certainly using a Transparent proxy.

要测试,您可以:

1)在您的网站上创建此假页面:

1) Create this "dummy" page on your site:

<?php
mail('your@email.com', 'Proxy', print_r($_SERVER, true));

2)Curl it

3)检查电子邮件中收到的。

3) Check the http header values received in the email.

这篇关于为什么我的原始IP仍然可见,即使我使用CURLOPT_PROXY与Curl?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 02:29