Skip to content

Instantly share code, notes, and snippets.

@DeeNewcum
Last active July 22, 2025 16:31
Show Gist options
  • Select an option

  • Save DeeNewcum/7edc80736cfd3eff8900e8cd0a49816c to your computer and use it in GitHub Desktop.

Select an option

Save DeeNewcum/7edc80736cfd3eff8900e8cd0a49816c to your computer and use it in GitHub Desktop.
# Stored at https://gist.github.com/DeeNewcum/7edc80736cfd3eff8900e8cd0a49816c
#
# On Windows, install this within C:\Windows\System32\drivers\etc\hosts
#
# To create a Windows shortcut that edits this in Cygwin's vim:
# 1. File Explorer > New > Shortcut
# 2. Paste in:
# C:\cygwin64\bin\bash.exe --login -c 'vim /cygdrive/c/Windows/System32/drivers/etc/hosts'
# 3. Right click > Properties > Advanced > Run as administrator (check)
##########################################################
# Dee's personal website block list
#
# THINK before you disable these!
##########################################################
### List of things that can't be blocked in the hosts-file, but instead must be blocked via Windows Defender Firewall or some other measure:
# - paperlined.org (because SecureCRT uses the direct IP address)
# - some Google News can still be accessed with something like https://www.google.com/search?q=politics&tbm=nws
# FOR FIREFOX, you must disable DoH (DNS over HTTPS) for this to work.
# https://support.mozilla.org/en-US/kb/dns-over-https
#127.0.0.1 evernote.com www.evernote.com
127.0.0.1 amazon.com www.amazon.com
#127.0.0.1 en.wikipedia.org
127.0.0.1 earth.google.com
# ======== social media ========
127.0.0.1 reddit.com www.reddit.com old.reddit.com
127.0.0.1 facebook.com www.facebook.com login.facebook.com blogs.facebook.com apps.facebook.com
# Unfortunately blocking "www.facebook.com" disables profile-pictures within the Windows-native Messenger application (but not messenger.com!),
# but unblocking it permits wide-open use of the Facebook website, even after logging out. So it will have to stay blocked.
127.0.0.1 twitter.com x.com
127.0.0.1 instagram.com www.instagram.com
# ======== news sites ========
127.0.0.1 feedly.com
127.0.0.1 news.google.com
127.0.0.1 nytimes.com www.nytimes.com
127.0.0.1 politico.com www.politico.com
127.0.0.1 washingtonpost.com www.washingtonpost.com
127.0.0.1 vox.com www.vox.com
#127.0.0.1 theguardian.com www.theguardian.com
127.0.0.1 theatlantic.com www.theatlantic.com
127.0.0.1 cnn.com www.cnn.com
127.0.0.1 msnbc.com www.msnbc.com
127.0.0.1 youtube.com www.youtube.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment