block website·website blocker·focus tools·parental controls·productivity

How to Block a Website on Any Device in 2026

Learn how to block a website across browsers, routers, DNS, and apps. Practical methods, scheduling tips, and troubleshooting for focus, study, and parental

13 min read

You're halfway through a deadline, you open YouTube for “one quick reference,” and suddenly you're watching unrelated videos. Or you check Reddit before bed and emerge much later with a tired brain and no memory of why you opened it. If you're trying to learn how to block a website, you probably don't need another lecture about discipline. You need a barrier that makes the impulsive choice less convenient.

The right blocker depends on the job. A quick personal focus session needs a fast browser tool. A household rule needs router or DNS coverage. A study routine across a laptop and phone needs scheduled, cross-device controls. Blocking can also support security hygiene by restricting known harmful domains, ad networks, or unwanted categories. The method matters because a browser extension can't reliably control a mobile app, and a device setting won't automatically protect every device on your Wi-Fi.

Table of Contents

Why You Might Want to Block a Website

Website blocking works best as a friction tool, not a punishment. It inserts a pause between the urge to open a distracting site and the action itself. That pause can be enough to keep a student inside a research task, help a freelancer finish a client deliverable, or stop an ADHD focus session from turning into an accidental social-media marathon.

Willpower alone is a poor technical control. If the distracting site is always one click away, your brain only needs to win one small argument. A block changes the environment so the default action supports the task instead of fighting it.

Protecting work and study time

For a personal work session, start with the smallest effective layer. A browser extension can block YouTube, Reddit, social feeds, shopping sites, or news pages during a defined period. This is the right choice when you control the browser and want to begin quickly without changing the whole network.

Use a stronger setup when the distraction appears on your phone as well as your laptop. A browser-only rule won't stop an app from connecting through its own network stack, so a cross-device focus tool or a network-level filter makes more sense.

Supporting household rules

Parents usually need more than a block on one browser. A child can switch browsers, move to a phone, use an unmanaged account, or connect through a guest network. OS-level controls help with a specific child account, while router rules and DNS filtering create a baseline across the household.

The India blocking record shows why this topic is broader than browser productivity. A 2022 report documented 55,580 blocked websites, YouTube channels, applications, and related online services between January 2015 and September 2022 (the India website-blocking report). Blocking often sits inside legal, regulatory, security, and content-governance systems, not just personal settings.

Reducing doomscroll triggers

If one platform reliably starts a loop, block the trigger rather than trying to moderate every page. Add the domain to a timed list, remove the app from your phone, and use an allowlist during demanding work. A block won't solve boredom or stress by itself, but it can prevent an automatic launch while you choose a better next action.

Website blocking also changes behavior at scale. Research summarized in the WIPO enforcement material on site blocking describes substantial reductions in visits after blocking orders, with stronger results when blocks cover many popular domains and remain dynamic. That's the same lesson for personal use: one blocked URL is fragile, while a maintained list is harder to route around.

Picking the Right Blocking Method

Start with the job, not the tool. A quick personal block, household parental control, and cross-device focus routine need different coverage.

Reader Goal Best Method Setup Effort Coverage
Personal focus during one work session Browser extension such as BlockSite, uBlacklist, or LeechBlock Low One supported browser
Household parental control Windows Family Safety, macOS Screen Time, router controls, or DNS filtering Medium A device, profile, or household network
Cross-device study routine Scheduled focus app such as Kohru, combined with device controls Medium Managed phones and computers, depending on setup
Shared or enterprise network filtering Managed DNS, router policy, firewall, or centrally administered browser policy High Network, devices, and managed accounts

Use a browser extension for a fast personal block

Choose an extension for a writing sprint, study session, or temporary ban on one feed. It takes little time to configure and is easy to change when your routine shifts. The limitation is clear: switch browsers, open an unmanaged profile, or use the mobile app, and the rule may no longer apply.

Use device or network controls for household coverage

Parents managing a child's account should start with Windows Family Safety or macOS Screen Time. Those controls follow the relevant device or profile more reliably than a browser add-on. Router rules and DNS filtering extend the baseline to multiple browsers, phones, tablets, and other devices on the same household network.

Network controls still have blind spots. Alternate DNS settings, VPNs, and guest Wi-Fi can bypass them, so protect the router and check which devices use the filtered connection.

Use scheduling for a recurring study routine

A repeated study plan needs timed access, not only a permanent deny rule. Combine device controls for account ownership, network filtering for broad coverage, and a scheduled focus tool such as Kohru for the sessions that matter most. This setup covers more paths than one extension while keeping useful sites available outside study hours.

For a shared or enterprise network, use managed DNS, router policies, a firewall, or centrally administered browser policies. These require more setup, but they give administrators control across managed devices and accounts.

Practical rule: Pick the narrowest layer that solves the problem. Add a second layer only when the first has a known blind spot.

Blocking Sites in Your Browser and Operating System

Browser controls are the fastest answer to “how to block a website” for one person on one computer. They're also the easiest to misunderstand. An extension can stop navigation inside its supported browser, but it usually can't control a separate browser or a mobile app.

Use a browser extension for a quick personal block

For Chrome, BlockSite provides a straightforward block list and scheduling workflow. uBlacklist is useful when the problem is unwanted results appearing in search, because it can hide selected domains from search pages rather than acting as a complete device-wide firewall. On Firefox, LeechBlock is built around scheduled limits and time-based restrictions.

Install the extension from the browser's official extension store, add the full domains or URL patterns that cause trouble, and test the rule in a new tab. Turn on extension syncing when you use multiple browser profiles, but don't assume sync makes the policy unbreakable. A user with control of the browser can often disable an extension, use private browsing without the extension enabled, or switch accounts.

Screenshot from https://example.com/screenshots/blocksite-extension-add-block.png

Chrome supervised users and managed devices can apply stronger administrative policies than a personal extension. In Edge, review site permissions and family settings from the controlling account, then test the blocked domain while signed in as the restricted user.

Use built-in controls for accounts and devices

Windows users can configure Microsoft Family Safety for a child or family member account. Add web filters, restrict unsuitable content, and use the account structure to keep the settings separate from the administrator's profile. Microsoft Defender Family Features can support the broader family-safety setup, but the exact options depend on the Windows account and management configuration.

On macOS, open Screen Time, select the relevant user, choose Content & Privacy restrictions, and use the web-content setting to limit adult sites or add specific allowed and blocked addresses. Screen Time is more useful when the child or focused user doesn't have administrator access to change the policy.

On iPhone and iPad, use Settings, then Screen Time, Content & Privacy Restrictions, and Web Content. Choose the adult-site limitation or add specific URLs under the allowed or restricted lists. Android users can combine Digital Wellbeing with Family Link, app limits, and supervised-account controls. Use app-level restrictions when the distraction is an app rather than a browser page.

These controls depend on account ownership. If the person being restricted knows the controlling password or has administrator access, they can often weaken the setup. Browser and OS rules are excellent for personal discipline and managed profiles, but households usually need the network layer described next.

Network-Wide Blocking With DNS, Routers, and Hosts Files

If every device on your home Wi-Fi needs the same rule, stop editing individual browsers. Put the policy at the network layer.

Start with a hosts file for one computer

A hosts file is useful when you want a local block on a single Windows, macOS, or Linux computer. Open the file with administrator privileges, add the unwanted domain mapped to a local non-routable destination such as 0.0.0.0 or 127.0.0.1, save it, and flush the computer's DNS cache. Test the site afterward in a fresh browser session.

This method is simple, but its limits are severe. It affects only that computer, may require separate entries for related domains, and stops working as a control when someone uses a different DNS path, another device, or a VPN. Treat it as a local patch, not household protection.

Configure the router for shared Wi-Fi

Sign in to the router's administrator panel and look for Parental Controls, Access Control, Web Filters, or Schedules. Netgear, TP-Link, Asus, and eero place these tools in different menus, and firmware updates can change the labels. Create a device group, add the domains or categories, set active hours, and test from both a computer and a phone.

Some routers apply rules differently across IPv4 and IPv6, so test both where your equipment supports them. Change the administrator password, restrict access to the router panel, and remember that guest Wi-Fi may use separate rules.

Use managed DNS for broader coverage

DNS blocking works by preventing a resolver from returning the destination for a blocked domain. The browser then can't obtain the site's address through normal name resolution. Configure OpenDNS, CleanBrowsing, NextDNS, or a self-hosted Pi-hole as the network's DNS service, ideally through the router's DHCP settings so connected devices inherit the policy.

Pi-hole suits households that want a central allowlist and local visibility. NextDNS is a strong fit for remote workers who need the same policy away from home, provided they configure the client or device profile correctly. DNS filters can still be bypassed with hard-coded resolvers, encrypted DNS, VPNs, or direct-IP access.

For business environments, DNS filtering should sit alongside broader access controls rather than replace them. The guide to firewall benefits for SMBs is useful context when you're deciding how website policy fits into a wider network-security plan.

Method Setup Difficulty Covers Mobile Devices Survives Browser Changes Best For
Hosts file Low No Yes, on that computer A local device
Router controls Medium Yes, on that network Yes Household schedules
Managed DNS Medium Usually, if the device uses the filter Yes Category and domain filtering
Pi-hole Medium to high Yes, on configured Wi-Fi Yes A household allowlist
Enterprise firewall policy High Depends on enrollment Yes Managed shared networks

Scheduling, Whitelists, and Focus Sessions

Permanent blocking is blunt. A better system changes with the task. Your news sites may be acceptable during lunch and completely wrong during an exam revision session.

Put the schedule where the traffic lives

Router parental controls can disable categories or domains during defined hours. CleanBrowsing profiles can apply different content rules to different users or devices, which is more practical than forcing an identical policy on everyone at home.

For personal work, use a timed extension such as Cold Turkey, LeechBlock, or BlockSite. Add the high-risk sites, define the active window, and choose a lock mode that prevents casual editing until the timer ends. A timer works because it removes the repeated decision to unblock the site every few minutes.

A diagram illustrating a three-layered blocking strategy for managing internet usage and improving personal productivity levels.

Use allowlists for deep work

An allowlist-only session is the strictest option. Pi-hole, NextDNS, and Cold Turkey can support workflows where only approved destinations remain available. Add the sites you need, such as a course platform, documentation, GitHub, or a reference library, before starting.

Use allowlists carefully: They're powerful for writing and revision, but they can interrupt legitimate research if you haven't approved essential reference sites first.

Layering works better than asking one tool to do everything. Use DNS as the broad baseline, add a browser schedule for the sites that pull you off task, then start a focus session with a clean browser profile and a timer. For repeated routines, keep the block list in a shared cloud file or use Kohru cloud sync where supported, so your rules don't drift across machines.

Where Blocking Fails and How to Fix It

Start with a five-minute diagnosis before changing tools. Check the domain with ping, inspect its response through nslookup, and confirm which resolver the device uses. Then verify that the domain appears in the active block list and is assigned to the intended profile. Test Wi-Fi, cellular data, and guest Wi-Fi separately. A rule that works on one network says nothing about the others.

A site can look blocked in Chrome and remain available in the Instagram, TikTok, Reddit, or X app. Those apps bypass browser extensions, so the extension cannot intervene. Use router DNS or Pi-hole for network coverage, then add iOS Screen Time, Android Family Link, or dedicated app controls when the phone itself needs enforcement.

Alternate browsers create another escape route. Incognito mode weakens extension rules if the extension is not allowed in private windows. On managed devices, enforce browser policies and enable extension syncing where appropriate. DNS filtering is the better fit when switching browsers is the main threat.

Close the common bypasses

VPNs and proxy browsers send traffic outside the path controlled by a local block. Direct-IP access can also bypass a domain-name rule. Router firewall rules, restrictions on known public encrypted-DNS endpoints, and forced DNS-over-HTTPS settings directed to your filtering service can reduce these gaps. Anyone with administrator access may still undo the policy.

Guest Wi-Fi needs a separate check because it may not inherit restrictions from the main network. If a policy behaves differently across access points, review guidance on how to unblock sites on guest WiFi.

Use the diagnosis results to match the fix to the job. A browser extension suits a quick personal block. DNS or router controls fit household coverage. App controls matter for phones, while cross-device focus tools must enforce rules wherever the work session runs. No single layer covers browsers, apps, alternate networks, and administrator-level changes at once.

Best Practices and a Quick Start Checklist

Start small. Pick one distracting site and block it through two layers for a week before expanding the list.

  • Pick your method: Use a browser extension for a quick personal block, OS controls for a managed device, DNS for system-wide coverage, router rules for a household, or a scheduled app for cross-device focus.
  • Layer the defenses: Pair a browser rule with DNS so a missed browser block doesn't leave the site completely open.
  • Lock the gaps: Test mobile apps, alternate browsers, VPNs, direct-IP access, and guest Wi-Fi.
  • Maintain the setup: Review allowlists regularly, protect shared-device administrator passwords, and retest after operating-system or router updates.

A checklist titled Quick Start Checklist showing four steps for blocking websites and managing digital focus.

Pair the block with a calendar focus period, an accountability partner, or an app launcher that opens the right work environment. A blocker won't remove every urge, but it gives your chosen habit a better starting position. Treat the setup as a system you tune, not a switch you flip once.


Kohru combines cross-device Focus Sessions with a Chrome extension that blocks selected distracting websites during active sessions, with custom block lists and allowlist support. If you want a scheduled focus layer for study or work, visit Kohru and set up a session around the sites you're trying to avoid.