How to block unwanted sites on your PC

by Brian HooperUpdated September 28, 2017

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, www.doubleclick.com. 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.

Video of the Day

Brought to you by Techwalla
Brought to you by Techwalla

More Articles