modsecurity

How to instal modsecurity in centos

$ yum install modsecurity ( use atomic repo or other repository dont compile )

Download the base rules on modsecurity official site
extract it in /etc/httpd/modsecurity/

Edit your /etc/httpd/conf.d/00-modsec (some file like this)
add the path of the folder of the standard base rules just copy the existing path and edit

restart apache

$ service httpd restart


This will block almost all sql so if you have a website like oscommerce, joomla, wordpress be sure to edit the rules, I haven't so I cant put it here :)

Comments

Popular posts from this blog

Black screen after logging in on Windows 2012 R2 using domain credentials on remote desktop connection

Client denied by server configuration error

Can't use proxy because no authentication schemes are fully configured.