Iptables commands .

  #!/bin/sh#File: /etc/rc.d/rc.firewall# At once log and drop any known abusive IPsiptables -A INPUT -p tcp -s 87.118.104.44 -m limit –limit 1/minute –limit-burst 10 -j LOG –log-prefix “[DROPPED_NODE]“ –log-level 4iptables -A INPUT -p tcp -s 87.118.104.44 -j DROP# Allow fr?m ?n? t? ?n? ?n 127.0.0.1/32iptables -A INPUT -s 127.0.0.1/32 -j ACCEPTiptables -A OUTPUT -s 127.0.0.1/32 -j […]

See More

How to disable mod_security using .htaccess?

This post explains how to disable mod_security using .htaccess for one domain. You may have problem with mod_security if you are using certain plugins, wordpress, etc. Go to your public_html directory of the desired domain and in .htaccess file add the following lines. #vi .htaccess <IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule> Thats it.  Mod_sec […]

See More