/etc/hosts and hosts.deny question
Sometimes, when I am surfing the web, I will use an anonymous proxy but
I can tell that the site I am visiting knows my IP through various javascript and other tricks. Is there an easy way to use /etc/hosts and/or hosts.deny so that ALL the traffic on my machine is forced to go through the proxy? Thank you. Ilan |
/etc/hosts just lets you assign a name to an IP, and using hosts.deny will not work since the javascript is running over port 80, so would have to block it which means no web access to that site.
Your best bet would be to turn off javascript. |
if you use the firefox web browser, then the noscript extension might come in handy for this kinda thing: http://www.noscript.net/
however, keep in mind that sometimes javascript can give the appearance that a site knows your IP, when in reality it doesn't - it's just the script running locally on your box which is printing your IP... |
Quote:
live CD (i.e. a completely fresh O/S) and the site actually was able to query a DB on the back end which proved to me that they were able to see my IP despite the proxy. I checked with www.stayinvisible.com and there were no extraneous HTTP headers which sent my real IP. I was thinking that maybe I could use iptables to drop all the traffic except those going to the proxy? I had asked about this in another thread, but the iptables rule just slowed my system down like crazy. I did not understand why, probably because of timeouts? Ilan |
Quote:
Quote:
Quote:
Quote:
Code:
iptables -F OUTPUT Code:
iptables -A OUTPUT -p UDP -o $WAN_INTERFACE -d $DNS_IP \ Code:
iptables -A OUTPUT -j LOG --log-prefix "OUTPUT DROP: " |
All times are GMT -5. The time now is 07:17 AM. |