4 ms·
on macOS i use a bash script to get all Facebook ip addresses: whois -h whois.radb.net '!gAS32934' | tr ' ' '\n' | awk '!/[[:alpha:]]/' > "/etc/pf.anchors/us
by DavideNL 9y ago
on macOS i use a bash script to get all Facebook ip addresses:
whois -h whois.radb.net '!gAS32934' | tr ' ' '\n' | awk '!/[[:alpha:]]/' > "/etc/pf.anchors/usr.home.sub/facebook.list"
and then use a pfctl anchor to block them all
table <facebook> persist file "/etc/pf.anchors/usr.home.sub/facebook.list"
block drop quick to <facebook>