Protect Your site with mod_security rules

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>

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!

Was this answer helpful?

 Print this Article

Also Read

How to Configure outlook with domain email ?

Start Outlook Express Click on Start->Program->Outlook Express and see screen Picture Step...

Enable Two Factor Authentication for cPanel Login

Login to CpanelNote: This system only work on SmartPhone right nowYou must install any supported...

14 Ways To Prevent Your WordPress Blog From Being Hacked

There are over 5 million results in google for the keyword “prevent wordpress hack“. Everyone has...

CPANEL/WHM: How to configure multiple domain to use Sendgrid SMTP

You are obviously here because you want learn how to configure your Cpanel/WHM managed domain to...

How to Handle the Google Attack Page