[{"data":1,"prerenderedAt":598},["ShallowReactive",2],{"guides:\u002Fguides\u002Fdistracting-websites-to-block-developers":3,"related:\u002Fguides\u002Fdistracting-websites-to-block-developers":582},{"id":4,"title":5,"body":6,"category":554,"dateModified":555,"datePublished":555,"description":556,"extension":557,"eyebrow":558,"faq":559,"heading":572,"image":573,"lead":574,"meta":575,"navigation":576,"path":577,"seo":578,"stem":579,"updated":580,"__hash__":581},"guides\u002Fguides\u002Fdistracting-websites-to-block-developers.md","Most Distracting Websites to Block: A Developer List",{"type":7,"value":8,"toc":540},"minimark",[9,14,18,62,65,69,72,112,117,121,124,156,165,169,228,235,247,251,254,293,296,300,325,337,341,365,368,372,378,388,391,395,398,467,470,474,480,490,496,502,506,509,520,528],[10,11,13],"h2",{"id":12},"which-websites-should-developers-block","Which websites should developers block?",[15,16,17],"p",{},"Block the sites you open out of reflex, not the ones you need to do the work. For most developers that means video (YouTube, Twitch, Netflix), social feeds (X, Reddit, Instagram, TikTok), news and aggregators (Hacker News and your usual news sites), shopping, and sports. Leave documentation, GitHub, Stack Overflow, package registries, and your company's tools open.",[19,20,21,29,51,57],"ol",{},[22,23,24,28],"li",{},[25,26,27],"strong",{},"Start with the five sites you open most when you're stuck or waiting."," Your browser history will tell you.",[22,30,31,34,35,39,40,43,44,39,47,50],{},[25,32,33],{},"Add the extra hostnames for each one."," ",[36,37,38],"code",{},"youtu.be"," isn't ",[36,41,42],{},"youtube.com",". ",[36,45,46],{},"news.ycombinator.com",[36,48,49],{},"ycombinator.com",".",[22,52,53,56],{},[25,54,55],{},"Block them during work hours,"," not all day.",[22,58,59],{},[25,60,61],{},"Test in every browser you use.",[15,63,64],{},"The lists below are a starting point. A short list you keep beats a long one you switch off by Wednesday.",[10,66,68],{"id":67},"domains-vs-hostnames-why-lists-leak","Domains vs. hostnames: why lists leak",[15,70,71],{},"Most \"sites to block for productivity\" lists give you names like \"YouTube\" and \"Reddit\". A blocker needs hostnames, and one site often uses several.",[15,73,74,75,78,79,82,83,85,86,89,90,82,93,96,97,99,100,103,104,107,108,111],{},"How a blocker treats subdomains varies, so check yours. Cactus for Mac, the scheduled blocker I make, blocks each domain you add plus its ",[36,76,77],{},"www."," version. It adds a few extras automatically: ",[36,80,81],{},"m.youtube.com"," for ",[36,84,42],{},", and ",[36,87,88],{},"twitter.com"," and ",[36,91,92],{},"www.twitter.com",[36,94,95],{},"x.com",". Every other hostname, such as ",[36,98,38],{},", ",[36,101,102],{},"old.reddit.com",", or ",[36,105,106],{},"music.youtube.com",", needs its own entry. Cactus blocks whole sites only, so ",[36,109,110],{},"youtube.com\u002Fshorts"," blocks all of YouTube.",[15,113,114,115,50],{},"The lists below assume a blocker that works like that. If yours blocks every subdomain of a domain, you can skip the subdomain entries, but keep separate domains like ",[36,116,38],{},[10,118,120],{"id":119},"video-and-streaming","Video and streaming",[15,122,123],{},"Video is the biggest risk because one clip leads into the next one on its own.",[125,126,127,138,146,151],"ul",{},[22,128,129,131,132,134,135,137],{},[36,130,42],{},", plus ",[36,133,38],{}," for shortened links. Add ",[36,136,106],{}," only if music at work is a problem for you. You may want it to keep working.",[22,139,140,89,143],{},[36,141,142],{},"twitch.tv",[36,144,145],{},"m.twitch.tv",[22,147,148],{},[36,149,150],{},"netflix.com",[22,152,153],{},[36,154,155],{},"tiktok.com",[15,157,158,159,164],{},"If you learn from conference talks on YouTube, don't keep YouTube open all day for them. Watch talks outside your blocked hours, or block YouTube only during the hours you write code. The ",[160,161,163],"a",{"href":162},"\u002Fguides\u002Fhow-to-block-youtube-on-mac","YouTube blocking guide"," covers embedded players and other edge cases.",[10,166,168],{"id":167},"social-media","Social media",[125,170,171,183,202,207,215,223],{},[22,172,173,175,176,178,179,182],{},[36,174,95],{},". Cactus adds ",[36,177,88],{}," for you. Add ",[36,180,181],{},"mobile.x.com"," if you've used mobile links.",[22,184,185,131,188,190,191,89,194,197,198,201],{},[36,186,187],{},"reddit.com",[36,189,102],{},", which serves its own pages. ",[36,192,193],{},"new.reddit.com",[36,195,196],{},"redd.it"," short links redirect to ",[36,199,200],{},"www.reddit.com",", so they are optional.",[22,203,204],{},[36,205,206],{},"instagram.com",[22,208,209,89,212],{},[36,210,211],{},"facebook.com",[36,213,214],{},"m.facebook.com",[22,216,217,89,220],{},[36,218,219],{},"threads.com",[36,221,222],{},"threads.net",[22,224,225],{},[36,226,227],{},"bsky.app",[15,229,230,231,234],{},"Think before you add ",[36,232,233],{},"linkedin.com",". For many developers it's recruiting and work messages. If you mostly scroll the feed there, add it.",[15,236,237,238,89,242,246],{},"Reddit is a judgment call. Search results send you to Reddit threads with real answers to programming questions. A scheduled block is the middle ground: the thread is still there at 18:00. See ",[160,239,241],{"href":240},"\u002Fguides\u002Fhow-to-block-reddit-on-mac","how to block Reddit on Mac",[160,243,245],{"href":244},"\u002Fguides\u002Fhow-to-block-twitter-x-on-mac","how to block X on Mac"," for site-specific details.",[10,248,250],{"id":249},"news-and-aggregators","News and aggregators",[15,252,253],{},"This group is sneaky for developers, because it feels like work.",[125,255,256,267,273,281],{},[22,257,258,260,261,263,264,266],{},[36,259,46],{},". This is the Hacker News host. Adding ",[36,262,49],{}," only blocks Y Combinator's company site, so add ",[36,265,46],{}," explicitly.",[22,268,269,272],{},[36,270,271],{},"lobste.rs",", if you use it the way you use HN.",[22,274,275,89,278],{},[36,276,277],{},"techmeme.com",[36,279,280],{},"producthunt.com",[22,282,283,284,99,287,103,290,50],{},"Your general news sites, for example ",[36,285,286],{},"nytimes.com",[36,288,289],{},"cnn.com",[36,291,292],{},"theverge.com",[15,294,295],{},"Hacker News is sometimes useful at work. A release announcement or a postmortem can matter to what you're building. That's the argument for blocking it on a schedule instead of forever. The articles HN links to live on other domains, so if a colleague sends you one, it still opens.",[10,297,299],{"id":298},"shopping","Shopping",[125,301,302,307,312,317],{},[22,303,304],{},[36,305,306],{},"amazon.com",[22,308,309],{},[36,310,311],{},"ebay.com",[22,313,314],{},[36,315,316],{},"etsy.com",[22,318,319,89,322],{},[36,320,321],{},"aliexpress.com",[36,323,324],{},"temu.com",[15,326,327,328,330,331,89,333,336],{},"If you work on AWS, test the console after you add ",[36,329,306],{},". Cactus only blocks ",[36,332,306],{},[36,334,335],{},"www.amazon.com"," by name, so AWS hostnames aren't on the list, but you should confirm your own setup still works.",[10,338,340],{"id":339},"sports","Sports",[125,342,343,348,353],{},[22,344,345],{},[36,346,347],{},"espn.com",[22,349,350],{},[36,351,352],{},"bleacherreport.com",[22,354,355,356,99,359,103,362,50],{},"League sites you check for scores, for example ",[36,357,358],{},"nba.com",[36,360,361],{},"nfl.com",[36,363,364],{},"mlb.com",[15,366,367],{},"Live scores pull you back every few minutes, which is exactly the rhythm of waiting on a build or a coding agent.",[10,369,371],{"id":370},"the-starter-blocklist-to-copy","The starter blocklist to copy",[15,373,374,375,377],{},"One hostname per line. Add each entry to your blocker's site list, and delete the ones you never visit. If your blocker doesn't add ",[36,376,77],{}," on its own, add those versions too.",[379,380,385],"pre",{"className":381,"code":383,"language":384},[382],"language-text","youtube.com\nyoutu.be\ntwitch.tv\nm.twitch.tv\nnetflix.com\ntiktok.com\nx.com\nreddit.com\nold.reddit.com\nnew.reddit.com\nredd.it\ninstagram.com\nfacebook.com\nm.facebook.com\nthreads.com\nthreads.net\nbsky.app\nnews.ycombinator.com\ntechmeme.com\nproducthunt.com\namazon.com\nebay.com\netsy.com\naliexpress.com\ntemu.com\nespn.com\nbleacherreport.com\n","text",[36,386,383],{"__ignoreMap":387},"",[15,389,390],{},"That's 27 lines covering 20 sites. A smaller list is fine. Start with the five you open most, add their extra hostnames, and grow it when you catch yourself on something new.",[10,392,394],{"id":393},"what-not-to-block","What not to block",[15,396,397],{},"The fastest way to abandon a blocker is to block something you need, hit it during a deadline, and switch the whole thing off. Keep these open:",[125,399,400,413,425,434,455,461],{},[22,401,402,405,406,99,409,412],{},[25,403,404],{},"Documentation."," Language and framework docs such as ",[36,407,408],{},"developer.mozilla.org",[36,410,411],{},"docs.python.org",", or your framework's site, plus your cloud provider's docs.",[22,414,415,34,418,99,421,424],{},[25,416,417],{},"Code hosting.",[36,419,420],{},"github.com",[36,422,423],{},"gitlab.com",", or whatever your team uses.",[22,426,427,34,430,433],{},[25,428,429],{},"Q&A.",[36,431,432],{},"stackoverflow.com"," and the Stack Exchange sites.",[22,435,436,34,439,99,442,99,445,99,448,99,451,454],{},[25,437,438],{},"Package registries.",[36,440,441],{},"npmjs.com",[36,443,444],{},"pypi.org",[36,446,447],{},"crates.io",[36,449,450],{},"pkg.go.dev",[36,452,453],{},"rubygems.org",". Your package manager also needs these from the command line, and a blocker that works at the Mac level affects CLI tools too.",[22,456,457,460],{},[25,458,459],{},"Your company's tools."," Chat, issue tracker, CI, error tracking, and internal dashboards.",[22,462,463,466],{},[25,464,465],{},"Your AI tools."," If you use Claude, ChatGPT, or a coding agent's web dashboard for work, leave it open.",[15,468,469],{},"Before you block a big platform, check what else lives on it. Blocking a domain blocks every page under it, including the one useful page.",[10,471,473],{"id":472},"common-mistakes-with-distracting-site-blocklists","Common mistakes with distracting-site blocklists",[15,475,476,479],{},[25,477,478],{},"Copying a 200-domain list."," Big lists break things you didn't expect and are hard to debug. Large sites can share CDN addresses, so a blocker that also filters by IP address may occasionally affect an unrelated site during blocked hours. If a work site breaks, remove entries one at a time until you find the cause.",[15,481,482,34,485,89,487,489],{},[25,483,484],{},"Forgetting short links and alternate hosts.",[36,486,38],{},[36,488,102],{}," are the usual leaks.",[15,491,492,495],{},[25,493,494],{},"Blocking all day."," If the block covers your evenings, you'll start looking for ways around it. Block the hours you code.",[15,497,498,501],{},[25,499,500],{},"Not testing."," Open each site in every browser you use. Chrome's Secure DNS, Firefox's DNS over HTTPS, iCloud Private Relay, proxies, and some VPNs can bypass hosts-based blocking. If one browser still loads a blocked site, check those settings first.",[10,503,505],{"id":504},"put-the-list-on-a-schedule","Put the list on a schedule",[15,507,508],{},"A blocklist works best when it switches on by itself, so you don't have to decide each morning. In Cactus:",[19,510,511,514,517],{},[22,512,513],{},"Set the days and the time range, for example weekdays from 9:00 to 18:00.",[22,515,516],{},"Add the hostnames from the list above.",[22,518,519],{},"Turn it on. The block applies in Safari, Chrome, Arc, Firefox, and other browsers at once, with no extension.",[15,521,522,523,527],{},"During an active block there's no button to end it early. Cactus has one schedule with one site list, so you can't run a different list on weekends. It blocks websites, not desktop apps, and a Mac administrator can still remove it. Cold Turkey Pro and Freedom can block apps and run more than one schedule, and both run on Windows. Freedom also runs on iPhone. SelfControl is free and open source, though you start each block by hand. ",[160,524,526],{"href":525},"\u002Fhow-cactus-blocks","How Cactus blocks websites"," explains the mechanism and its limits.",[15,529,530,531,535,536,50],{},"I built Cactus because a 20-second wait for a coding agent kept turning into 20 minutes on YouTube or X. If that's your pattern too, see ",[160,532,534],{"href":533},"\u002Fguides\u002Fwhat-to-do-while-claude-code-is-working","what to do while Claude Code is working"," and the ",[160,537,539],{"href":538},"\u002Ffor-coding-agents","coding agents page",{"title":387,"searchDepth":541,"depth":541,"links":542},2,[543,544,545,546,547,548,549,550,551,552,553],{"id":12,"depth":541,"text":13},{"id":67,"depth":541,"text":68},{"id":119,"depth":541,"text":120},{"id":167,"depth":541,"text":168},{"id":249,"depth":541,"text":250},{"id":298,"depth":541,"text":299},{"id":339,"depth":541,"text":340},{"id":370,"depth":541,"text":371},{"id":393,"depth":541,"text":394},{"id":472,"depth":541,"text":473},{"id":504,"depth":541,"text":505},"Focus while coding","2026-10-17","The most distracting websites to block as a developer, grouped by type, with the exact hostnames to add and the sites to keep open: docs, GitHub, registries.","md","Developer blocklist",[560,563,566,569],{"q":561,"a":562},"What websites should I block to be more productive?","Block the sites you open out of habit: video like YouTube and Twitch, social feeds like X, Reddit, and Instagram, news aggregators, shopping, and sports scores. Keep documentation, GitHub, Stack Overflow, and your package registry open.",{"q":564,"a":565},"Should developers block Hacker News?","Usually during focus hours, yes. The HN site lives at news.ycombinator.com, so add that hostname explicitly. Links you follow from HN are on other domains and stay reachable.",{"q":567,"a":568},"Why does a site still open after I blocked it?","It's often a different hostname, such as youtu.be or old.reddit.com, that your blocker doesn't cover. Browser secure DNS, iCloud Private Relay, and some VPNs can also get around hosts-based blocking.",{"q":570,"a":571},"Should I block Reddit if I use it for programming answers?","Block it during your working hours and let it come back in the evening. If a specific answer matters, it will still be there when the block ends.","The most distracting websites to block, for developers","editorial","A starter blocklist for programmers, with the extra hostnames most lists forget. Plus the sites you should leave open, because blocking your docs is a fast way to switch the blocker off.",{},true,"\u002Fguides\u002Fdistracting-websites-to-block-developers",{"title":5,"description":556},"guides\u002Fdistracting-websites-to-block-developers","October 17, 2026","DfUzit3wU6di0t8HnK2GwiCaR0dvy_VFiZ8fMkCzoFo",[583,588,592],{"path":584,"title":585,"heading":586,"description":587,"category":554},"\u002Fguides\u002Fclaude-code-notification-when-done","Claude Code Notification When Done: Sound and Alerts","How to get a Claude Code notification when it's done","Get a Claude Code notification when done: built-in desktop alerts, a Stop hook that plays a sound, and permission alerts on macOS. Copy-paste settings.json.",{"path":533,"title":589,"heading":590,"description":591,"category":554},"What to Do While Claude Code Is Working","What to do while Claude Code is working","What to do while Claude Code is working: review the plan, queue the next prompt, run a second agent, or stand up. And why opening YouTube costs 20 minutes.",{"path":593,"title":594,"heading":595,"description":596,"category":597},"\u002Fguides\u002Fblock-social-media-on-mac","How to Block Social Media on Mac and MacBook","How to block social media on your Mac","Block social media on your Mac or MacBook: the exact domains for 12 networks, how to block them in Safari with Screen Time, and how to block them on a schedule.","Block a specific site",1792996904928]