How To Block A Website | Fast, Safe Methods

To block a website, use Screen Time or Family Link on devices, a browser blocker, the hosts file, or router/DNS filtering for network-wide control.

Blocking sites isn’t one trick. The best method depends on your goal: cut distractions on a single laptop, set guardrails on a child’s phone, or filter every device on your Wi-Fi. Below you’ll find the cleanest options for phones, tablets, computers, and whole-home networks, with quick steps and trade-offs so you can pick the level of control you need.

Quick Picks: The Right Method For Your Situation

  • Stop distractions on one browser — Install a reputable blocker extension in Chrome, Edge, or Firefox; add sites to your block list; set a schedule and a password.
  • Manage a child’s browsing — Turn on Apple Screen Time (iPhone, iPad, Mac) or Google Family Link (Android, Chromebook) and add sites to Allowed/Blocked lists.
  • Lock down a personal Mac or iPhone — Use Screen Time’s Limit Adult Websites and custom lists; add a passcode only you know.
  • Cover every device at home — Enable parental controls on your router or switch your router/devices to a family-safe DNS (Cloudflare or OpenDNS).
  • Block stubborn domains on Windows — Map the domain to 127.0.0.1 in the hosts file to stop it system-wide on that PC.

How To Block A Website On Phones And Tablets

Goal: Set reliable limits on iOS, iPadOS, and Android without third-party clutter.

iPhone And iPad (Screen Time)

  1. Open Settings — Tap Screen Time, then turn it on and set a passcode only you know.
  2. Set Web Content — Tap Content & Privacy Restrictions → App Store, Media, Web & Games → Web Content; choose Limit Adult Websites.
  3. Add Sites To Block Or Allow — Under Never Allow, add domains you want to shut off; use Only Allowed Websites for a strict whitelist mode.
  4. Test — Try loading the site in Safari and third-party browsers; Screen Time enforces across apps on the device.

Notes: Use Family Sharing if you manage a child’s device and keep iOS up to date for the best Screen Time behavior.

Android And Chromebook (Google Family Link)

  1. Install Family Link — Create a family group and add your child’s Google account.
  2. Set Chrome Filters — In Family Link, pick the child → Controls → Content restrictions → Google Chrome; choose Try to block mature sites or Only allow approved sites.
  3. Add Site Exceptions — Use Manage sites to Allow or Block specific domains.
  4. Lock Settings — Disable profile switching if needed and review extension installs on Chromebook.

Block A Website On Windows And Mac (Reliable Steps)

Goal: Apply blocks on a specific computer that work across browsers.

Windows 11/10 — Hosts File Method

  1. Open Notepad As Admin — Search for Notepad, right-click, choose Run as administrator.
  2. Edit Hosts — Open C:\Windows\System32\drivers\etc\hosts. At the bottom, add lines like:

    127.0.0.1 example.com
    127.0.0.1 www.example.com
  3. Save And Flush DNS — In Command Prompt (admin), run ipconfig /flushdns.
  4. Test — Try loading the site in Edge or Chrome; it should fail to resolve.

Tip: For child accounts, Microsoft Family Safety can filter sites in Edge with allow/block lists and safe search enforcement.

macOS — Screen Time Or Hosts

  • Screen Time pathSystem Settings → Screen Time → Content & Privacy; set Web Content to Limit Adult Websites and add Restricted sites. Use a passcode.
  • Hosts path — In Terminal, run sudo nano /etc/hosts, add the same 127.0.0.1 mappings, then dscacheutil -flushcache to refresh.

How To Block A Website With A Browser Extension

Goal: Fast setup for productivity or soft parental controls on a shared computer.

  1. Pick A Trusted Blocker — Install a well-reviewed site-blocker from your browser’s official store.
  2. Add URLs And Keywords — Create a block list with exact domains and common subdomains; enable wildcard or keyword filtering if offered.
  3. Set A Schedule — Add work hours, study time, or bedtime windows; enable a password to prevent quick toggles.
  4. Review Permissions — Keep extension access limited to needed sites if your blocker supports that.

Extensions are great for focus and quick control, but users can disable them. For stronger enforcement on shared machines, pair extensions with Screen Time, Family Link, or the hosts method.

How To Block A Website Across Your Whole Network

Goal: One change that filters phones, tablets, laptops, smart TVs, and game consoles on your Wi-Fi.

Option A — Use Your Router’s Parental Controls

  1. Sign In To The Router — Open its admin page (often 192.168.0.1 or 192.168.1.1), then log in.
  2. Open Parental Controls — Find Parental Controls, Access Control, or a vendor app such as Orbi/Nighthawk or TP-Link Tether.
  3. Create A Profile — Assign devices, choose filtering level or categories, and add custom blocked sites.
  4. Schedule And Test — Set bedtimes or study windows; verify on multiple devices and browsers.

Heads-up: Private MAC or random MAC features can break device-based rules; match your router’s guidance.

Option B — Use A Family-Safe DNS (Cloudflare Or OpenDNS)

  1. Choose A Filter Level — Cloudflare 1.1.1.1 for Families: use 1.1.1.2/1.0.0.2 (malware) or 1.1.1.3/1.0.0.3 (malware + adult). OpenDNS FamilyShield uses pre-set servers.
  2. Change DNS On The Router — In WAN/Internet settings, set the DNS servers to the family-safe IPs; save and reboot if required.
  3. Or Change DNS Per Device — On Windows, Mac, iOS, or Android, set the same DNS servers in network settings if you can’t edit the router.
  4. Confirm — Visit a test domain or the provider’s dashboard page to verify filtering is active.

Why DNS works: DNS filtering stops domains before the browser connects, so it covers all browsers and many apps. For fine-grained allow/deny lists, OpenDNS Home (free) adds per-account controls on top.

How To Block A Website: Pros, Cons, And Where It Works

Method Scope & Strength Best Fit
Browser Extension Fast setup; user can disable if not locked with a password. Personal focus, light controls on shared PCs.
Screen Time (Apple) System-level on device; passcode-protected allow/block lists. iPhone, iPad, Mac — adults and kids.
Family Link (Google) Account-level rules across Chrome and Play services. Android phones/tablets, Chromebooks for kids.
Hosts File System-wide on that computer; solid against casual bypass. Windows or Mac where you need simple, local blocks.
Router Parental Controls Network-wide; vendor features vary; can schedule. Whole-home protection across many devices.
Family-Safe DNS Network-wide domain filtering; quick to deploy. Homes and small offices needing low-maintenance filtering.

How To Block A Website On Work And School Devices

Managed computers often enforce policies that you can’t change. If you’re an admin, device-wide site blocks work best through platform tools (Screen Time for macOS fleets, Microsoft Family Safety or enterprise policies for Windows, and Family Link or admin consoles for Chromebooks). On unmanaged personal devices used for work, pair a blocker extension with a hosts rule or router DNS filtering so the setting sticks even if the browser changes.

How To Block A Website With Defense In Depth

Quick check: Start with the tool that matches your control level, then add one more layer if the site still slips through.

  • Layer A — Device Controls — Use Screen Time or Family Link with a passcode; set an allow list for study hours.
  • Layer B — Browser Blocker — Install a blocker and lock its settings with a password to prevent toggling.
  • Layer C — DNS Filtering — Point the router at Cloudflare Family or OpenDNS FamilyShield; confirm with a test page.
  • Layer D — Hosts File — Add the most tempting domains to hosts on shared PCs as a backstop.

Extra power: If you’re comfortable with a DIY box, Pi-hole can block at DNS level and give you a dashboard for custom lists and stats.

How To Block A Website — Troubleshooting That Saves Time

  • Block Works In One Browser Only — You used an extension; add a system-level method (Screen Time, Family Link, hosts, DNS).
  • Child Bypasses Rules — Enable a passcode, disable profile switching where possible, and review app installs. Keep OS and apps current.
  • Rules Don’t Apply On Wi-Fi — If using router profiles, turn off random MAC on kid devices or bind rules by device name and IP.
  • HTTPS Still Loads — Hosts and DNS filter by domain; add both root and www forms; for YouTube-style subdomains, use platform filters or router category rules.
  • Need A Strict Whitelist — Use Screen Time’s Only Allowed Websites or router Allow-only mode during homework hours.
  • Company Or School Account — Contact your admin if policies are managed; local changes may be blocked by design.

Where The Exact Phrase Fits

This guide shows how to block a website on iPhone, iPad, Mac, Android, Windows, and your router. You’ll also see when to choose a browser extension, a hosts file tweak, or DNS filtering. Use the approach that meets your goal today, then add a second layer if you need tougher guardrails. If you ever forget how to block a website on a given device, come back to the section for that platform and follow the short list again.