Thursday, February 24, 2011

How to block a website in Windows browser

If you want to block some websites, so that the website can not be open in your PC/Laptop, than I have a perfect solution for you. But this can be done, only, if you are using Windows as your operating system, regardless the version.

With this solution, every browser in your PC/Laptop will show an error message everytime opening the blocked site. Here what you have to do...



Open Windows Explorer, and type "C:WINDOWS\system32\drivers\etc" in the address bar, then press "Enter." Windows Explorer will present you some files and then look for the file named "Hosts"

Open the "hosts" file by Right-clicking the file, select "Open" and use notepad to open the file.

At the bottom of the document (at the end of the line), add the numbers "127.0.0.1", followed by a space, followed by the URL of the website you want to block. For example, if you wanted to block "facebook.com" than you should type in...

127.0.0.1 facebook.com

Do not put either "http://" or "www" in front of the names of websites you wish to block, because that will make the effort useless. Since we are trying to block the entire site regardless of protocol.

Save the document and restart your computer. And it's done.

Every time, someone try to open the blocked website using any browser in your PC/Laptop, they really gonna be pissed!! :D

No comments:

Post a Comment