I know. The best way to do this would be to have an external whitelist txt file that a user can enter an IP per line.
Then at the end of your script, do a loop test for each IP in the whitelist.txt if exists in each of the sets
ipset -T setname1 ipaddress1
ipset -T setname2 ipaddress1
ipset -T...
Add to the end of ya-malware-block.sh and pgl.yoyo.org should resolve and will be part of the schedule :). Now give me some likes. JK!
WISH LIST: YAMB integrated with AB-Solution
ipset -D YAMalwareBlock1IP 213.230.210.230
Very nice. Just one line and one output file. I've gone ahead and updated the first post.
Can you confirm the address=/0.0.0.0/0.0.0.0 doesn't do anything? I initially tried to simply modify that line with the router's IP, leaving the hosts.clean file to resolve to 0.0.0.0 but it didn't work.
Hi everyone,
First post here so bare with me.
This builds on thelonelycoder's script for host based domain blocking. The main difference is a customizable HTML or 1x1 transparent GIF file will resolve and replace the blocked section of the page, instead of a 404-type message. This is...