How to block unwanted sites on your PCby 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 127.0.0.1 localhost or ::1 localhost, then click "Enter."
Type "127.0.0.1" (without the quotes), then add a space and enter the address of a website you want to block, for example, 127.0.0.1 www.doubleclick.com. Add multiple sites by following the same routine: Always add 127.0.0.1 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.
- Jupiterimages/Photos.com/Getty Images