Saturday 14 September 2013

Blocking a website on your computer without software

We all want to block some websites on our computer that may be distracting us during our exams or that we are spending a lot of time on that or you dont want your friends to use that site on your computer.It's pretty simple and we can do that without softwares.We just need to edit the hosts file located at C:\Windows\System32\drivers\etc

Procedure to Block website:
  1. Open Command Prompt in administrator mode
    (Click on start,type cmd,right click and Run as Administrator)
     
  2. Type the following instructions
    cd \
    cd Windows\System32\drivers\etc
    edit hosts
  3. Go to last line of the file and add the following
    127.0.0.1  www.yourwebsitename.com
    127.0.0.1 www.facebook.com
    (you can add multiple websites in different lines)
  4. Go to File and click Save.
     
  5. Go to File and click Exit.
     
  6. Now,open the browser and try going to that website and u can see that the browser cannot connect to that website.
Demo:

Note: Editing hosts file should be done in administrator mode only.Otherwise file cannot be saved.It  says that the file is read-only.

If you want to block website using softwares,which support content filtering also,go to following link.
WEBSITE Blocking software

Hope you enjoy the tutorial :)

Thank you :)

No comments:

Post a Comment

Please add your valuable comments.We appreciate it.