You sit down to finish a report, open your laptop with the best intentions, and twenty minutes later you are watching a video about how airports work, checking a football score, and reading comments on a news story you do not even care about. This is not a willpower failure. Social feeds, news sites, and video platforms are engineered by thousands of designers to pull your attention back, and they are very good at it. Trying to resist them with discipline alone, fifty times a day, is a losing strategy.
The reliable solution is to remove the decision entirely. Block the distracting sites during your working hours so that, in the moment of weakness, the site simply does not load. This guide covers the best methods for Windows, Mac, Android, and iPhone, from simple browser extensions to network-level blocking that covers every device in your home.
Quick Answer
Install a site blocker such as LeechBlock NG in Firefox, BlockSite or StayFocusd in Chrome, or Cold Turkey on Windows and Mac, add your distracting sites, and set the schedule to your work hours. For whole-home coverage, set up OpenDNS or edit your router’s parental controls so the block applies to every device at once.
Step 1: Identify Your Actual Distractions
Do not guess. Check your real usage first, because most people are surprised by where the time goes. On an iPhone, open Settings > Screen Time > See All App & Website Activity. On Android, open Settings > Digital Wellbeing & parental controls. In Chrome, an extension such as Webtime Tracker shows time per site. Write down your top five time sinks. For most knowledge workers the list is some mix of YouTube, X, Instagram, Reddit, news sites, and online shopping. Block those specifically rather than trying to block “the internet,” which you need for your job.
Step 2: Block Sites in Your Browser With an Extension
A browser extension is the fastest place to start and takes five minutes.
- In Chrome or Edge, install a reputable blocker from the official web store. StayFocusd is excellent if you prefer a daily time allowance, while BlockSite is simpler for a total block.
- Open the extension’s options and add each distracting domain, for example youtube.com, twitter.com, and reddit.com.
- Set the active schedule, such as Monday to Friday, 9:00 to 17:30.
- Enable the setting that also blocks the site in Incognito or private windows, otherwise the block is trivially easy to bypass.
- Protect the settings with a password or a long challenge text if the extension offers it, so you cannot undo the block in a weak moment with two clicks.
Firefox users should look at LeechBlock NG, which is the most flexible free option anywhere: it supports multiple block sets, different schedules for different sites, and delays that force you to wait sixty seconds before a page loads, which is often enough for the impulse to pass. The Chrome Web Store help page on installing and managing extensions explains how to install and pin extensions safely if you have never done it before.
Step 3: Use a Desktop Blocker for All Browsers and Apps
Browser extensions only cover one browser, and everyone knows the workaround of opening a different one. A system-level app closes that loophole. On Windows and Mac, Cold Turkey is the respected option: its free version blocks websites across Chrome, Edge, Firefox, and Brave at once, and its scheduled blocks cannot be removed by simply uninstalling the program while a block is active, which is exactly the friction you want. Freedom is a strong paid alternative that syncs one blocklist across your computer, phone, and tablet simultaneously.
Mac users also have Screen Time built in. Go to System Settings > Screen Time > Content & Privacy > Store, Web, Siri & Game Center Content, or use App Limits and Downtime to restrict specific apps and sites during set hours. On Windows, Microsoft Family Safety offers web filtering, but it only works properly in Edge, so a dedicated blocker is the better choice for most adults.
Step 4: Block Sites on Your Phone
For many people the phone is the bigger problem, because blocking the laptop just moves the distraction six inches to the left. On iPhone, use Settings > Screen Time > Content & Privacy Restrictions > Web Content > Limit Adult Websites, then add your distracting sites under “Never Allow.” Better still, ask a partner or friend to set the Screen Time passcode, because a code you know is a code you will type. On Android, Digital Wellbeing offers app timers, and apps such as BlockSite or Stay Focused add scheduled website blocking across Chrome and other browsers.
Step 5: Block at the Network Level With Your Router or DNS
The strongest option blocks sites for every device on your home network at once. Log in to your router’s admin page, usually at 192.168.0.1 or 192.168.1.1, and look for parental controls, access restrictions, or website filtering, where you can list domains and apply a schedule. Alternatively, change your router’s DNS servers to a filtering service such as OpenDNS Family Shield, which blocks whole categories automatically. This method also covers smart TVs and games consoles, though it cannot distinguish between you working and your family relaxing, so a timed schedule matters. For more productivity and system guides like this one, browse the Network Ustad collection of practical tech tutorials.
Step 6: Edit the Hosts File for a Free, Permanent Block
Every computer has a hosts file that can redirect a website to nowhere. On Windows it lives at C:\Windows\System32\drivers\etc\hosts; on Mac and Linux it is /etc/hosts. Open it as administrator, and for each site add a line such as “127.0.0.1 www.youtube.com” plus the same line without “www.” Save the file and restart your browser. The site will now fail to load in every browser. The downside is there is no schedule and no friendly warning page, and you can undo it just as easily, so treat this as a backup layer rather than your main tool.
Tips to Make the Block Actually Work
- Allow useful parts of mixed sites. You may need YouTube for a training video. Tools like LeechBlock let you allow specific channels or use redirect rules rather than an all-or-nothing block.
- Schedule breaks instead of total abstinence. A blocker that allows ten minutes at lunch keeps you honest far longer than a ban you disable on day three.
- Log out as well as blocking. Signing out of social accounts adds friction even after work hours when the block lifts.
- Tell your team. If colleagues know you check messages at set times, you stop fearing that you are missing something urgent.
Common Mistakes to Avoid
- Blocking everything at once. Starting with thirty sites and a twelve-hour schedule usually collapses within a week. Start with your top five.
- Keeping the bypass too easy. If disabling the block takes two clicks, you will do it. Use passwords, delays, and “nuclear” lock-in options.
- Forgetting the phone. A laptop-only block simply relocates the habit.
- Blocking work tools by accident. Test your blocklist against the sites you genuinely need before a deadline day, not during it.
Conclusion
Blocking distracting websites during work hours works because it moves the battle from willpower, which runs out, to environment design, which does not. List your real top five distractions, block them with an extension or a system tool like Cold Turkey, cover your phone as well, and add a router or hosts file layer if you need it. Keep breaks scheduled and the bypass deliberately annoying. Within a week, most people find the urge itself fades, because the habit loop has nothing to feed on.
Frequently Asked Questions
What is the best free website blocker?
LeechBlock NG for Firefox and StayFocusd for Chrome are the best free browser options. For blocking across all browsers on Windows or Mac, the free version of Cold Turkey is the strongest choice because its active blocks are deliberately hard to remove.
Can I block websites only during work hours?
Yes. Scheduling is a standard feature in LeechBlock, BlockSite, Cold Turkey, and Freedom. Enter your work days and hours, and the sites become available again automatically outside those times.
How do I stop myself from just disabling the blocker?
Use a tool with a locked schedule, set a password that someone else keeps, and turn on uninstall protection where available. Adding friction is the entire point: even a sixty-second delay defeats most impulses.
Will a website blocker slow down my computer?
No. Browser extensions and blockers use negligible resources because they only check addresses against a small list. You will not notice any performance difference in normal use.
How do I block distracting sites for my whole family?
Use your router’s parental controls or a family DNS filter such as OpenDNS, which applies to every device on the network. Combine it with per-device Screen Time or Digital Wellbeing settings for individual schedules.


Leave a Reply