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:
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 :)
Procedure to Block website:
- Open Command Prompt in administrator mode
(Click on start,type cmd,right click and Run as Administrator)
- Type the following instructions
cd \
cd Windows\System32\drivers\etc
edit hosts - 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) - Go to File and click Save.
- Go to File and click Exit.
- Now,open the browser and try going to that website and u can see that the browser cannot connect to that website.
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.