How to block unwanted sites on your PC

by Brian HooperUpdated September 28, 2017
Jupiterimages/ Images

You may want to block unwanted sites on your PC for various reasons. Many parents want to prevent their children from viewing certain kinds of online content, or restrict them from visiting time-draining sites such as gaming websites. Adults too, seeking to break their own Web dependency, are interested in blocking sites on their computer. While the marketplace is filled with fee-based content filtering tools, Windows comes with a built-in, free solution.

Click "Start" then "All Programs."

Click "Accessories" then right-click "Notepad."

Click "Run as administrator." If Windows asks you for an administrator password or a confirmation, type the password, or click "Allow" or "Yes."

Click "File" then "Open" after Notepad launches. Navigate to the HOSTS file path, which is C:\Windows\System32\Drivers\etc, then open the HOSTS file.

Place the cursor at the end of the last line, which is usually localhost or ::1 localhost, then click "Enter."

Type "" (without the quotes), then add a space and enter the address of a website you want to block, for example, Add multiple sites by following the same routine: Always add first, then press the spacebar, then enter the address of the site you want blocked.

Click "Save" on the Edit menu. For Windows 7, click "Save" on the File menu.


Photo Credits

  • Jupiterimages/ Images

About the Author

Brian Hooper has more than 10 years of editorial experience. Hooper has provided editorial services for New York publishing houses and currently writes for Fortune 500 companies in Silicon Valley. He holds a Bachelor of Science in business administration.

More Articles