5 ms·
Looks like this is already covered by the "Social" add-on to StevenBlack's hosts: https://github.com/StevenBlack/hosts/blob/master/extensions/social/hosts http
by bhauer 9y ago
Looks like this is already covered by the "Social" add-on to StevenBlack's hosts:
https://github.com/StevenBlack/hosts/blob/master/extensions/social/hosts https://github.com/StevenBlack/hosts/blob/master/extensions/...
- joeblau 9y agoSteven Black's list is better. More complete and also has hosts for other social outlets, ad networks and trackers to block. https://github.com/StevenBlack/hosts/ https://github.com/StevenBlack/hosts/
- thelittleone 9y agoIs there a way to redirect to a local HTML file for any blacklisted host file addresses? Something like "You tried to access a site that's blocked in hosts file"? I tend to add blacklists like this then few months later wonder why some site doesn't work.
- pentagonpapers 9y ago127.0.0.1 baddomain.com Run Apache on your localhost and serve up a message
- hjek 9y agoYes. As the hosts file redirects to localhosts, you can run a local server, displaying a notification. As root: while true; do printf "blocked by hosts file" |nc -q 1 -l -p 80; done
- bencollier49 9y agoThat won't help if the site fails due to a backend request to FB falling over.
- bfred_it 9y agoYou can run a server at 127.0.0.1:80, but it won’t work for HTTPS sites… unless you also configure your own certificates on the server.
- deleted 9y ago[deleted]