Meregate.com
Friday, December 4, 2026
Home › Computers › How to Block a Website: A Simple Guide for Chrome, iPhone, Android, Windows, and Mac

How to Block a Website: A Simple Guide for Chrome, iPhone, Android, Windows, and Mac

How to Block a Website: A Simple Guide for Chrome, iPhone, Android, Windows, and Mac

Want to block a website on your computer or phone? Maybe it is a social media site that eats your work hours, a game site your child keeps opening, or a site you just do not want on your home network. The good news is that you can block a website on almost any device, and most of the ways to do it are free.

The tricky part is picking the right method. A browser extension is fast but easy to turn off. The hosts file blocks a site in every browser, but it takes a few careful steps. A router block covers every device in your home, but the settings look different on each router. This guide covers all of them: Chrome, iPhone, Android, Windows, Mac, Firefox, and Edge, plus how to unblock a site, how to make a block hard to undo, and what to do when a block does not work.

Which method should you use?

Start here if you are not sure which way to go. Each method blocks at a different level, and that decides how strong the block is.

MethodWorks onCostWhat it blocksEasy to undo?
Browser extensionChrome, Firefox, Edge on desktopFree (some paid extras)Sites in that one browserYes, unless you lock it with a password
Screen TimeiPhone, iPad, MacFree, built inSites in Safari and other browsers on the deviceNo, if you set a passcode
Google Family LinkAndroid, Chromebook, ChromeFree, built inSites in Chrome on a child accountNo, only the parent can change it
Hosts fileWindows, Mac, LinuxFree, built inSites in every browser on that computerYes, if you have admin rights
Router blockEvery device on your home Wi-FiFree, built inSites on all devices on the networkOnly from the router settings
DNS filteringAny device or the whole networkFree options existSites or whole categories, everywhere the DNS is setOnly by changing the DNS back
Focus app (Cold Turkey, Freedom)Windows, Mac, Android, iOSFree and paid versionsSites and apps, on a scheduleNo, during a locked session

Quick rule: if you want to block a site for yourself, use an extension with a password lock or a focus app with a timed lock. If you want to block a site for a child, use Screen Time or Family Link. If you want to block a site for the whole house, use the router or DNS filtering.

How to block a website on Chrome (desktop)

Chrome does not have a built-in site blocker for a normal personal profile. The easiest way is a free extension. Block Site is one of the most used options: it has a 4.4-star rating and more than 100,000 users on the Chrome Web Store.

Here is how to set it up:

  1. Open Chrome and go to the Block Site page on the Chrome Web Store.
  2. Click Add to Chrome, then click Add extension to confirm.
  3. Click the puzzle-piece icon in the Chrome toolbar, then click Block Site to open it. Pin it to the toolbar so you can reach it fast.
  4. Type the website address you want to block, for example facebook.com, and click the plus button or press Enter.
  5. Open the extension settings to turn on extra options: a password lock, a work schedule, or a redirect page that opens instead of the blocked site.

Block both versions of the address when you add a site: the plain domain (facebook.com) and the www version (www.facebook.com). Some extensions do this for you, but it is worth checking. Also add common subdomains you want blocked, such as m.facebook.com, because a block on the main domain does not always cover them.

How to block a specific page instead of a whole website

The hosts file and most built-in tools can only block a whole domain. An extension can do more. In Block Site, you can block by keyword or by a full web address, so you can block one page or one section of a site while the rest of the site still works. For example, you can block youtube.com/shorts without blocking all of YouTube. Check the extension settings for a “block by keyword” or “block URL” option.

How to make the block stick in Chrome

An extension block is easy to remove, which is a problem when you are blocking a site from yourself. Three things help:

  • Turn on the password lock in the extension settings, and let someone else set the password.
  • Set a work schedule, so the site stays blocked during your work hours even if you forget.
  • Use a focus app such as Cold Turkey instead. It can lock a block for a set time, and you cannot turn it off until the timer ends.

How to block a website on Chrome for Android

Chrome on Android has no built-in site blocker either. You have two good options.

Option 1: A blocker app. Install the BlockSite app from the Google Play Store. Open the app, tap the plus button, and add the site you want to block. The app blocks the site in Chrome on your phone. It also offers a schedule and a focus mode.

Option 2: Google Family Link. This is the better choice if the phone belongs to a child. Set up the child account in Family Link, then open Family Link, pick the child, go to Controls, then Google Chrome and Web. You can choose “Try to block explicit sites” or “Only allow approved sites”, and under Manage sites you can add exact sites to the blocked list. Only the parent account can change these settings.

Android also has Digital Wellbeing, but note its limit: it can set time limits for apps, not block a specific website in Chrome. Use it together with a blocker app or Family Link if you want both.

A hand holding a smartphone, the kind of phone you can block websites on with Screen Time, Family Link, or a blocker app
Source: Pexels

How to block a website on iPhone and iPad

On an iPhone or iPad, use Screen Time. It is built in, free, and it works in Safari and in other browsers on the phone, because Apple applies the web limits at the device level.

  1. Open Settings, then tap Screen Time. If it is off, turn it on.
  2. Tap Content & Privacy Restrictions and switch it on.
  3. Tap Content Restrictions, then Web Content.
  4. Pick Limit Adult Websites. Under Never Allow, tap Add Website and type the address you want to block.
  5. Go back and set a Screen Time Passcode under the main Screen Time screen. Without a passcode, anyone can open Settings and remove the block.

If you want to allow only a small list of sites and block everything else, pick Allowed Websites Only instead, and add the sites you allow. This is the strictest option, and it works well for a young child’s iPad.

The same steps work on a Mac, from System Settings and then Screen Time. The web content settings sit under Content & Privacy, then Content Restrictions.

How to block a website on Android

Android phones do not have one single built-in website blocker for adults, so the method depends on whose phone it is.

  • For a child: Use Google Family Link. It is the official tool, it is free, and it controls Chrome web access on the child account. The parent picks the child in Family Link, opens Controls, then Google Chrome and Web, and adds sites under Manage sites.
  • For yourself: Install a blocker app such as BlockSite from the Google Play Store, add the sites, and set a schedule. Some phones also let you block sites through a private DNS setting, which is covered in the DNS section below.
  • For a work phone: Ask your IT admin. Many companies manage this with Google Admin or a mobile device tool, and a personal blocker app will not override a company policy.

How to block a website on Windows

The hosts file method blocks a site in every browser on your Windows computer: Chrome, Edge, Firefox, and any other browser. You need an administrator account to edit it.

  1. Click Start, type Notepad, right-click it, and choose Run as administrator. Click Yes if Windows asks for permission.
  2. In Notepad, click File, then Open. Go to C:\Windows\System32\drivers\etc. Change the file type box at the bottom right from “Text Documents” to “All Files”, then open the file named hosts.
  3. Go to the bottom of the file. On a new line, type 127.0.0.1, then a space, then the site address. Add one line for each version of the site:
    127.0.0.1 facebook.com
    127.0.0.1 www.facebook.com
  4. Click File, then Save. Close Notepad.
  5. Close your browser and open it again. The site should now fail to load.

If the site still opens, your computer may have the old address saved in its memory. Open Command Prompt as an administrator and type ipconfig /flushdns, then press Enter. Also clear your browser cache, or test in a new browser window.

Two warnings: some antivirus programs protect the hosts file and will block the change, so you may need to allow it in your antivirus settings. And the hosts file cannot block a single page of a site, only the whole domain. To undo the block, open the hosts file the same way and delete the lines you added.

A person typing on a computer keyboard while editing settings to block a website on Windows
Source: Pexels

How to block a website on Mac

You have two built-in options on a Mac.

Option 1: Screen Time (easiest). Open System Settings, then Screen Time. Turn on Content & Privacy, go to Content Restrictions, then Web Content. Pick Limit Adult Websites and add the site under Never Allow. Set a Screen Time passcode so the block cannot be removed without it.

Option 2: Hosts file (stronger). Open Terminal and type sudo nano /etc/hosts, then press Enter and type your Mac password. Add lines at the bottom in the same format as Windows: 127.0.0.1 facebook.com and 127.0.0.1 www.facebook.com. Press Control + O to save, then Control + X to exit. Then run sudo dscacheutil -flushcache to clear the DNS cache. This blocks the site in Safari, Chrome, Firefox, and every other browser on the Mac.

How to block a website on Firefox and Edge

Firefox has no built-in site blocker. The simple way is an add-on: open the Firefox menu, go to Add-ons and themes, search for Block Site or LeechBlock NG, and install it. Then add the sites you want to block in the add-on settings, the same way as in Chrome. The hosts file method also works on Firefox, since it blocks at the computer level rather than the browser level.

Edge is in the same spot: there is no built-in blocker for a personal account. You can install Block Site from the Edge Add-ons store, or use the hosts file method. If the computer uses a child account, Microsoft Family Safety can filter websites in Edge. A parent turns this on at family.microsoft.com, picks the child, and sets the web filtering options there.

How to block a website on your whole network

If you want a site blocked on every device that uses your home Wi-Fi, including phones, tablets, smart TVs, and game consoles, block it at the router or through DNS. A browser extension cannot do this, because it only works in one browser on one device.

Router block

  1. Find your router address. On Windows, open Command Prompt and type ipconfig; the “Default Gateway” is usually 192.168.1.1 or 192.168.0.1. On a Mac, check System Settings, then Network, then your connection details for the router address.
  2. Type that address into your browser and sign in with the router admin password. If you never changed it, the default password is often printed on a sticker on the router itself.
  3. Look for Parental Controls, Access Restrictions, or Website Filtering. The name is different on each brand, but the idea is the same.
  4. Add the domain you want to block, save, and restart the router if it asks you to.

Router menus are all different, so if you cannot find the setting, search for your router model plus “block website” and follow the maker guide. Also change the router admin password if it is still the default, or anyone on your network can undo the block.

DNS filtering

DNS is the service that turns a website name into a number your device can connect to. A filtering DNS service refuses to resolve the names you block, so the site never loads. You can set it on your router, which covers the whole house, or on one device.

Free options include OpenDNS FamilyShield and CleanBrowsing. To use one, open your router or device network settings, find the DNS fields, and replace the current DNS addresses with the ones from the service you picked. The service website lists the exact numbers to enter. After you save, the block applies to every browser and app on that device or network, and it keeps working even if someone installs a new browser.

How to block a website for your child

Built-in parental controls are the right tool here, not a random extension. They are free, they are hard for a child to remove, and they cover more than one browser.

  • iPhone, iPad, or Mac: Screen Time, with a passcode only you know. Use “Limit Adult Websites” and add sites under “Never Allow”, or use “Allowed Websites Only” for a young child.
  • Android or Chromebook: Google Family Link. Pick the child, open Controls, then Google Chrome and Web, and manage the blocked list under Manage sites.
  • Windows: Microsoft Family Safety, set up at family.microsoft.com, with web filtering on the child account.
  • Whole house: Add a router block or DNS filtering on top, so the block holds even on a friend device or a game console.

Also set a schedule where you can. Screen Time and Family Link both support time limits, so a site can be open for homework hours and blocked at bedtime. And talk to your child about why the site is blocked: a control works far better when it is not a mystery.

How to make a block hard to undo

If you have full admin access to your own device, no block is truly permanent. You can always undo what you set up. The goal is to make undoing it slow and awkward, so you do not do it on impulse.

  • Lock the extension with a password and let someone you trust set the password.
  • Use a timed lock. Cold Turkey on Windows and Mac can lock a block for hours or days, and it cannot be turned off until the timer ends, even if you restart the computer.
  • Block at the network level. A router or DNS block is harder to undo than a browser extension, because it is not in the browser at all.
  • Remove your own admin rights. On a shared computer, use a standard user account for daily use and keep the admin password with someone else. Without admin rights you cannot edit the hosts file, change DNS, or install another browser to get around the block.
  • Block the easy exits too. If you block a site in Chrome but leave Firefox installed, you will just open Firefox. Block it in every browser, or block it at the hosts file or router level instead.

How to unblock a website

Unblocking is the reverse of blocking, and the steps depend on the method you used:

  • Extension: Open the extension, find the site in the blocked list, and remove it. If a password lock is on, you need the password first.
  • Screen Time: Go back to Web Content under Content Restrictions, find the site under Never Allow, and delete it. You need the Screen Time passcode.
  • Family Link: The parent opens Family Link, picks the child, goes to Google Chrome and Web, then Manage sites, and removes the site from the blocked list.
  • Hosts file: Open the hosts file as an administrator again, delete the lines you added, save, and flush the DNS cache.
  • Router or DNS: Sign in to the router or device settings and remove the domain from the block list, or change the DNS back to the automatic setting.

Why your block is not working

If the site still opens after you blocked it, one of these is usually the cause:

  • You are in incognito or private mode. Most extensions are turned off in incognito by default. Either use a normal window, or turn on “Allow in Incognito” for the extension in your browser settings.
  • You blocked only one version of the address. Blocking facebook.com may not block www.facebook.com or m.facebook.com. Add each version.
  • You are in a different browser or profile. An extension in Chrome does nothing in Firefox, and a block in one Chrome profile does not apply to another profile. Block the site in every browser you use, or use the hosts file or router instead.
  • A VPN or proxy is on. A VPN can send your traffic around a DNS filter or a router block. Turn it off, or set the block on the device itself.
  • Your browser cached the site. Clear the cache, or close and reopen the browser, and test again.
  • Secure DNS is bypassing your filter. Chrome and Firefox can use DNS-over-HTTPS, which may skip a DNS filter set on your router. In Chrome, check Settings, then Privacy and security, then Security, and turn off “Use secure DNS” or set it to the same filtering provider.
  • It is an app, not a website. Blocking a site in a browser does not block the same service in its mobile app. You need Screen Time app limits, Family Link, or Digital Wellbeing app timers for that.

Privacy: what website blockers can see

Before you install a blocker, check what it can access. A browser extension that blocks sites needs permission to read the addresses of the pages you visit. That is normal for this kind of tool, but it is still worth a look. For example, the Block Site listing on the Chrome Web Store says it collects location, user activity, and website content for the app to work, and that it does not sell that data or use it for tracking.

A few simple rules: install extensions only from the official Chrome Web Store, Firefox Add-ons, or Edge Add-ons pages. Read the permissions before you click install. If privacy matters a lot to you, use the built-in tools first: Screen Time, Family Link, the hosts file, or DNS filtering. Those do not send your browsing to a third party. And never install a blocker from a random download site or a link in an email.

Frequently asked questions

Can you permanently block a website?

Yes, you can block a website for as long as you want. But if you have full admin access to the device or network, nothing is 100 percent irreversible, because you can always undo your own settings. The strongest setup is a router or DNS block plus a standard user account without admin rights, so undoing it takes real effort.

How do I block a website in Safari?

Use Screen Time. On iPhone or iPad, go to Settings, then Screen Time, then Content & Privacy Restrictions, then Content Restrictions, then Web Content, and add the site under Never Allow. On a Mac, the same settings live in System Settings under Screen Time.

Can you block a website on your phone?

Yes. On an iPhone, use Screen Time. On Android, use Google Family Link for a child, or a blocker app such as BlockSite for yourself. Both work across browsers on the phone, so switching browsers will not get around the block.

Is there a free way to block websites?

Yes, most methods are free. Browser extensions such as Block Site have free versions. Screen Time, Family Link, the hosts file, and router blocking cost nothing. DNS filtering services such as OpenDNS FamilyShield and CleanBrowsing also have free plans. Paid focus apps add schedules, timed locks, and app blocking.

How do I block a specific page instead of a whole website?

Use a browser extension that supports blocking by URL or keyword, such as Block Site. The hosts file, Screen Time, and router blocks work at the domain level only, so they block the whole site. In an extension, you can block one page address, such as a single video page, while the rest of the site stays open.

How do I block a website for my child?

Use the built-in parental controls: Screen Time on iPhone, iPad, and Mac, or Google Family Link on Android and Chromebook. Add the site to the blocked list and set a passcode or keep the parent account in charge, so your child cannot remove the block. For extra cover, add a router block or DNS filtering for the whole house.

Can I block a site from Google search results?

Google does not offer a built-in way to block a site from your search results. You can use a free extension such as uBlacklist, which hides the sites you list from Google search pages. Note that this only hides the results; it does not block the site itself. To block the site, use one of the methods above as well.

Last updated: December 2026

Taylor Orlando

Taylor Orlando is a content writer at Meregate covering websites, SEO, and AI. Taylor breaks down complex topics into simple, practical guides that help small businesses build better websites, rank higher on Google, and get real value from AI tools — no jargon, no fluff.

Related Articles