How to Block Websites While Studying
8 free methods to eliminate distractions and boost your focus. From browser extensions to system-level blocking.
Quick Comparison
| Method | Difficulty | Effectiveness | Best For |
|---|---|---|---|
| 🔌Browser Extensions | Easy | 85% | Quick setup |
| ⚙️Edit Hosts File | Medium | 95% | Tech-savvy users |
| 📡Router DNS Filtering | Medium | 92% | Whole home |
| 🖥️Dedicated Blocking Apps | Easy | 90% | Maximum blocking |
| 👨👩👧Built-in Parental Controls | Easy | 75% | Built-in option |
| 🌐Browser Settings | Easy | 60% | Light blocking |
| 🎯Focus & Distraction-Free Modes | Easy | 70% | Reducing temptation |
| 🔒Combination Approach (Recommended) | Medium | 98% | Ultimate protection |
Our Recommendation
Start with a browser extension (Block Site or StayFocusd) — it's the easiest and works well for most people.
If you need something stronger, edit your hosts file or use a dedicated app like Cold Turkey.
For maximum effectiveness, combine multiple methods — browser extension + hosts file + router DNS.
Detailed Instructions
Browser Extensions
Block Site
Steps:
- Install the "Block Site" extension from your browser's extension store
- Click the extension icon and select "Block this site"
- Add websites to your block list
- Set up password protection to prevent disabling
✅ Pros
- • Free
- • Easy to install
- • Works across all websites
- • Has schedule features
❌ Cons
- • Can be disabled
- • Only works in that browser
- • May slow down browser slightly
StayFocusd
Steps:
- Install StayFocusd from Chrome Web Store
- Set your maximum daily time allowed for blocked sites
- Add websites to block (or entire categories like "social media")
- Enable "The Nuclear Option" to block all sites for a set time
✅ Pros
- • Highly customizable
- • Time limits instead of full blocking
- • Category-based blocking
❌ Cons
- • Chrome only
- • Advanced settings can be complex
- • Can be disabled
LeechBlock
Steps:
- Install LeechBlock NG
- Create sets of sites to block (e.g., "Social Media", "News")
- Set time limits and schedules for each set
- Lock your settings with a password
✅ Pros
- • Cross-platform
- • Multiple block lists
- • Time-based blocking
- • Free
❌ Cons
- • Setup can be complex
- • Interface feels dated
- • Can be disabled
Edit Hosts File
Windows Hosts File
Steps:
- Open Notepad as Administrator (right-click → Run as Administrator)
- Open C:\Windows\System32\drivers\etc\hosts
- Add a new line at the bottom: "127.0.0.1 facebook.com"
- Repeat for each site you want to block
- Save the file (File → Save)
- Flush DNS: Open Command Prompt and run "ipconfig /flushdns"
✅ Pros
- • System-wide blocking
- • Affects all browsers
- • Harder to disable
- • Completely free
❌ Cons
- • Requires technical knowledge
- • Tedious to add many sites
- • No schedule options
Mac/Linux Hosts File
Steps:
- Open Terminal
- Type: "sudo nano /etc/hosts" and enter your password
- Use arrow keys to navigate to the bottom
- Add a new line: "127.0.0.1 facebook.com"
- Press Ctrl+O to save, then Ctrl+X to exit
- Flush DNS: "sudo dscacheutil -flushcache && sudo killall -HUP mDNSResponder"
✅ Pros
- • System-wide blocking
- • Affects all browsers
- • Harder to bypass
- • Free
❌ Cons
- • Requires Terminal usage
- • No user-friendly interface
- • Manual setup
Router DNS Filtering
OpenDNS FamilyShield
Steps:
- Log into your router (usually 192.168.1.1 or 192.168.0.1)
- Find DNS settings (often under WAN or Internet settings)
- Change Primary DNS to 208.67.222.123
- Change Secondary DNS to 208.67.220.123
- Save and restart router
✅ Pros
- • Network-wide blocking
- • Blocks adult content automatically
- • Hard to bypass
- • Free
❌ Cons
- • Blocks for ALL devices
- • Limited customization
- • Affects entire network speed
Cloudflare for Families
Steps:
- Create a free account at Cloudflare for Families
- Create your blocking preferences (categories, specific sites)
- Get your DNS addresses (1.1.1.2 and 1.0.0.2)
- Update your router DNS settings or device DNS
✅ Pros
- • Free
- • Highly customizable
- • Detailed analytics
- • Good mobile app
❌ Cons
- • Requires account setup
- • Might slow internet slightly
- • Takes time to configure
Dedicated Blocking Apps
Cold Turkey
Steps:
- Download and install Cold Turkey
- Add websites, apps, or entire categories to block
- Set up block sessions (duration, schedule)
- Start a block session - it CANNOT be stopped
✅ Pros
- • Extremely hard to disable
- • Blocks both websites and apps
- • Highly effective
- • Free tier available
❌ Cons
- • Free tier limited
- • Can feel restrictive
- • No undo once block starts
Freedom
Steps:
- Install Freedom on your devices
- Create a block session and add distracting sites/apps
- Set duration and schedule
- Start the session - all distractions blocked
✅ Pros
- • Cross-platform sync
- • Blocks websites AND apps
- • Scheduled sessions
- • User-friendly
❌ Cons
- • Paid after trial
- • Can be disabled on some devices
- • Subscription required
SelfControl (Mac)
Steps:
- Install SelfControl (free, open-source)
- Add websites to block list
- Set block duration (e.g., 24 hours)
- Click "Start" - blocking CANNOT be undone
✅ Pros
- • Completely free
- • Impossible to disable once started
- • Open-source
❌ Cons
- • Mac only
- • No mobile app
- • Basic interface
Built-in Parental Controls
Screen Time (Mac)
Steps:
- Open System Preferences → Screen Time
- Go to "Content & Privacy" → "Content Restrictions"
- Select "Limit Adult Websites"
- Add specific websites to never allow
✅ Pros
- • Built into macOS
- • Free
- • No installation needed
- • Apple-integrated
❌ Cons
- • Mac only
- • Easy to disable (no password required by default)
- • Limited customization
Family Safety (Windows)
Steps:
- Open Microsoft Family Safety app
- Create a child account (or use your own)
- Set up web filtering
- Add sites to block list
✅ Pros
- • Built into Windows
- • Free
- • Syncs across devices
- • Activity reports
❌ Cons
- • Requires Microsoft account
- • Easy for adults to bypass
- • Limited features
Browser Settings
Chrome Extensions (Simple)
Steps:
- Open Chrome Settings → Extensions
- Chrome Web Store → Search "site blocker"
- Install a simple blocker like "SiteBlocker"
- Add sites to block in extension options
✅ Pros
- • Very easy
- • Quick setup
- • Free
❌ Cons
- • Easy to disable
- • Limited features
- • Browser-only
Focus & Distraction-Free Modes
Browser Focus Modes
Steps:
- Chrome: Use "Tab Suspender" extensions
- Firefox: Use "Multi-Account Containers" for work/personal
- Safari: Enable "Private Browsing" for work sessions
✅ Pros
- • Reduces temptation
- • Keeps work separate
- • Easy to toggle
❌ Cons
- • Doesn't block sites
- • Requires self-discipline
- • More of a helper than blocker
Combination Approach (Recommended)
Multi-Layer Blocking
Steps:
- Layer 1: Use a browser extension for easy blocking
- Layer 2: Edit hosts file for hard-to-bypass blocking
- Layer 3: Use router DNS for network-wide protection
- Layer 4: Add app-based blocking for extreme focus sessions
✅ Pros
- • Extremely effective
- • Hard to bypass
- • Comprehensive protection
❌ Cons
- • Complex setup
- • Time-consuming
- • May feel restrictive
Pro Tips for Effective Website Blocking
Use Password Protection
Always set a password on your blocking tools. Make it something you won't remember, or have a friend set it for you.
Start Small
Don't block everything at once. Start with your 2-3 biggest distractions, then add more as you adjust.
Allow Yourself Breaks
Use blocking tools with schedules. Allow yourself access during lunch or after work. Total blocks often fail.
Don't Forget Your Phone
Use app blockers on your phone too. Try Freedom, Cold Turkey, or built-in screen time settings.
Test Your Website Blocker
Not sure if your blocking tool is working? Use our free Website Blocker Checker to test if distractions are actually blocked:
Test My BlockerCombine Blocking with Pomodoro for Maximum Focus
Website blocking eliminates distractions. The Pomodoro Technique structures your focus time. Together, they're unstoppable.