- 论坛徽章:
- 0
|
1、如果你有多级代理,那么后面的代理可以看到真是的客户ip
2、是squid.conf配置文件,不是httpd.conf
设置成这样forwarded_for off,默认是forwarded_for on
squid的描述:
Description
Current HTTP/1.1 does not provide any standard way of indicating the client address in the request. Since a number of people missed having the originating client address in the request, Squid now adds its own request header called "X-Forwarded-For" which looks like this: X-Forwarded-For: 192.1.2.3|unknown
If set, Squid will include your system's IP address or name in the HTTP requests it forwards. By default it looks like this:
X-Forwarded-For: 192.1.2.3
If you disable this, it will appear as X-Forwarded-For: unknown |
|