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 ‘ localhost’ or ‘::1 localhost’. Press <Enter> to create a new line.

4. Type, 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 on this line.

5. Continue to add the URLs of websites you wish to block, each prefaced with 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 *

This is an Advertorial

Learn how to build digital products without writing a single line of code

Build anything you can dream of without writing code or hiring a developer

Our non-technical students start companies using tools like Bubble, Softr , Elementor and Airtable. It’s easier, faster and more fun.

No matter what your background is, our lessons are designed to figure out what you don’t know and fill in the gaps

Join our learning community of soulmates, learn at your own pace and stay motivated to reach your objectives.

Begin Your No-Code Journey.

Training Mode : in-class
Location : E-349 Ikota Shopping Complex, VGC, Ajah, Lagos
Fees : N150,000