The hostfile is used to map human friendly hostnames to numeric IP addresses.
One easy way to block unwanted traffic out of your machine is to use “home” or the loopback
Your Windows XP hostname ascii file is located at
A blocking line will look like this:
When outbound traffic is directed to facebook.com, your machine hijacks it, redirecting it to your own machine at 127.0.0.1
You can download a hostfile from this site, that blocks a lot of unwanted snooping.
Microsoft Windows8 prevents you from blocking Facebook and other adware via the hostfile.
Even if you write protect your hostfile, Windows Defender will overwrite your wishes.
There are a few ways around this.