How to block websites on Chrome?

Share this to:

There are a few different ways to block websites on Google Chrome. You can use Chrome’s built-in settings, a Chrome extension, or your computer’s hosts file, for example.

Block websites by using a Chrome extension

There are a number of extensions that can be used to block websites on Chrome, such as Block Site ( and StayFocusd (

Block sites by using Chrome’s built-in settings

Chrome also has some built-in settings that allow you to block websites. To access these settings, type “chrome://settings/content” into the address bar and then click on the “Block” tab.

Block website by using a hosts file

You can also block websites by editing your computer’s hosts file. This file is located in the following directory:

Windows: C:\Windows\System32\drivers\etc\

Mac: /etc/

To edit the hosts file, you will need to open it in a text editor like Notepad. Once you have opened the file, you can add the following lines at the bottom, substituting the website you want to block for “”:


Save the file and then restart your computer. The website you added to the hosts file should now be blocked.

Share this to: