How To Block Access To Selected Websites On a PC

WANT TO BLOCK all users of a Windows PC from opening certain websites, regardless of the browser they use? You need only make a few simple additions to the Windows hosts file. This method is straightforward and free, and it doesn’t require you to download or install any additional software. It’s an effective way to prevent users of all ages from accessing content you don’t want them to see.

1. Open Windows Explorer and navigate to C:WindowsSystem32driversetc. If Windows is not installed on C: on your PC, substitute the appropriate drive letter.

2. Double-click hosts, and select Notepad at Windows’ prompt to choose a program. If you don’t get the prompt, or if the ‘hosts’ file opens in another program, open Notepad (StartAll ProgramsAccessoriesNotepad), and then make your way to the ‘hosts’ file by clicking FileOpen from within Notepad.

3. Place the cursor at the end of the last line, which will say something such as ‘127.0.0.1 localhost’ or ‘::1 localhost’. Press <Enter> to create a new line.

4. Type 127.0.0.1, tap the spacebar once, and then type the address of a website that you want to block. For example, to block all traffic from YouTube, type 127.0.0.1 www.youtube.com on this line.

5. Continue to add the URLs of websites you wish to block, each prefaced with 127.0.0.1 and a space.

6. Click FileSave to commit to your changes. Dismiss any warnings from antimalware software, which may be triggered by your editing of the hosts file.

7. Close any open browser windows, and then reopen a browser to test your edits. The blocked sites should not display in any browser.

Leave a Reply

Your email address will not be published. Required fields are marked *