India English
Kenya English
United Kingdom English
South Africa English
Nigeria English
United States English
United States Español
Indonesia English
Bangladesh English
Egypt العربية
Tanzania English
Ethiopia English
Uganda English
Congo - Kinshasa English
Ghana English
Côte d’Ivoire English
Zambia English
Cameroon English
Rwanda English
Germany Deutsch
France Français
Spain Català
Spain Español
Italy Italiano
Russia Русский
Japan English
Brazil Português
Brazil Português
Mexico Español
Philippines English
Pakistan English
Turkey Türkçe
Vietnam English
Thailand English
South Korea English
Australia English
China 中文
Somalia English
Netherlands Nederlands

How to Block a Website in Google Chrome or Any Device or Browser

Build Something Beautiful

With a .Co.za Domain

Just R50 (Back to R99 in 7 days)

The internet can be a blessing, but it can also be a serious distraction or even a danger. Whether you’re a parent trying to protect your kids, a student fighting off procrastination, or someone simply trying to avoid toxic sites, knowing how to block certain websites can make a huge difference.

The good news? You don’t need to be a tech expert to do it.

This guide is designed to walk you through the process step by step, in plain language. You’ll learn how-to-block-a-website on just about any device or browser you use every day:
Google Chrome, Windows PCs, MacBooks, Android phones, iPhones, and more.

We’ll keep things clear, simple, and practical so that you can take back control in just a few clicks.

Why You Might Want to Block a Website

We all use the internet every day, for work, learning, and staying connected. But not every website is helpful or safe. 

Sometimes, certain sites do more harm than good.

Here are some of the most common reasons people choose to block websites:

  • To stay focused

Social media, video platforms, and gaming sites can be major distractions when you’re trying to work or study.

  • To protect children

As a parent or guardian, you might want to block access to websites with adult content, violence, or other harmful material.

  • To avoid harmful content 

Some websites are known for scams, fake news, or malware. Blocking them keeps your device and your data safe.

Whether at home or in the office, limiting access to time-wasting websites can help everyone stay on track.

Whatever your reason, the good news is this: blocking a website is completely doable, and you don’t need to be a tech genius to pull it off.

1) How to Block a Website in Google Chrome (Desktop)

Google Chrome is one of the most popular browsers out there. It is fast, simple, and user-friendly. But one thing it doesn’t offer out of the box is a way to block websites.

Luckily, there’s a quick solution: use a browser extension.

✅ Use a Free Chrome Extension

Extensions are small add-ons you can install in Chrome to expand its features, and some are designed specifically to help you block websites easily.

Here’s a step-by-step guide to get started:

  1. Open Google Chrome on your computer.
a screenshot of chrome
  1. Go to the Chrome Web Store.
A Screenshot of chrome web store
A screenshot of website blocker extensions
  1. In the search bar, type a keyword like “website blocker” or look for these popular options:
    • BlockSite
    • StayFocusd
    • Site Blocker
  2. Find the extension that suits your needs and click “Add to Chrome”.
a screenshot of stayfocused with add to chrome button
  1. After it installs, you’ll see the icon appear near the top-right corner of your browser.
  2. Click the icon and open the extension’s Settings or Dashboard.
  3. There, you can type in the websites you want to block. For example,
    www.facebook.com, www.youtube.com, or any other domain.

Pro Tip: Most extensions let you set time limits or create schedules. You can block sites only during work hours or study time, and access them again later.

Why Use an Extension?

  • No need to change system settings
  • Easy to install and remove
  • Works only in Chrome, so other browsers won’t be affected

If you’re someone who spends a lot of time in Chrome and needs a quick fix to distractions, this is one of the easiest and most effective methods to try.

2) How to Block a Website on Windows (All Browsers)

If you want to block a website across all browsers on your Windows computer, including Google Chrome, Microsoft Edge, Firefox, and others, the most reliable method is to edit the hosts file.

This method works at the system level, meaning once you block a site here, it won’t load in any browser on your PC.

Method: Use the Windows Hosts File

The hosts file is a small but powerful system file in Windows that maps domain names to IP addresses. 

By pointing a website’s domain to your local computer (127.0.0.1), you’re telling Windows to stop loading it from the internet.

Follow These Steps:

  1. Search for Notepad in your Start Menu
a screenshot of Notepad
  1. Right-click it and select “Run as administrator.”

    You must open Notepad with admin rights or you won’t be able to save the file later.
  2. In Notepad, go to File > Open
  3. Go to this folder:

    makefile
    CopyEdit
    C:\Windows\System32\drivers\etc
  4. In the file type dropdown (bottom-right), choose “All Files”, then open the file named hosts
  5. Scroll to the bottom of the file and add a new line like this:

    vbnet
    CopyEdit
    127.0.0.1    www.website-you-want-to-block.com

 For example:

CopyEdit
127.0.0.1    www.facebook.com

127.0.0.1    www.youtube.com

  1. Save the file (Ctrl + S) and close Notepad
  2. Restart your browser to apply the changes

If the website still loads, try restarting your computer or clearing your DNS cache.

💡 Why This Works

By redirecting the website to 127.0.0.1 (your computer), your browser can’t find the real version online, effectively blocking it.

⚠ Important Notes:

  • You must have administrator access to edit and save the hosts file.
  • This method doesn’t have a user-friendly interface — but it’s powerful and doesn’t rely on third-party apps.
  • To unblock the website later, simply remove the line from the hosts file and save again.

If you’re looking for a permanent, no-distraction solution across all browsers, this is a great option.

3) How to Block a Website on macOS

If you’re using a Mac and want to block websites across all browsers, like Safari, Chrome, or Firefox, you can do it by editing the hosts file. This works similarly to how it does on Windows.

You’ll use the Terminal app, which gives you direct access to system-level settings.

Use the Terminal + Hosts File

Here’s how to block a website on macOS:

  1. Open Terminal (you can find it via Spotlight or in Applications > Utilities).
  2. Type the following command and press Enter:

    bash
    CopyEdit
    sudo nano /etc/hosts
  3. Enter your Mac password when prompted.
  4. You’ll see a file open in a simple text editor. Scroll to the bottom and add this line:

    vbnet
    CopyEdit
    127.0.0.1    www.website-you-want-to-block.com

 For example:

CopyEdit
127.0.0.1    www.reddit.com

  1. To save, press Control + O, then press Enter
  2. To exit the editor, press Control + X

Now, flush the DNS cache so changes take effect:

nginx

CopyEdit

sudo dscacheutil -flushcache

After this, the website will no longer load in any browser on your Mac.

This is a simple, powerful way to block distractions — and it doesn’t require installing anything.

4) How to Block a Website on Android

Most Android browsers don’t have built-in blocking tools. But the good news is: there’s an app for that.

Use the BlockSite App (Free)

BlockSite is a popular Android app designed to help you control your browsing habits.

Here’s how to use it:

  1. Go to Google Play Store and download the BlockSite app.
  2. Open the app and grant the permissions it asks for (like accessibility access).
  3. Tap the “+” button to start adding websites.
  4. Type in the URLs you want to block — for example:
    www.instagram.com or www.netflix.com
  5. You can also:
    • Set daily schedules
    • Block adult content
    • Prevent access in Incognito mode
    • Even block specific keywords or apps

It’s perfect if you’re trying to stay focused or create a child-safe phone environment.

5) How to Block a Website on iPhone or iPad

Apple makes it surprisingly easy to block websites, thanks to Screen Time, a built-in tool for managing content and device usage.

Use Screen Time

Follow these steps:

  1. Go to Settings > Screen Time
  2. If you haven’t already, tap “Turn On Screen Time.”
  3. Tap Content & Privacy Restrictions and toggle it On
  4. Go to Content Restrictions > Web Content
  5. Choose Limit Adult Websites
  6. Under “Never Allow”, tap Add Website
  7. Enter the full URL of the site you want to block

Once added, that website won’t open in Safari, Chrome, or any other browser on your iPhone or iPad.

This is a great option for parents setting limits on children’s devices, or anyone managing their screen habits.

6) Blocking Websites on Routers (Network-Wide)

Blocking websites at the router level affects all devices connected to your network. This is ideal for parental controls or small office environments.

1. Access Your Router’s Settings

  1. Find your router’s IP address (often printed on the back of the router or in its manual). Common IPs are 192.168.1.1 or 192.168.0.1.
  2. Open a web browser and enter the router’s IP address in the address bar.
  3. Log in using your router’s username and password (default credentials are often “admin” for both). Change these defaults for security!

2. Find Website Blocking/Parental Control Settings

Router interfaces vary, but look for sections like:

  • Parental Controls
  • Access Restrictions
  • Security
  • URL Filtering

3. Add Websites to the Block List

  1. In the relevant section, you’ll typically find an option to enter website URLs or keywords to block.
  2. Add the desired websites and save your changes.
  3. Some routers also allow you to set schedules for when these blocks are active.

4) Using Parental Control Software

For more comprehensive website blocking and monitoring, especially for families, parental control software is an excellent option.

Features of Parental Control Software
  • Advanced Filtering: Blocks categories of websites (e.g., adult content, gaming) rather than just individual sites.
  • Time Limits: Sets limits on screen time or internet usage.
  • Activity Reports: Provides insights into online activity.
  • Multi-Device Support: Manages settings across smartphones, tablets, and computers.

Examples include Net Nanny, Qustodio, and Bark. These often require installation on each device you wish to monitor.

This is ideal for shared spaces like homes, schools, or small businesses.

Troubleshooting Blocked Websites

Sometimes, a website might still be accessible even after you’ve tried to block it.

1) Clear Browser Cache and DNS

Your browser and computer store data to speed up loading times. This cached data can sometimes prevent new blocking rules from taking effect.

  • Clear Browser Cache: In Chrome, go to Settings > Privacy and security > Clear Browsing Data. Select “Cached images and files” and “Cookies and other site data.”
  • Flush DNS:
    • Windows: Open Command Prompt as administrator and type ipconfig /flushdns.
    • macOS: Open Terminal and type sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder.

2) Check for Multiple Blocking Methods

If you’ve used a Chrome extension and edited your hosts file, ensure there are no conflicts. Try disabling one method to see if the other takes effect.

3) Restart Devices

A simple restart of your browser, computer, or router can often resolve lingering issues and apply new settings correctly.

Conclusion

Learning how to block a website isn’t just for tech experts. It’s a simple but powerful way to take back control of your time and create a safer online space. 

Whether you’re trying to stay focused, protect your kids, or avoid harmful content, the right method is out there, from easy browser extensions to deeper system or router-level blocks.

The internet should work for you, not against you.

At Truehost SA, we get how overwhelming the digital world can be. That’s why we’re here, not just to power your websites and domains, but to help you build a healthier, more productive online life.

If you’re serious about managing your online environment,  not just what you browse, but how your systems operate, VPS hosting is worth exploring.

Read More Posts

50 Profitable Things to Make and Sell from Home

50 Profitable Things to Make and Sell from Home

Starting a home-based business in South Africa is a smart way to earn cash. You can create things to…

Top 10 Best Freelance Websites for Beginners

Top 10 Best Freelance Websites for Beginners

As a South African, freelancing offers you the chance to work and earn money on your own schedule. Be…

online-customer-reviews

Online Customer Reviews (Why and How to Get Them)

Customer reviews nowadays act as a loudspeaker that captures the attention of everyone. It helps in advertising your business,…

What Business Can I Start with R1000 in South Africa

Discover the Most Profitable Businesses in South Africa

Last updated on May 6th, 2025 at 03:57 pmAre you dreaming of starting a business in South Africa?…