So, if we want to block any website, we only need add an entry for that website in the hosts file with a different IP address. By 'different IP address', i mean any IP other than the original IP of the website. The IP 127.0.0.1 is IP of your own computer. It is called loop back address. You can use this IP to block any website. If you use this IP, the application will try to connect to your own computer on its attempt to access the blocked website and thereby will fail to load the website.
hosts File in Windows
In Windows 7, Windows 8 or 8.1 and Windows 10, the hosts file can be found in the folder:
C:\Windows\System32\drivers\etc\
- In the start menu, locate notepad
- Right click on it and select "Run as administrator"
- Select File->Open
- Navigate to C:\Windows\System32\drivers\etc\
- Select "All files" instead of "Text Documents" as file type
- Open hosts file
- Add a line for each website to be blocked in the format
127.0.0.0 example.com
127.0.0.0 facebook.com
127.0.0.0 myspace.com
No comments :
Post a Comment