Post #3314156
2026-06-14 04:18 UTC
You can also use a firewall to deny/reject outgoing and incoming traffic to those IPs. By example, with ufw:
# apt install ufw bind9-dnsutils # install Uncomplicated Firewall and dig
# ufw enable # activate the firewall
# dig +short reddit.com # get reddit A IPs
151.101.65.140
151.101.1.140
151.101.193.140
151.101.129.140
# ufw deny in on all from 151.101.65.140 comment 'deny in connections to reddit'
# ufw deny out on all to 151.101.65.140 comment 'deny out connections to reddit'
. . .
Or in only one line:
uIPs=$(dig +short reddit.com); for uip in "${uIPs}"; do echo "$uip"; done;
Replies (0)
No replies.