automatic insert ip to iptables (drop)
Is there a way to automatically insert someone IP in the IPTABLE deny (drop) rule if an ip is trying to accessing a file in the server.
Example :
123.123.123.123 is trying to access www.securesite.com/?SECURE-FILE=topsecret
And the script will automatically insert 123.123.123.123 in the IPTABLE drop
iptables -I INPUT -s 123.123.123.123 -j DROP
123.123.123.123 is trying to access www.securesite.com/?SECURE-FILE=topsecret
And the script will automatically insert 123.123.123.123 in the IPTABLE drop
iptables -I INPUT -s 123.123.123.123 -j DROP