![]() The best mod_security rules will greatly depend on your server and the application(s) you are hosting. Rules are directives for mod_security to use when screening web server activity, instructing mod_security what events to check for, and what actions to take. Scroll down to ConfigServer ModSecurity Tools and select to Edit. Switch the state to ‘ On‘ and save to activate the web firewall.ģ. Refresh the WHM interface and navigate to Plugins > ModSec Control.Ģ. How to Configure ModSecurity Ruleset with cPanel/WHM:ġ. Run the following commands to download and install the ConfigServer ModSec Control (CMC) plugin for WHM: Log in to your server’s console, terminal, or access remotely via SSH. How to Install ModSec Control Plugin for WHM: Wait for the rebuild to complete (20-30 minutes). Ensure Mod_Security is selected in the installation choices.ģ. Follow the prompts to rebuild using your last saved profile, or the default profile. How to Install Mod_Security on cPanel/WHM:ġ. Log in to your server’s WHM interface and navigate to EasyApache.Ģ. If you need to install cPanel, please follow the link for instructions. This guide requires cPanel/WHM to be installed on your VPS or server already. ![]() Mod_security is a web application firewall module for Apache web server, and can provide extremely safe protection against web-based attacks, when configured properly. In this guide, we will show you an easy way to install mod_security on a cPanel VPS, including rules to protect from MySQL injection and web attacks.
0 Comments
Leave a Reply. |