
In that case, add the follow two (2) lines: For example: let’s suppose that you want to block Facebook. press Tab, and then type the website address you want to block.

Scroll down in the Notepad window and at the end…ī. This will open a text document in Notepad.ħ. Next, locate the hosts file and double-click on it. Change the file type to All Files (*.*) from Text Documents (*.txt).Ħ. Now navigate to the location mentioned below.ĥ. Click the File menu and then click on Open from the list of options available.Ĥ. Click Yes in the User Account Control prompt.ģ. Type Notepad in the search field of the taskbar and click on Run as administrator.Ģ. * Note: If you looking for an easiest method, to block a site through the hosts file proceed to method 4.ġ. The advantage of this method is that it will help you prevent access to the websites you want in all browsers. The most common method of blocking a site in all versions of Windows is to use the hosts file.
#Website blocker for windows 7 how to
Method 1: How to Block Sites in Windows through Hosts File.

Method 2: Block Websites in Google Chrome.

