Block a website (Windows)
08/04/2010
Leave a comment
How to block a website on windows?
It’s not really blocking the website, it’s just redirecting to the localhost (172.0.0.1). Anyways users who don’t know that can’t open these sites anymore because the browser tries to find it at the own computer.
Just edit the file “hosts” as follows, but watch out you need admin rights which means to open the editor as admin:
Open the file “C:\Windows\System32\drivers\etc\hosts” and add a line similar to
127.0.0.1 www.theWebsite.com
If you try to open this site with a browser now, you’ll just get an error.
Has been tested with Win7(x64) & WinXP, but works probably with any version since 3.1
Greetz Mavi
Categories: General
block website, localhost, redirect, windows
