What blocking a website means and why you might do it

Blocking a website means preventing your device or network from loading a specific web address. When you block a site, typing its URL into your browser will either show an error message or redirect you elsewhere — the page straightforward will not load. You might block a site to keep yourself focused during work, prevent children from reaching certain content, or stop ads and trackers from a known source.

The method you use depends on what you are trying to block and where. Blocking works at three different levels: on a single browser (like Chrome or Firefox), on your whole device (Windows, Mac, or phone), or on your entire home network through your router. Each level blocks differently and affects different devices.

Key Takeaways

  • Browser-level blocking is the fastest method and works only in that one browser — it does not affect other browsers or devices on your network.
  • Device-level blocking uses your operating system's built-in tools or third-party software and stops the site from loading on that computer or phone, no matter which browser you use.
  • Network-level blocking through your router stops the site for everyone connected to your Wi-Fi, but requires access to your router's settings.
  • The hosts file method works on Windows, Mac, and Linux by redirecting the website address to a fake location, preventing it from loading.
  • Parental control software can block sites by category (social media, gambling, adult content) rather than by individual URL, which is useful for managing children's access.

Blocking a website in your browser

The simplest way to block a site is through your browser using an extension. Extensions are small programs that add features to Chrome, Firefox, Edge, or Safari. The most common blocking extension is uBlock Origin (free, available for Chrome, Firefox, and Edge) or Freedom (paid, works across browsers). To use uBlock Origin: install it from the Chrome Web Store, click the extension icon in your toolbar, click the power button on the site you want to block, and refresh the page. The site will not load.

This method has one important limit: it only blocks the site in that browser. If you use Chrome to block a site but then open Firefox, the site will load in Firefox. Also, if someone else uses your computer with a different browser, they can still reach the blocked site. Browser blocking is best for your own focus and distraction — blocking social media while you work, for example — rather than for controlling what others can see.

If you want to block a site without installing an extension, most browsers let you set up a blocklist in settings. In Chrome, go to Settings > Safety > Manage all sites, then add the URL you want to block. This is less flexible than an extension but requires no extra software.

Blocking a website on Windows

To block a site on your entire Windows computer (in any browser), the most reliable method is editing the hosts file. The hosts file is a straightforward text document that tells your computer where to find websites. By adding an entry to it, you can redirect a website address to a fake location, so it never actually connects.

Here is how: Press the Windows key and type "Notepad". Right-click Notepad and select "Run as administrator" — this is important. In Notepad, go to File > Open and navigate to C:\Windows\System32\drivers\etc. Find the file named "hosts" (it has no file extension). Open it. At the bottom of the file, add a new line that reads 127.0.0.1 www.example.com, replacing "example.com" with the site you want to block. Save the file. The next time you try to visit that site in any browser, you will see a "connection refused" error.

The hosts file method works but is not reversible without editing the file again. If you want an easier on-and-off switch, use Cold Turkey (paid) or FocusWriter (free). These are applications that block sites on a schedule or for a set time period, and you can turn them off if needed.

Blocking a website on Mac or Linux

Mac and Linux use the same hosts file method as Windows, but the location is different. On Mac, open Terminal (find it in Applications > Utilities). Type sudo nano /etc/hosts and press Enter. You will be asked for your password. Once inside, scroll to the bottom and add the line 127.0.0.1 www.example.com, replacing "example.com" with your target site. Press Control+X, then Y, then Enter to save.

On Linux, the process is identical — open a terminal and use the same command. The hosts file approach works the same way on all three operating systems: it redirects the website address to your own computer, so the connection fails before it ever reaches the internet.

For Mac users who prefer a graphical tool, SelfControl (free) or Cold Turkey (paid) both block sites without requiring terminal commands. These applications are easier to use if you are not comfortable editing system files.

Blocking a website on your phone

On iPhone, go to Settings > Screen Time > Content & Privacy Restrictions. Turn on Content & Privacy Restrictions, then tap Allowed Apps and toggle off Safari (or any browser you want to restrict). Then go to Content Restrictions > Web Content and select "Limit Adult Websites". You can add specific sites to the "Never Allow" list by tapping that option. This blocks those sites across all browsers on your phone.

On Android, the process varies by phone manufacturer, but most phones have a similar feature. Go to Settings > Digital Wellbeing & Parental Controls > Parental Controls, turn it on, and add sites to a blocklist. If your phone does not have this built in, install a third-party app like AppBlock (free) or Freedom (paid), which can block sites and apps on a schedule.

Phone-level blocking is useful because it affects all browsers and apps on the device. However, if someone knows your phone's passcode, they can usually disable the restrictions in settings.

Blocking a website on your home network

To block a site for everyone connected to your Wi-Fi, you need to access your router's settings. A router is the device that provides your internet connection — it usually sits in a closet or on a shelf and has lights on it. To access it, open a web browser and type 192.168.1.1 or 192.168.0.1 into the address bar. You will be asked to log in. If you have never changed the password, it is usually "admin" for both username and password (check the sticker on the router itself).

Once logged in, look for a section called "Parental Controls", "Access Control", "Website Filtering", or "Blocked Sites" — the exact name depends on your router brand. Add the website URL you want to block. Save the settings. Now that site will not load on any device connected to your Wi-Fi, whether it is a phone, laptop, or tablet.

Router-level blocking is the most powerful method because it affects everyone on your network, but it also requires you to remember your router login and to know how to navigate its settings. If you forget the router password, you can usually reset it by holding a small button on the back of the router for 10 seconds, but this erases all your custom settings.

Using parental control software for category-based blocking

If you want to block entire categories of sites rather than individual URLs — for example, all social media sites or all gambling sites — parental control software is faster than blocking one site at a time. Bark, Qustodio, and Net Nanny are paid services that let you block by category and also monitor activity. OpenDNS (free tier available) blocks by category at the network level, so it affects all devices on your Wi-Fi.

These tools are most useful for parents managing children's internet access, but they also work for adults who want to block entire categories of distraction. Most require installation on each device or setup in your router, and they usually cost between $5 and $15 per month for a family plan.

Frequently Asked Questions

Can someone unblock a site I have blocked?

It depends on the method. Browser extensions can be disabled by anyone with access to the browser. Device-level blocking (hosts file, parental controls) can usually be bypassed if someone knows your computer password. Router-level blocking is hardest to bypass because it requires access to the router itself. If you want to prevent someone from unblocking a site, use router-level blocking and keep your router password private.

Will blocking a website slow down my internet?

No. Blocking a site does not affect your internet speed. Your device straightforward refuses to connect to that address, which takes no extra time or resources. The only exception is if you use parental control software that monitors all your traffic — that can add a tiny amount of overhead, but most users will not notice it.

What happens if I block a site by mistake?

You can unblock it the same way you blocked it. In a browser extension, click the extension icon and remove the block. In the hosts file, open it again and delete the line you added. In parental controls, go back to settings and remove the site from the blocklist. In your router, log in and delete it from the blocked sites list. Unblocking is always reversible.

Can I block a website on just one person's account on my computer?

Yes, if you use Windows or Mac user accounts. Set up parental controls on that specific user account, and the blocks will only explore when that person is logged in. Other accounts on the same computer will not be affected. This requires each person to have their own password-protected account.

Does blocking a website hide my activity from my internet provider?

No. Blocking a website on your device or router prevents the site from loading, but your internet provider can still see that you attempted to visit it. If you want to hide your browsing activity from your provider, you need a VPN (virtual private network), which is a different tool entirely. Blocking and privacy are separate things.