Redirects queries for “reddit.com” in your url bar towards your own computer. And unless you literally are reddit, you won’t reply to yourself, the result being that you’ve blocked the website for yourself.
EDIT: I prefer to use 0.0.0.0 instead, so I’ll continue to ignore myself even if I do become Reddit in the future. Gotta be cautious.
I fixed all my reddit problems years ago with this simple trick:
added
127.0.0.1 *reddit*
to my hosts file.
Say more about this. What does this do?
Redirects queries for “reddit.com” in your url bar towards your own computer. And unless you literally are reddit, you won’t reply to yourself, the result being that you’ve blocked the website for yourself.
EDIT: I prefer to use 0.0.0.0 instead, so I’ll continue to ignore myself even if I do become Reddit in the future. Gotta be cautious.
Shoutout to https://github.com/StevenBlack/hosts
It uses 0.0.0.0 for tens of thousands of bad domains, so I use this as my baseline on my systems.
You either die a hero or live long enough to become 151.101.21.140
It’s a DNS file specifically for your computer. It just returns 127.0.0.1 as the IP address of Reddit, instead of it’s real IP
Since when did wildcards work in the hosts file ?
Well, I know it works on my system…