Question Details

Browse

Using hosts file to block ads on leopard

By Anna Medlin - Jan. 11, 2008

Hi - On Tiger, I had a /private/etc/hosts file that would route well-known ad servers to localhost, so ads would net get fed. This doesn't seem to be working on Leopard. Has the processing of this file changed? Is there a better way, on Leopard, to block ad servers?


Answers

Add Answer
  1. By Jesse Babson on Jan. 15, 2008

    No - this file is still processed as earlier. Netinfo is no longer available, in case you were editing using that. Be sure you use 'localhost' or 127.0.0.1. I noticed weird behavior when I had '0' as the ip address. That used to work on Tiger but not on Leopard. Simply setting the entry to 127.0.0.1 did the trick.

    So, entries would look like:
    127.0.0.1 ad.doubleclick.com
    127.0.0.1 ad.adserver.net

    HTH

    0 Votes
  2. By an anonymous user on Mar. 14, 2008

    Hi; there is a PROBLEM using the well-known 127.0.0.1 hosts ad-blocking file at


    http://www.mvps.org/winhelp2002/


    Leopard just doesn't play nice, throws porn servers into your netstat, etc.


    More in this thread:


    http://discussions.apple.com/message.jspa?messageID=6248637#6248637


    i've also tried using 127.0.0.127 but find the timeout lags on ad servers to be heinous with this.


    Foob


    0 Votes
Share your knowledge