View Single Post
Brad
Selfish Heathen
 
Join Date: May 2004
Location: Zone of Pain
 
2008-05-07, 21:54

Quote:
Originally Posted by dmegatool View Post
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.

The quality of this board depends on the quality of the posts. The only way to guarantee thoughtful, informative discussion is to write thoughtful, informative posts. AppleNova is not a real-time chat forum. You have time to compose messages and edit them before and after posting.
  quote