For direct IPs, you would have to handle those separately, possibly at a firewall level or another level of your network configuration.
3. Integration with Pi-hole/AdGuard Home
Pi-hole:
Go to the Pi-hole admin interface.
Click on the 'Settings' tab.
Go to the 'Blocklists' tab.
Add the URL https://get.domainsblacklists.com/blacklist.txt to the list.
Click 'Save and Update'.
AdGuard Home:
Go to the AdGuard Home admin panel.
Click on the 'Filters' tab.
Click on 'Add Filter'.
Insert the URL https://get.domainsblacklists.com/blacklist.txt.
Click on 'Check' to verify, and then add it.
Remember to periodically update Pi-hole/AdGuard blocklists.
Note: Before applying any blocklist, always review the list to make sure legitimate domains that you want/need to access aren't being blocked. Also, ensure that your tools can handle the size of the blocklist, especially if it's a long one. Always test in a controlled environment first.
We can break this down into multiple steps:
1. Fetching the Blacklist
You can use a simple script with
wget
orcurl
to fetch the list:To make this run every hour, use
cron
. Edit the crontab with:And add the following line:
2. Integration with Squid Proxy
Squid can use ACLs (Access Control Lists) to block domains:
Edit your
squid.conf
:Add the following:
Reload Squid:
For direct IPs, you would have to handle those separately, possibly at a firewall level or another level of your network configuration.
3. Integration with Pi-hole/AdGuard Home
Pi-hole:
https://get.domainsblacklists.com/blacklist.txt
to the list.AdGuard Home:
https://get.domainsblacklists.com/blacklist.txt
.Remember to periodically update Pi-hole/AdGuard blocklists.
Note: Before applying any blocklist, always review the list to make sure legitimate domains that you want/need to access aren't being blocked. Also, ensure that your tools can handle the size of the blocklist, especially if it's a long one. Always test in a controlled environment first.