How to Block a Website on Google Chrome

How to Block a Website on Google Chrome

With Google Chrome, you can access almost any website. However, you might face a situation where it’s best to block a website instead.

Whether you want to minimize distractions or enable parental control to protect your kids from unwanted content, we have got you covered.

In this article, we’ll share four methods on how to block a website on Google Chrome. Furthermore, we’ll explain why you would need to block websites in the first place.

1. Editing the hosts File

One way to block a website on Windows is by accessing and editing the hosts file.

It is a local text file in your operating system that contains domain names and their respective IP addresses. Use it as a way to block websites by redirecting the domain name back to your computer.

As long as you are the administrator, you can edit the hosts file to block certain websites.

Before starting, make a copy of your hosts file so that you have a backup in case of an error.

Once you have the copy, follow the steps below:

  1. Find your hosts file by accessing C:\Windows\System32\drivers\etc
Windows folder containing the hosts file.
  1. Open the file with Notepad, Nano, or any other text editor.
  2. On the bottom of the file under the last #, add in new lines and type in your localhost IP address 127.0.0.1 with the website’s domain you want to block.
The hosts file content.
  1. Head to File -> Save or press CTRL+S to save. However, refrain from saving it as a .txt file as it won’t work.
  2. Open Chrome and type the domain name you blocked to see if it works.
  3. Whenever you want to block a website, repeat the process and add new lines.

If your computer restricts you from making the change, you might need to change the file permissions to block sites.

To change the file permissions of your hosts file in Windows, follow these steps:

  1. Right-click on your hosts file.
  2. A drop-down menu will appear. From there, click Properties -> Security.
  3. Click Edit with the shield icon to change file permissions.
  4. In the pop-up window that appears, tick the Full Control box under Allow.
  5. Click Apply, and you should have access to edit the hosts file.

If you have macOS, blocking websites on Chrome through the hosts file has a similar process.

For more information, follow the steps below:

  1. Open Utilities -> Terminal.
  2. In the Terminal command, type sudo nano/etc/hosts. Your hosts file will open up in a nano box.
  3. Enter the administrator password to open your hosts file. It should consist of several lines similar to the one on Windows.
  4. At the bottom of the last line, type in the localhost IP address 127.0.0.1, and after pressing Tab for space, type the domain name of the site you want to block.
  5. Repeat the process if you want to add more sites.
  6. To save, press CTRL + O.
  7. Exit the hosts file by pressing CTRL + X.
  8. To prevent any clashes, clear your cache by typing sudo dscacheutil -flushcache and press Enter once you’re done.
  9. Open a browser to test the result.

Blocking websites through your hosts file will also block the websites on other web browsers and apps. Thus, you don’t have to block them one by one on your computer manually.

2. Using a Chrome Extension

BlockSite homepage.

The second method is blocking a website by using a browser extension. This method is suitable for both Windows and Mac users.

We recommend using BlockSite – one of the most popular website blocking extensions with over three million downloads.

To download BlockSite and add it to your Chrome browser, follow these steps:

  1. Access the Chrome web store on your Google Chrome browser.
  2. Type “blocksite extension” in the search bar and press enter.
  3. Click on the result with the BlockSite red shield icon and hit Add to Chrome.
BlockSite on Chrome web store.
  1. When the pop-up window appears, click Add extension to download.

Once the download is complete, BlockSite will be added to your list of extensions.

To begin blocking multiple websites with the extension, follow these steps:

  1. Access the BlockSite settings by clicking on the Extensions (puzzle piece icon) -> BlockSite -> More Actions -> BlockSite: Block Websites & Stay Focused.
  2. Type in the website you want to block in the bar labeled Block Sites and press Enter.
BlockSite settings panel.
  1. If you want to prevent access to the websites on your block list even in the incognito mode, search the gear icon for Settings -> Enable in Incognito Mode.
Enabling BlockSite in the incognito mode.
  1. The website you entered should be blocked in both the standard and incognito modes. Now, whenever users try to access it through your browser, they will see web pages from BlockSite like in the example below:
Blocked page by BlockSite.

Another way to block sites is by pinning the BlockSite extension on your Chrome toolbar, visiting the website you want to block, and clicking the “red shield” icon on the top right corner of your screen. Click Block this site on the pop-up window that appears.

BlockSite extension on Chrome toolbar.

If you don’t want to block websites on your computer completely, BlockSite provides a password protection option. This will prompt BlockSite to ask for a password whenever users access any sites from your block list.

To do this on your BlockSite extension, follow the instructions below:

  1. Access the Password Protection feature by clicking on the padlock icon.
BlockSite password protection.
  1. Check the Password Protection Preferences you want for BlockSite.
BlockSite password protection preferences settings.
  1. Create an account by entering your email address and password. Click Save.
BlockSite account setup.
  1. Verify your account.
  2. Now, when someone accesses a blocked website, they will be prompted to give the password.
Password-protected page example.

Additionally, BlockSite provides these features for Chrome:

  • Focus Mode – block sites temporarily by setting a timer. You can also set intervals between focus modes to browse without any restrictions whenever you want to take a break.
  • Block by Words – once activated in the Settings page, insert a word or phrase that will automatically be blocked if BlockSite detects it in the domain name or URL.
  • Categories – block many sites of the same type such as adult, social, news, sports, and gambling.

BlockSite is a freemium extension. With the free plan, you can block six websites and only one category. However, if you want to block an unlimited number of websites and their categories, we recommend upgrading to a premium account.

3. On iOS and Android

BlockSite is also available as an app to block websites or apps on your mobile devices. It can be convenient since you are already familiar with the interface in the Chrome extension.

To block websites on your Android phone, follow the guide below:

  1. Access the Google Play Store from your mobile device and search for the BlockSite app. Click Install.
BlockSite on Google Play Store.
  1. Allow the BlockSite app in your device’s settings and open it.
  2. Find the green plus icon to block sites or apps.
  3. Enter the domain name or the full URL of the website you want to block. If it is an app, type in the app’s name to add it to your block list.
  4. Tap the checkmark on the app to confirm.
  5. Open your browser or app to see the result.

To block a site or an app with BlockSite using an iOS phone, follow the same steps above except go to the Apple App Store instead. You will find a BlockSite app for iOS ready to install.

BlockSite on Apple App Store.

4. Using Built-In Parental Controls

Blocking a website can be done by using built-in parental controls on many devices. It is a great feature, especially if you want to manage the content your children can access.

We will explain how to set up parental controls on Windows 10 and Google Chrome. Mac also has a built-in parental control named Screen Time. However, it does not block sites on Chrome.

If you want to block websites on Windows 10, follow these steps:

  1. In the Windows menu, find Settings -> Accounts to set up a child account.
Choosing Accounts in Windows settings panel.
  1. Click on the Family & other users -> Add a family member -> Create one for a child.
Creating a child account on Windows 10.
  1. Access your Microsoft account page.
  2. Head to your child’s account and click Overview -> Content filters.
Clicking Overview on your child's Windows account.
  1. In the Blocked sites bar, enter the URL or the domain name of the site you want to block.
Blocked sites setting on Windows child account.
  1. Once done, click the plus icon to add it to your block list. Repeat the process to add more sites.
  2. Check the result by switching to your child’s account and see if the site is blocked.

For Mac or Windows users, you can also use parental controls on Google Chrome to monitor your child’s activities and hide an unsafe site.

One way to do so is by activating SafeSearch on your computer’s Google account by accessing preferences. Tick the Turn on SafeSearch box and scroll down to the bottom of the web page to click Save.

Clicking on the Turn on SafeSearch button.

Once activated, any explicit content should be hidden from your child.

The second way is by using the Google Family Link app for both Android and iOS phones.

Some features might not work when using the Google Family Link app on an iOS mobile device.

To block a site using Google Family Link, follow the instructions below:

  1. Download the app on Google Play Store and set up an account for your family.
  2. Access your child’s account.
  3. Go to Manage Settings -> Filters on Google Chrome -> Manage sites -> Blocked.
  4. Tap the Add an exception icon.
  5. Type in the website or the domain that you want to block.
  6. Save and see if the site is blocked.

Why Would You Need to Block Websites?

There are a few reasons why you might need to block a website:

  • Content Filtering – if you are a parent, you might need to block certain websites to prevent your kids from accessing them. Also, this can keep the children focused on kid-friendly websites.
  • Malicious sites computer viruses are harmful to your device and can even break through the antivirus program. So if you know a website that is spreading computer malware, block it right away.
  • Work Mode – blocking websites can help increase productivity. With fewer distractions on their phone or computer, people can focus more on their work.

Conclusion

While many websites are helpful, you may come across a situation where blocking a website might be a good idea.

In this article, we have discussed the four methods to do so:

  1. Manually editing the hosts file. This is one way to block a website manually.
  2. Using a Chrome extension. Do this by downloading the BlockSite extension for Chrome.
  3. If you’re using iOS and Android. Download the BlockSite app for Android and iOS.
  4. Using built-in parental controls. Set up parental controls in Windows 10 through your Microsoft account, activate SafeSearch, or use Google Family Link.

There are many reasons to block a website, such as protecting your children from harmful content, avoiding malicious sites, or simply wanting to focus more on your work.

Try out any method and browse safely. Don’t hesitate to leave feedback if you have some comments or questions.

How to Block a Website FAQ

What Is the Best Website Blocker?

The best website blockers are SiteBlock, Freedom, Serene, and Y-Productive. Some of them are available as apps that you can install on your device, while others are compatible with various operating systems like Windows or Mac.  

What Can Parents Do to Protect Their Child on the Internet?

It’s important that you talk to your children about their online activities and give them proper education regarding internet privacy and other issues. Make sure to stay around your children while they’re on their screens or devices and regulate the time they spend online. 

How Do I Block a Website on My Kid’s Phone?

Other than enabling SafeSearch on your Chrome browser, you can also implement extra measures by installing a site blocker and blocking harmful websites. 

Author
The author

Leonardus N.

Leo is a Digital Content Writer at Hostinger. He loves to share his web hosting and WordPress knowledge to help people build a successful online presence. During his free time, he likes to play music and learn audio engineering.

Author
The Co-author

Domantas G.

Domantas leads the content and SEO teams forward with fresh ideas and out of the box approaches. Armed with extensive SEO and marketing knowledge, he aims to spread the word of Hostinger to every corner of the world. During his free time, Domantas likes to hone his web development skills and travel to exotic places.