How can I use mod_security rules to protect my site?

As a company, we utilize mod_security rules which are global to all sites. We do this to help protect sites which may not be actively maintained, which will still cause issues for other users when exploited. However, if you require further protection by mod_security, it is very possible to include rules specific for your domain, without impacting the other users on the server. To do this, you simply need to add to the .htaccess file in the public_html directory with the following:

<IfModule mod_security.c>
</IfModule>

Then, if you find any rules you wish to utilize, or if you feel confident on making your own rules, you simply place the rules in between the two IfModule blocks. Voila! Custom application firewall rules!
  • 0 Корисниците го најдоа ова како корисно
Дали Ви помогна овој одговор?

Понудени резултати

How can I prevent my site from being hacked?

Typically, most sites are hacked because of older and exploitable software, or world-writeable...

I think I have been hacked

The first step you should follow is save the raw logs for your site to your home computer. You...

What is the most secure method for accessing my cpanel/whm account?

Each server provides both SSL and normal methods for accessing your hosting account's interface....

What is considered a strong password?

There are different password policies which could define a secure password. The rules we...