3 ms·
I was trying to use good old hosts file blocking the other day for my wife and realized this doesn't work anymore. Does anyone know how I can block a website l
by wincy 4y ago
I was trying to use good old hosts file blocking the other day for my wife and realized this doesn't work anymore.
Does anyone know how I can block a website like Facebook on a Mac with whatever new tech they've rolled out? I know Self Control does it, so there's definitely a way.
- agilob 4y agoYou would need to block all facebook domains https://github.com/jmdugan/blocklists/blob/master/corporations/facebook/all https://github.com/jmdugan/blocklists/blob/master/corporatio...
- wincy 4y agoAh actually these won’t work, as https uses a new record type on Macs. I think it’s because of the stuff detailed in this Stackoverflow question? https://superuser.com/questions/1657925/some-websites-bypass-hosts-file-in-safari https://superuser.com/questions/1657925/some-websites-bypass...
- ChoGGi 4y agoA local DNS server would be easier (wildcards as there's lots of FB domains).
- markx2 4y agonextdns.io - and the FB blocklist mentioned in another comment.
- TacticalCoder 4y ago> Does anyone know how I can block a website like Facebook on a Mac with whatever new tech they've rolled out? whois to find all their IPs range and block all these? They change once in a while but not every day. See here for the whois command: https://stackoverflow.com/questions/11164672/list-of-ip-space-used-by-facebook https://stackoverflow.com/questions/11164672/list-of-ip-spac... FWIW I just reject any outgoing attempt to these range from my firewall using a file I version and update once in a while. EDIT: I've also got a PiHole running and I'm pretty sure it's also blocking a huge lot of FB related ad domains. I could automate the whois query and check if it's different from the current list I'm using but I don't bother (so far).