How to install ModSecurity Tools in WHM

In WHM, the ModSecurity Tools interface allows you to add and manage ModSecurity rules for your server.

You need to first install the ModSecurity Apache module in order to use this feature.
WHM >> Home >> Software >> EasyApache 4
OR,
You can install ModSecurity Apache module through below command:

yum install ea-apache24-mod_security2

Follow below steps to ADD ModSecurity rule :

  1. Click “Add Rule. A new interface will display.
  2. Enter the rule in the “Rule Text text box.
  3. To enable the rule when you deploy the configuration, select the “Enable Rule checkbox.
  4. To deploy the rule and restart Apache immediately, select the “Deploy and Restart Apache checkbox.
  5. Click “Save.

Follow the below steps to EDIT a rule :

  1. Click “Edit ” for the rule that you wish to update.
  2. Make the desired changes in the Rule Text”  text box.
  3. Click “Save“.

Follow the below steps to COPY a rule :

  1. Click “Copy for the rule that you wish to update.
  2. Make any desired changes in the “Rule Text text box.
  3. Click “Save.

Follow the below steps to DELETE a rule :

  1. Click “Delete for the rule that you wish to delete.
  2. Click “Delete to confirm your action.

To enable or disable a ModSecurity rule, click “Enable or “Disable in that rule’s row.

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

How to fix defaultwebpage.cgi on a webserver

Running the following commands solves the above problem:   /scripts/updateuserdomains...

How to fix IP Missing issue on cPanel/WHM

We are here to help you with solving the problem of Missing IP Server in list accounts. The...

Install Let's Encrypt SSL in cPanel/WHM

Let's Encrypt, a valid, open-source license that offers free SSL for your domains. The Let's...

Fix Email Issue on a server using the MSFE

To solve the problem of not sending/receiving email on a server using the MSFE / Mailscanner...

Domain names are not showing in WHM

We were unable to see any domains listed under WHM -> List Accounts. However, we can see the...