Want to block particular website from accessing other users? Then this article might help. This is just a simple technique and therefore do not require specialized software to block a website. You just needed an User Account with Administrative control on your Windows XP, 7 or 8. We need administrative account because we are going to modify a system file i.e. Hosts File. Basically Hosts file is a plain text computer file used in your Windows Operating System that maps hostnames to Internet Protocol (IP) addresses. So without going much into details let's look how it works.
HOW TO BLOCK WEBSITE USING HOST FILE
Things to do before modifying Host file:
1. Log in into your Admin a/c2. Turn of your Internet Connection temporarily.
3. You may have to disable your Anti-Virus as well.
Now let's actually modify the Host file.
In Windows XP:
1) Go to "My Computer" → C drive → Windows → System32 → drivers → etc.2) You will see the file named as hosts (without any extension). Double click on it. → Open it with Notepad. → At end of text enter - 127.0.0.1 www.websitename.com
For example, To block www.facebook.comWrite - 127.0.0.1 www.facebook.com
(This will block facebook.com)
In Windows 7 & 8:
1) Go to Start → Search for Notepad → Right click on Notepad and click on Run as administrator. It will open Notepad program with administrative privileges.2) Now in Notepad go to File menu → Open... (Select All files(*.*)) → go to C drive → Windows → System32 → drivers → etc.
3) Now Open hosts file → At end of text enter - 127.0.0.1 www.facebook.com to block facebook.com and then Save it.
Now you can turn on your Internet and Anti-virus and check whether facebook.com is blocked or not on your internet browser.
I hope you got some useful information. If you like the article then please share it with your friends and don't forget to leave your valuable comment below in the comment section. Thank you!
Comments
Post a Comment