I'm using CentOS 5.8(final), kernel 2.6.18-308.8.2, iptables v1.3.5
I want to block a HTTPs POST/GET request to outside which matches a string (defined as ABCxyz) in the POST/GET payload. I tried to block outgoing HTTPs GET request by adding the following rule to iptables
iptables -I OUTPUT -p tcp --dport 443 -m string --string 'GET / HTTP/1.1' --algo bm -j DROP
I don't know why when I run curl command as bellow, it still works :
curl https://website.com
It should be blocked as my imagination but ...
Do you have any ideas about that?