How to block Hacker News on Chrome
Updated December 2026
To block Hacker News on Chrome, add news.ycombinator.com to a website blocker extension or map news.ycombinator.com to 127.0.0.1 and ::1 in your Mac or Windows hosts file. Do not block ycombinator.com broadly if you are applying to YC or using Work at a Startup; block only the news.ycombinator.com subdomain. Hacker News is the #1 productivity illusion for software engineers and startup founders: every refresh feels like 'industry research,' yet reading 300 comments debating Rust vs Go or Show HN launches fragments deep engineering blocks all day. Enable Allow in Incognito at chrome://extensions so muscle-memory cmd+T opens stay caught even in private windows. Focus AI blocks news.ycombinator.com during active coding or writing sessions (while still letting a specific technical link pass if it directly matches your task), or locks it permanently via Always-On Site Blocker. Focus AI is free for 3 AI focus sessions and up to 3 always-blocked sites.
Option 1: Block Hacker News on Chrome with Focus AI (context-aware + Passcode Lock)
Focus AI gives you two ways to block Hacker News in Chrome, Edge, Brave, and Firefox: put it in the Always-On Site Blocker (up to 3 sites free, unlimited on Pro) for a permanent lock, or run a context-aware AI focus session that blocks distractions while allowing task-relevant pages. On Pro, you can lock your settings behind a Friend/Parent Passcode Lock so you cannot switch the block off on impulse.
- Install Focus AI from the Chrome Web Store (free for 3 AI focus sessions and up to 3 always-blocked sites, no account needed).
- Open
chrome://extensions, click Details on Focus AI, and turn on Allow in Incognito so private windows cannot bypass the block. - Add
news.ycombinator.comto your Always-On Site Blocker, or type your active task and click Lock me in.
Option 2: Block Hacker News manually via the Mac or Windows hosts file (free)
Block news.ycombinator.com ONLY (127.0.0.1 news.ycombinator.com and ::1 news.ycombinator.com) so ycombinator.com and workatastartup.com remain accessible.
Exact domains and hosts file lines for Hacker News:
127.0.0.1 news.ycombinator.com ::1 news.ycombinator.com
sudo nano /etc/hosts in Terminal, paste the lines at the bottom, press Control-O then Control-X, and flush DNS with sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder.C:\Windows\System32\drivers\etc\hosts (file type: All Files), paste the lines, save, and run ipconfig /flushdns in Command Prompt.Blocking multiple sites at once? Build a full copy-paste blocklist with our free Hosts File Website Blocker Generator →
Option 3: Standard list-based Chrome blocker extensions
List-based extensions such as BlockSite, StayFocusd, or LeechBlock NG let you block news.ycombinator.com faster than editing system files. Two trade-offs remain: domain lists are all-or-nothing (blocking legitimate work resources alongside feeds), and most standard extensions can be disabled in two clicks when temptation spikes.
Try Focus AI live against Hacker News
Pick or type a real work task, then test any URL to see what stays open and what gets blocked.
Browsing news.ycombinator.com without a direct match to "Building Next.js app" turns into a reading rabbit hole.
Why Hacker News keeps pulling you back
Plain HTML and smart technical comments make Hacker News feel immune from guilt, so engineers refresh news.ycombinator.com twelve times a day while builds run and pull requests stall.
Ready to block Hacker News without fighting yourself?
Start free with 3 AI focus sessions and up to 3 always-blocked sites. Add Friend/Parent Passcode Lock and unlimited protection anytime on Pro.
Add Focus AI to ChromeFrequently asked questions
How do I block Hacker News without blocking ycombinator.com?
List only news.ycombinator.com in Focus AI's Always-On Site Blocker or your hosts file. That blocks Hacker News while leaving ycombinator.com untouched.
Can Focus AI allow a specific technical post from Google while blocking the HN front page?
Yes. During a coding focus session, Focus AI blocks news.ycombinator.com browsing while letting directly relevant documentation and GitHub threads load.
How do I stop myself from reflexively opening HN while code compiles?
Lock news.ycombinator.com with Focus AI's Quit Wall or Always-On Site Blocker. Every muscle-memory hit shows your current task and stamps the urge when you close the tab.