update with webabuse.pl details
This commit is contained in:
@@ -15,3 +15,7 @@ There are plans in the future to incorporate IP blocking of spammers in pf. This
|
|||||||
|
|
||||||
## Abusive IP Blocklist
|
## Abusive IP Blocklist
|
||||||
You may notice `BLOCKTEMP` and `BLOCKPERM` tables. These tables are used to block abusive hosts. The abusive hosts are determined from the number of bad requests to my web server. If an IP has > 10 4xx/5xx responses with a 24 hour period it gets added to the `BLOCKTEMP` table.
|
You may notice `BLOCKTEMP` and `BLOCKPERM` tables. These tables are used to block abusive hosts. The abusive hosts are determined from the number of bad requests to my web server. If an IP has > 10 4xx/5xx responses with a 24 hour period it gets added to the `BLOCKTEMP` table.
|
||||||
|
|
||||||
|
You can see the code in the `webabuse.pl` file. I've added the `system("/bin/sh", "/usr/local/etc/email_abusive_ip_logs.sh", "$ip_ext");` line so that I can get an emailed report whenever an IP is added to the blocklist.
|
||||||
|
|
||||||
|
Note that the blocklist is cleared when the firewall or server is restarted.
|
||||||
Reference in New Issue
Block a user