How to block access to websites on a linux box [closed]
- by user364952
I'm just curious how many ways people can come up with to block access to a website.
I simply intended to block (my own) access to news.ycombinator.com to stop my productivity drain. The first two methods I thought of were editing the hosts file to resolve news.ycombinator.com to 0.0.0.0 or adding a rule to iptables.
iptables -A OUTPUT -d news.ycombinator.com -j REJECT
Disclaimer: I do realise that the above two methods are easily by-passable. Doesn't help this is my own machine.
What other ways does the internet know?