How to Block a Website on Any Device: Step-by-Step
The most reliable way to block a website depends on how wide you want the block to reach. To block a site on one person’s phone or computer, use the controls built into that device. To block it for everyone in the house, block it at the router, which covers every device on your home network at once. This guide explains how to do it at each level — browser, device, and router — plus the honest limits of each method, so you can pick the one that matches your situation.
People block websites for different reasons: keeping children away from content they should not see, removing distractions during work or study, or cutting off a site that is known for scams. The method matters less than matching it to the job, so start by choosing your level below.
Option 1: Block a Website in the Browser
The quickest, lightest option. Browser-level blocking works only inside that one browser, which makes it ideal for personal focus — blocking your own time-wasting sites — but weak as a safety measure, since another browser is one download away.
- Browser extensions. All major desktop browsers offer free blocking extensions in their official add-on stores. Install one, add the sites to its list, and the browser refuses to load them. Many let you set schedules — for example, social media blocked during work hours only.
- Built-in settings. Some browsers include basic site controls (permissions for notifications, pop-ups, and downloads) but few offer a simple built-in “block this website” list. That is why extensions are the usual answer at this level.
Option 2: Use Parental Controls on the Device
Every modern operating system includes family controls that can block websites for a child’s account — and these are the right tool for most parents, because they apply across the device rather than one app.
On iPhone and iPad (Screen Time): Open Settings → Screen Time → Content & Privacy Restrictions → Content Restrictions → Web Content. Choose “Limit Adult Websites” for automatic filtering, and under “Never Allow” add any specific site you want blocked completely. Protect the settings with a Screen Time passcode your child does not know.
On Android (Family Link and Digital Wellbeing): Google’s Family Link app lets a parent approve or block sites in Chrome on a child’s device and apply content filters. On an adult’s own phone, Digital Wellbeing focuses on app timers rather than website lists, so for self-blocking on Android, a blocking app from the Play Store is the usual route.
On Windows (Microsoft Family Safety): With a child account in your Microsoft family group, web filtering can be switched on in the Family Safety settings, and specific sites can be added to an always-blocked list. Filtering works most completely in Microsoft’s own browser.
On Mac (Screen Time): System Settings → Screen Time offers the same web-content restrictions as iPhone — limit adult websites, and add named sites to the never-allow list for the account you manage.
Option 3: Block a Website at the Router (Whole Home Network)
Router-level blocking is the strongest option for a household: one change blocks the site on every phone, tablet, computer, and smart TV connected to your home Wi-Fi. It is also the option most parents actually want, once they know it exists.
The exact screens vary by router brand, but the general shape is the same:
- Open your router’s settings page in a browser. The address is usually printed on a sticker on the router itself, along with the admin username and password (if you never changed them, do so — the default password is widely known).
- Look for a section named Parental Controls, Access Control, Website Filtering, or URL Blocking — the wording differs by brand.
- Add the website’s address to the block list, choose whether it applies to all devices or only selected ones (many routers let you target just the children’s devices by name), and save.
An alternative that achieves a similar result: some family-focused DNS services let you point your router’s DNS settings at them, after which they filter whole categories of sites for your entire network. This requires changing one or two number fields in the router’s internet settings — the service’s own setup page will give you the exact values and steps for your router brand.
Keep two limits in mind. Router blocking only works at home: a phone on mobile data or a friend’s Wi-Fi walks straight past it, which is why combining router blocking with device-level controls (Option 2) is the belt-and-braces approach. And blocking one address blocks only that address — determined users can sometimes reach the same content through a mirror or alternate address.
Option 4: Use the Hosts File (Advanced)
Computers keep a small text file called the hosts file that can override where a website name points. Adding a line that sends a site’s name back to the computer itself (127.0.0.1) makes that site unreachable in any browser on that machine. It is free, built in, and effective — but it involves editing a system file, so follow the steps carefully and only if you are comfortable doing so.
On Windows: Open Notepad as administrator (right-click → Run as administrator), then open the file C:\Windows\System32\drivers\etc\hosts. At the bottom, add a line such as 127.0.0.1 www.example.com (and a second line without the “www” if needed). Save the file, making sure Notepad does not add a “.txt” ending.
On Mac: Open Terminal, type sudo nano /etc/hosts, enter your password, add the same kind of line at the bottom, then save with Control + O and exit with Control + X.
This method is per-computer and easy for a technically confident user of that computer to undo, so think of it as a strong nudge — excellent for blocking your own distractions, modest as a parental control.
Blocking a Website Is Only Half of Online Safety
Blocking specific sites works best as one layer among a few. Children in particular run into unwanted content through search results, messages, and email as much as through typing a site’s name directly — which is why the same households that block websites also benefit from cleaning up the inbox side of things, as our guide on how to stop spam emails explains for cutting off junk and scam messages at the source. Filters, supervision, and an honest conversation together do more than any single block list.
The Honest Limits of Blocking
No blocking method is a locked door; all of them are fences, and it is better to know that upfront:
- VPNs and proxies can tunnel past router, DNS, and hosts-file blocks, because the device no longer asks your network where the site is.
- Mobile data bypasses anything set on the home router.
- A second browser or device defeats browser-only and single-device blocks.
- The person being blocked may know more than you. For children, controls work best alongside age-appropriate supervision and conversation, not as a silent technical fix.
None of this makes blocking pointless — most unwanted visits are casual, not determined attacks, and a fence stops casual wandering very well. It simply means choosing the level that matches how much the block actually matters.
Frequently Asked Questions
What is the best way to block sites for my child?
Use layers: parental controls on the child’s own device (Screen Time on Apple devices, Family Link on Android, Family Safety on Windows) as the base, because they travel with the device, and router-level blocking at home as the second layer for every other screen in the house.
Can I block a site permanently?
Yes, in the sense that a block stays in place until someone with the settings password or admin access removes it. Router, hosts-file, and parental-control blocks do not expire on their own — which is also why you should keep the passwords for them somewhere safe.
How do I block a site on my own phone for focus?
On iPhone, use Screen Time’s web-content settings or a focus/blocking app. On Android, a reputable blocking app is the usual choice. Many people find a scheduled block — sites unavailable during work hours, free in the evening — easier to stick with than a total ban.
Does blocking a website hide it from search results too?
Not usually. Blocking stops the device from opening the site, but the site can still appear in search listings unless the parental-control or filtering service you use also filters search results. Family controls from Apple, Google, and Microsoft include safe-search options — turn those on as well for a complete setup.
Can a blocked website still be reached with a VPN?
Often, yes. A VPN hides the request from your router and network filters, so the block never sees it. If that matters, device-level family controls that also restrict installing VPN apps are the more complete answer.

