WHM / cPanel
BotGuard provides a WHM / cPanel integration plugin. When the plugin is installed, the BotGuard Apache web server protection module is activated. The control panel provides the appropriate configuration options for the WHM admin and cPanel user.
The module is provided as a package for CentOS 7 and above. The module is installed and updated in the standard way, using an SSH connection to the WHM server.
Import the BotGuard package digital signature key:
Nginx support in WHM / cPanel (optional)
The WHM / cPanel website control panel uses Apache as the web server. Some users prefer to use Nginx web server instead of Apache, which is not included in the standard configuration of the control panel. It is generally recommended to use Engintron for this task, which is an open source project.
BotGuard integration plugin supports Engintron. To integrate the plugin with Engintron additional steps need to be taken after installing the BotGuard plugin:
Install the BotGuard module for Nginx according to the instructions.
Disable Apache BotGuard module. To do this, in the file
/etc/apache2/conf.modules.d/10-botguard.confcomment out the line loading the module (add a # symbol at the beginning of the line), so that it looks as follows:
- Remove the cron job for Engintron. To do this, in the file /etc/crontab comment out the appropriate line. It should look like this:
- At the start of the /etc/nginx/nginx.conf file, add a line to load the BotGuard module for Nginx
- Make sure the system time is in sync with the precision time servers:
- Start the service to sync Apache and Nginx configuration files:
The plugin will be disabled after installation. Before using the plugin, it must be pre-configured. To configure the plugin, open the WHM web control panel and go to section Home » Plugins » BotGuard Bot Management:
You can get an API Key in your account details at botguard.net. Fill in the fields of Primary and Secondary Servers with the addresses of BotGuard servers assigned to your account.