I want to restrict access to a path via iptables - I try this one and its work on the whole site
iptables -I INPUT -p tcp --dport 443 -m string --algo bm --string 'example.com' -j DROP
but I want to restrict access to specific folder like "example.com/test", but It didn't catch any packets
iptables -I INPUT -p tcp --dport 443 -m string --algo bm --string 'example.com/test' -j DROP
Please any suggestion ?