Resolved Hosts File for Macs

Discussion in 'PowerPC Macs' started by Gamer9430, Apr 5, 2016.

  1. Gamer9430, Apr 5, 2016
    Last edited: Apr 5, 2016

    Gamer9430 macrumors 68020

    Gamer9430

    Joined:
    Apr 22, 2014
    Location:
    Central New Jersey, USA
    #1
    On all of my Windows computers, I use an actively updated Hosts file from http://winhelp2002.mvps.org/hosts.htm to do system-wide ad blocking. I'm curious as to it being possible to do the same thing on macs. This would especially help on PPCs since you wouldn't need to slow down your browsing experience by using an adblocker since the hosts file prevents even connecting to ad servers. The website I like has instructions for Mac installation, but it doesn't seem to work on the few macs I tried on (both PPC and Intel).

     
  2. Hack5190 macrumors 6502a

    Hack5190

    Joined:
    Oct 21, 2015
    Location:
    Stuck on Earth in the USA
    #2
  3. Gamer9430 thread starter macrumors 68020

    Gamer9430

    Joined:
    Apr 22, 2014
    Location:
    Central New Jersey, USA
    #3
    I did exactly as directed (except that some of the commands were out of date on Leopard/Tiger). I used the same file in Windows and that worked fine.

    SOLUTION: I actually just got it working by following the directions here: http://www.makeuseof.com/tag/how-to-edit-the-mac-os-x-hosts-file-and-why-you-might-want-to/

    I only went to /private/etc/ then replaced the file directly, then flushed the DNS and now it works perfectly.
     
  4. spf2 macrumors regular

    spf2

    Joined:
    Mar 3, 2015
    Location:
    7exas
    #4
    If you have multiple servers, you might look at running your own DNS server and set up the entries there.
     
  5. Hack5190 macrumors 6502a

    Hack5190

    Joined:
    Oct 21, 2015
    Location:
    Stuck on Earth in the USA
    #5

Share This Page