The fastest way depends on what you're blocking and from where
You can block a website at three different levels: on a single browser, across your whole device, or on your entire home network. Browser-level blocking is fastest and works immediately — you install an extension and it stops the site from loading. Device-level blocking requires more setup but catches the site no matter which browser you use. Network-level blocking is the most powerful option if you're managing a household or office, because it stops the site on every device connected to your WiFi.
The method you choose depends on whether you're blocking sites for yourself, protecting children on shared devices, or preventing access across multiple machines. Each approach has different trade-offs in terms of effort, how easy it is to bypass, and what you can see about blocked traffic.
Key Takeaways
- Browser extensions like uBlock Origin or Freedom block sites instantly within one browser, and you can add or remove them in seconds.
- Device-level blocking through your operating system's hosts file or parental controls affects all browsers and programs on that computer.
- Router-level blocking stops a site on every device connected to your WiFi, but requires access to your router's admin panel and a restart.
- DNS filtering services like Cloudflare's 1.1.1.1 for Families or Quad9 block sites across all your devices without installing software on each one.
- No blocking method is completely bypass-proof — determined users can use a VPN or different DNS to get around any of these approaches.
Browser extension blocking for single-browser control
Installing a blocking extension is the simplest starting point. Extensions like uBlock Origin, Freedom, and Cold Turkey Blocker work inside your browser and stop a site from loading before it even connects. You add the extension from your browser's store (Chrome Web Store for Chrome, Firefox Add-ons for Firefox), then add the sites you want blocked to the extension's list.
The advantage is speed — you can block a site in under a minute, and the block takes effect immediately without restarting anything. The disadvantage is that the block only works in that one browser. If you use Chrome for work and Safari for personal browsing, blocking a site in Chrome won't stop it in Safari. Also, someone with access to your device can uninstall the extension if they know it's there.
For self-imposed blocking (stopping yourself from visiting a site during work hours, for example), extensions like Freedom and Cold Turkey Blocker add a time-lock feature: you set a schedule and the block activates automatically, and you cannot turn it off until the time expires. This works because the extension runs at a deeper level than your browser's normal settings.
Device-level blocking through your operating system
To block a site across every browser on your computer, you can edit your device's hosts file. This is a text file that your operating system checks before it looks up a website's address on the internet. By adding an entry that points a domain name to a fake address, you prevent your device from ever reaching that site, no matter which browser you use.
On Windows, the hosts file is at C:\Windows\System32\drivers\etc\hosts. On Mac or Linux, it's at /etc/hosts. You open it with a text editor (Notepad on Windows, TextEdit on Mac), add a line like 127.0.0.1 example.com, save the file, and the block is active immediately. The drawback is that this method requires you to be comfortable editing system files, and you need administrator access to save changes.
For households with children, most operating systems include parental controls that offer a simpler interface. On Windows 10 and 11, you can set up a child account and use Family settings to block websites by category or by specific URL. On Mac, parental controls are in System Settings under Parental Controls. These built-in tools don't require editing files, but they're less flexible than the hosts file method and may not block all variations of a domain.
Network-level blocking through your router
If you want to block a site on every device in your home without installing anything on each device, you can configure your router. Log into your router's admin panel (usually by typing your router's IP address, often 192.168.1.1 or 192.168.0.1, into a browser), find the section labeled Access Control, Parental Controls, or Website Filtering, and add the domain you want to block.
The advantage is that the block applies to phones, tablets, laptops, and any other device on your WiFi — you set it once and it works everywhere. The disadvantage is that it requires you to know your router's admin password, and the interface varies widely between router brands. Some routers have a simple list where you type domain names; others require you to understand URL patterns or IP addresses.
After you add a site to the block list, restart your router for the change to take effect. Most routers take two to five minutes to restart. If you're blocking a site for a child and they're old enough to know your WiFi password, they can connect to a mobile hotspot instead, which bypasses the router entirely.
DNS filtering for device-wide blocking without software
DNS filtering is a middle ground between browser extensions and router blocking. Instead of changing your device's settings, you change which DNS service your device uses to look up website addresses. Services like Cloudflare's 1.1.1.1 for Families, Quad9, and OpenDNS intercept requests to blocked sites and return a "site not found" message before your device ever tries to connect.
To use DNS filtering on a single device, you go to your network settings and change your DNS servers. On Windows, this is in Settings > Network & Internet > WiFi > Manage Known Networks > Properties > DNS Server Settings. On Mac, it's in System Settings > Network > WiFi > Details > DNS. You replace your current DNS servers with the ones provided by the filtering service (for example, Cloudflare's 1.1.1.1 for Families uses 1.1.1.3 and 1.0.0.3).
The advantage is that the block works across all browsers and programs on that device, and you don't need to install anything. The disadvantage is that you have to change DNS settings on each device separately, and some filtering services offer only preset categories (like "adult content" or "gambling") rather than custom site lists.
Why blocking can be bypassed and what that means
No blocking method is completely secure against someone who knows what they're doing. A user with technical knowledge can bypass browser extensions by using a different browser, bypass device-level blocks by using a VPN, and bypass network-level blocks by connecting to a mobile hotspot. This is important to understand if you're setting up blocks for a child — blocking is a friction tool, not a lock.
If your goal is to protect a young child from accidentally stumbling onto harmful content, any of these methods will work. If your goal is to prevent a teenager with technical skills from accessing a site, you need to combine blocking with conversation and trust. The most effective approach is usually to explain why a site is off-limits, set the block, and check in periodically rather than treating the block as a complete barrier.
For your own use — blocking distracting sites during work hours, for example — browser extensions with time-locks are usually sufficient because you're not trying to outsmart yourself. The friction of having to wait for the time lock to expire is usually enough to break the habit.
Comparing the four main approaches
Each blocking method trades off simplicity, coverage, and how easy it is to work around. The table below shows how they compare on the factors that matter most when you're deciding which one to use.
| Method | Setup Time | Works Across | Easiest to Bypass |
|---|---|---|---|
| Browser extension | 1–2 minutes | One browser only | Switch browsers or uninstall extension |
| Hosts file | 5–10 minutes | All browsers on that device | Use a VPN or different DNS |
| Router settings | 10–15 minutes | All devices on your WiFi | Connect to mobile hotspot |
| DNS filtering | 5 minutes per device | All browsers on that device | Use a VPN or change DNS again |
If you're blocking for yourself, a browser extension is usually the right choice because it's fast and you can toggle it off easily. If you're managing a shared household device, the hosts file or built-in parental controls give you coverage across all browsers. If you need to block across multiple devices at once, router-level blocking or DNS filtering are more efficient than setting up each device separately.
Frequently Asked Questions
Can I block a site on my phone?
Yes, but the method depends on your phone's operating system. On iPhone, you can use Screen Time (Settings > Screen Time > Content & Privacy Restrictions > Allowed Apps) to block apps and websites. On Android, you can use parental control apps like Google Family Link or install a browser extension in Chrome. DNS filtering also works on phones if you change your WiFi's DNS settings in your network properties.
What if I block a site but still want to access it sometimes?
Browser extensions usually let you temporarily disable the block with one click, though some (like Cold Turkey) require you to wait out a timer. Router and DNS blocks typically require you to log back into the admin panel to remove the site from the block list. If you need frequent on-and-off access, a browser extension with a toggle is usually more practical than device or network-level blocking.
Will blocking a site slow down my internet?
Browser extensions and hosts file blocks have no noticeable impact on speed. Router-level and DNS-level blocks may add a tiny delay (milliseconds) because your device has to check the block list before loading a page, but this is not noticeable in normal use. The slowdown, if any, is far smaller than the delay from a slow WiFi connection.
Can my internet provider see what sites I block?
Your internet provider cannot see which sites you block locally (browser extensions, hosts file, or device parental controls). They can see which sites you visit unless you use a VPN. If you use DNS filtering through a service like Cloudflare or Quad9, your provider can see that you're using that service, but not which specific sites you've blocked through it.
What's the difference between blocking and filtering?
Blocking means preventing access to specific sites you name. Filtering means blocking entire categories of sites (like adult content, gambling, or social media) based on preset lists. Most router parental controls and DNS filtering services offer both — you can block specific sites by URL and also enable category filters. Browser extensions usually offer only blocking, not category filtering.