Show HN: Gandalf, a simple and brutalistic URL blocker

3 points by oscarcp ↗ HN
Hi everyone, I just wanted to show a small python tool that I created today to avoid my own procrastination at work (which is ironic, given that I've procrastinated to do this). It's a URL blocker based on entries in /etc/hosts. It has a command called gandalf to start and stop the service blocking and adding or removing URLs.

I must say, it's very brutalistic, I've done it in a few spare hours I had yesterday and today, the codebase is extremely simple and it just does it job, nothing else. It contains a PKGBUILD for Arch Linux but I still haven't submitted it to AUR.

Hope you like it! Any comments are welcome.

https://git.sr.ht/~oscarcp/gandalf

2 comments

[ 2.9 ms ] story [ 13.1 ms ] thread
I was expecting a _URL shall not pass_ joke somewhere.
It does, when you try to access a blocked URL it will redirect you to a local webservice that will tell you that You! Shall! Not! Pass! :D