
September 7th, 2012, 04:18 AM
|
|
Contributing User
|
|
Join Date: Aug 2003
Posts: 198
Time spent in forums: 20 h 56 sec
Reputation Power: 10
|
|
IPTables to Drop HTTP POST traffic
Hi,
I hope that somebody might help me with this.
I would like to know some iptables rule to drop all external traffic coming to port 80 in my domain (IP) using the HTTP header POST.
.. namely, droping the connection for any kind of post done by people in a specific website, and using IPtables instead of doing it with Apache.
Seems there is a "string" command in IPTables to regex this, so I think it's possible.
In summary, a translation of the following to the firewall language ...
Code:
<Limit POST>
order deny,allow
deny from all
</Limit>
Is this possible?
Thank you very much in advance.
Mapg
Last edited by mapg : September 7th, 2012 at 04:23 AM.
|