---
title: "Setting Up ModSecurity Configuration"
source: "https://docs.nexcess.com/hosting/security/firewall-management/configserver-security-firewall-csf/setting-up-modsecurity-configuration/"
description: "Customize ModSecurity's global settings using the ModSecurity Configuration. Learn to enable the settings you need in this guide."
vertical: "Hosting"
date: "2024-03-04"
last_modified: "2026-07-29"
---

# Setting Up ModSecurity Configuration

The ModSecurity Configuration gives you the ability to configure global settings for ModSecurity. This article will walk you through the settings and how to enable the ones you want. For information on whitelisting in ModSecurity, see our article [Whitelisting ModSecurity Rules in WHM](https://docs.nexcess.com/hosting/control-panel/whm/security/whitelisting-modsecurity-rules-in-whm/).  
![ModSec configuration home page](https://docs.nexcess.com/wp-content/uploads/2026/06/help.liquidweb.com_p0Lohj.png)

## Audit Log Level

Here you will decide what transactions are logged. You can log all, none or only noteworthy transactions. A noteworthy transaction is one that has triggered a warning or error or has a relevant status code. Use the radio buttons to choose what transactions you want to have logged.  
![Audit Log Level](https://docs.nexcess.com/wp-content/uploads/2026/06/help.liquidweb.com_YtFMWA.png)

## Connections Engine

This setting controls the behavior of the connections engine. You can choose to have the SecConn\[Read|Write\]StateLimi processed, ignored or only processed by detection and not execute any disruptive actions.  
![Connections engine](https://docs.nexcess.com/wp-content/uploads/2026/06/help.liquidweb.com_DUxik8.png)

## Rules Engine

Here you will control the behavior of the rules engine. It can process, not process or process in verbose mode and not execute disruptive actions. Disruptive actions are ones like block, deny, drop, allow, proxy and redirect.  
![rules engine](https://docs.nexcess.com/wp-content/uploads/2026/06/help.liquidweb.com_fRY4xW.png)

## Backend Compression

This disables backend compression while leaving front end compression enabled. By default this is turned to disabled, while disabled ModSecurity will only see compressed content. It is advised to enable compression.  
![backend compression](https://docs.nexcess.com/wp-content/uploads/2026/06/help.liquidweb.com_xtgVkn.png)

## Geolocation Database

You can specify a path for the geolocation database. ModSecurity only supports the legacy GeoIP format, make sure you understand the path format needed prior to adding an entry.  
![geolocation database](https://docs.nexcess.com/wp-content/uploads/2026/06/help.liquidweb.com_4oBTT1.png)

## Google Safe Browsing Database

The Google Safe Browsing Database is a service that allows client applications to check URLs against the constantly updated lists of unsafe web resources. If you have a database to use for safe browsing lookups, you can input the path here.  
![google safe browsing database](https://docs.nexcess.com/wp-content/uploads/2026/06/help.liquidweb.com_nUn8iq.png)

## Guardian Log

Here you can specify an external program to pipe transaction log information for additional analysis.  
![guardian log](https://docs.nexcess.com/wp-content/uploads/2026/06/help.liquidweb.com_IcQskT.png)

## Project Honey Pot Http:BL API Key

Enter your API key for use with the @rbl operator if you have one.  
![honey pot api key](https://docs.nexcess.com/wp-content/uploads/2026/06/help.liquidweb.com_DB77wO.png)

## Perl Compatible Regular Expressions Library Match Limit

You can define the match limit of the Perl Compatible Regular Expressions Library. The default is 1500.  
![perl compatible regular expressions match limit](https://docs.nexcess.com/wp-content/uploads/2026/06/help.liquidweb.com_yVRXas.png)

## Perl Compatible Regular Expressions Library Match Limit Recursion

Set the match limit recursion of the Perl Compatible Regular Expressions Library, by default it is set at 1500.  
![perl compatible regular expressions match limit recursion](https://docs.nexcess.com/wp-content/uploads/2026/06/help.liquidweb.com_xnkkjQ.png)
