firewall - How can I block some special User-agents Via IPTables -


i need block packets source includes special user agents using iptables. don’t want manage via .htaccess or apache. there way?

you can this:

iptables -a input -p tcp --dport 80 -m string --algo bm --string "mozilla/4.0 (compatible; msie 6.0; windows nt 5.1)" -j drop 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

debian - 500 Error upon login into Plesk Admin - auth.php3? -