Quote:
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:
Code:
0.0.0.0 adserver.com
0.0.0.0 images.adserver.com
0.0.0.0 a1.adserver.com
0.0.0.0 a2.adserver.com
0.0.0.0 a3.adserver.com
0.0.0.0 a4.adserver.com
0.0.0.0 a5.adserver.com
Alternatively, you can put many domains on a single line:
Code:
0.0.0.0 adserver.com images.adserver.com a1.adserver.com a2.adserver.com
...and so forth.