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

32

7

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?

David Faux

Posted 2012-12-29T17:23:56.263

Reputation: 4 477

Question was closed 2012-12-29T17:40:49.910

possible dublicate of this question

– nixda – 2012-12-29T17:33:19.707

15Here we go – Big Brother controlling your surfing. – Zano – 2012-12-29T17:36:55.860

Answers

36

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/)

wmz

Posted 2012-12-29T17:23:56.263

Reputation: 6 132