You can block any website on your computer!
Sometimes you wonder to block some websites on your computer for miscellaneous reasons. Today, I'll teach you how to do this in a couple of minutes without using any specialized software.Follow the following steps with me and block any site in a few simple clicks.
1. Click Start > All Programs > Accessories > Command Prompt.2. Open Command Prompt as Administrator, This will open a DOS command line window.
3. Type: notepad C:/Windows/System32/drivers/etc/hosts
4. Locate the line 127.0.0.1 localhost
5. To block the website facebook.com, just add this text under 127.0.0.1 localhost: as shown below in the example.
127.0.0.1 www.facebook.com
127.0.0.1 www.chess.com
In the same way, you can add as many websites on the list as you want. Don't forget to prefix site's name with 127.0.0.1
6. Now save the file and windows will block connection to the site which you have added in the host file.
All done!
So, this was an easy method on how to block a website on your own PC. Thanks for reading.
4. Locate the line 127.0.0.1 localhost
5. To block the website facebook.com, just add this text under 127.0.0.1 localhost: as shown below in the example.
Example:
127.0.0.1 localhost127.0.0.1 www.facebook.com
127.0.0.1 www.chess.com
In the same way, you can add as many websites on the list as you want. Don't forget to prefix site's name with 127.0.0.1
6. Now save the file and windows will block connection to the site which you have added in the host file.
All done!
So, this was an easy method on how to block a website on your own PC. Thanks for reading.
Awesome post
ReplyDelete