Originally Posted by dmegatool
It's working now. I played a little bit with it and then, wanted to make it as it was. And now it works. The only difference is that I added www.MySite.com
instead of MySite.com in the host file.
You need to add an entry for every sub-domain to block. You can't do wildcard matches in the hosts file.
For example, to block some ad servers, you have to block a slew of domains like this:
Alternatively, you can put many domains on a single line:
0.0.0.0 adserver.com images.adserver.com a1.adserver.com a2.adserver.com
...and so forth.