Hacker News new | ask | show | jobs
by schmich 3356 days ago
Steven Black's hosts compilation [1] is a good start for what to disallow. For URL shorteners, you could disallow URLs that trigger an HTTP redirect (e.g. HTTP 301), or you could follow the chain of redirects and apply your rules to the terminal URL.

[1] https://github.com/StevenBlack/hosts

1 comments

If you disallow redirect, it should allow redirects to the same domain.