How to block a website in Google Chrome

Updated July 20, 2017

Whether you suspect your children are visiting websites they shouldn't, feel certain sites are distracting you from work or just want to remove a website from your life entirely, blocking that site can be a good way to do so. Google Chrome blocks a large number of hazardous sites, but it does not allow users to specify specific sites to block. However, Windows does, and making the changes is as simple as editing a text file.

Click "Start" and type “C:WINDOWS\system32\drivers\etc” in the Search field at the bottom of the Start menu.

Right-click on the “hosts” file and select "Open." Choose "Notepad" as the program you wish to use to open the file, and click "OK."

At the bottom of the document, type “” (without the quotes), followed by at least one space, followed by the URL of the website you want to block. For example, if you wanted to block “” you would enter “”. Do not put either "http:" or "www" in front of the names of websites you wish to block; doing so will result in the site not being blocked. You are blocking the entire site regardless of protocol.

Save the document and restart your computer. Any attempt to visit the site you blocked in Chrome or any other browser will result in an error message.


Windows Explorer can be found by clicking 'Start' then 'My Computer' If the address bar does not appear click 'View' point to 'Toolbars' then click 'Address Bar'. You may then have to drag it over from the right side of the screen.

Cite this Article A tool to create a citation to reference this article Cite this Article

About the Author

Justin H. Pot is a freelance journalist, writer and blogger based in Boulder, Colo. He's written for local newspapers in the United States and his native Canada, and also blogs for the environmental website