Wednesday, January 16, 2013

►Block Websites Using Notepad

Here’s the trick :

1. Run Notepad as Administrator : For this go to Start  Start button  > All Programs > Accessories, right-click "Notepad" and select "Run as administrator"  User Account Control permission


Note : If you are prompted for an administrator password or for a confirmation, type the password, or click "Allow" or "Yes"

2. Within Notepad go to File > Open and select  "All Files" from the drop-down menu present near the bottom right corner of the window (check the screenshot).


3. Now type the following text in the "File name" field and click "Open" :

      C:\Windows\System32\drivers\etc\hosts 

5.  The "hosts" file will open up. Go to the last line of the file and press the [Enter] key. Type 127.0.0.1 followed by the address of the website that you wish to block. For example, to block facebook.com, type :



Never add “http://” at the start of the URL. Doing so will make the entry invalid. Also note that writing "www" is optional.

6. To block more websites, type 127.0.0.1 followed by the website address in every new line. You can block as many websites as you like.


7. Save and close the file.

Thats it ! Now try to access the offending site(s) from your Web Browser. You’ll see that those specific website(s) will no longer be accessible.

In case you wish to undo the changes, follow Step 1-3 and delete the lines you had typed. You will again be able to open those sites. 

No comments:

Post a Comment