Make your proxy server anonymous

If you are running squid or any other proxy software and you want to hide your real IP for security or privacy you should adjust your proxy server source or config to disable the following HTTP Headers:

REMOTE_ADDR = proxy_server_ip
HTTP_VIA = proxy_server_ip
HTTP_X_FORWARDED_FOR = proxy_server_ip

With squid (version 3) you can setup the following config in squid.conf file:

forwarded_for off

as well as add the following settings:

request_header_access Allow allow all
request_header_access Authorization allow all
request_header_access WWW-Authenticate allow all
request_header_access Proxy-Authorization allow all
request_header_access Proxy-Authenticate allow all
request_header_access Cache-Control allow all
request_header_access Content-Encoding allow all
request_header_access Content-Length allow all
request_header_access Content-Type allow all
request_header_access Date allow all
request_header_access Expires allow all
request_header_access Host allow all
request_header_access If-Modified-Since allow all
request_header_access Last-Modified allow all
request_header_access Location allow all
request_header_access Pragma allow all
request_header_access Accept allow all
request_header_access Accept-Charset allow all
request_header_access Accept-Encoding allow all
request_header_access Accept-Language allow all
request_header_access Content-Language allow all
request_header_access Mime-Version allow all
request_header_access Retry-After allow all
request_header_access Title allow all
request_header_access Connection allow all
request_header_access Proxy-Connection allow all
request_header_access All deny all


Leave a Reply