What's the Windows equivalent of "/etc/hosts"?

71,717

It's normally under \WINDOWS\system32\drivers\etc (If there isn't one, just create it).
(you have not specified OS version, win 8 monitors this file and reverts any changes, see eg. here for discussion: http://www.howtogeek.com/122404/how-to-block-websites-in-windows-8s-hosts-file/)

Share:
71,717

Related videos on Youtube

David Faux
Author by

David Faux

Updated on September 18, 2022

Comments

  • David Faux
    David Faux almost 2 years

    Possible Duplicate:
    How do I block certain websites from being accessed through a browser?

    I can block my little brother from accessing a website on my Mac by adding the following line to my "/etc/hosts" file.

    127.0.0.1 someaddictingwebsite.com
    

    Do Windows systems have a file analogous to "/etc/hosts"? Can I achieve the same effect on a PC?

    • nixda
      nixda over 11 years
      possible dublicate of this question
    • Zano
      Zano over 11 years
      Here we go – Big Brother controlling your surfing.