Displaying 1 result from an estimated 1 matches for "access_log_ip".
Did you mean:
access_log_ips
2016 Sep 21
1
ipset and blacklisting
...or files that don't exist on my home server
> and non-complying robots.
>
> Check the drop in bandwidth.
>
> Setup up a redirect to the NSA webite. They can deal with the hackers.
>
> HTH
>
I do a:
ipset save blacklist, and service ipset save
I use three scripts:
access_log_ips.sh
#!/bin/bash
##############################################
cp /root/blacklist /root/blacklist.old
sed -e 's/\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\).*$/\1/' -e t -e d
/var/log/httpd/access_log | sort | uniq > blacklist
exit 0
import_blacklist.sh
#!/bin/bash
#####################...