How to Block Websites With Host Files

Save

When you want to block websites on your computer, you might be tempted to purchase software programs that are dedicated to this task. A free alternative, though, is to use a built-in file on your computer (called a hosts file) to block websites. This hosts file is a file that all web-based software has to pass through before accessing the Internet. Within this file, you can create specific redirections for certain websites so that they are blocked or redirected to a different website altogether.

  • Open a text editor on your computer. A good choice is Notepad, which is included with all Windows computers. Notepad can be opened by clicking \"Start,\" clicking \"Run,\" typing \"notepad\" and pressing the \"Enter\" key.

  • Open the \"hosts\" file (this file does not have a file extension) with Notepad or another text editor by clicking \"File,\" clicking \"Open,\" browsing to \"c:\windows\system32\drivers\etc\" and opening the \"hosts\" file.

  • Go to the end of the file and press the \"Enter\" key to add a new line. Type \"127.0.0.1 www.blockthiswebsite.com\" into the new line. Press the \"Enter\" key again to make new line and type \"127.0.0.1 blockthiswebsite.com.\" Substitute in the URL of the website you want to block for \"blockthiswebsite.com\" in the example above.

  • Press the \"Save\" button. The hosts file is updated and the website you entered into the file is now blocked.

Promoted By Zergnet

Comments

Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

M
Is DIY in your DNA? Become part of our maker community.
Submit Your Work!