modsecurity  v3.0.6
About: ModSecurity ("libModSecurity") is an intrusion detection and prevention library (web application firewall). Web servers must have its own connectors (currently a Nginx connector and an Apache connector (beta) are available). 3.x series.
  Fossies Dox: modsecurity-v3.0.6.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

ModSecurity - open source, cross platform web application firewall

Example Usage:

using ModSecurity::ModSecurity;
using ModSecurity::Rules;
using ModSecurity::Transaction;
ModSecurity *modsec;
ModSecurity::Rules *rules;
modsec = new ModSecurity();
rules = new Rules();
rules->loadFromUri(rules_file);
Transaction *modsecTransaction = new Transaction(modsec, rules);
modsecTransaction->processConnection("127.0.0.1");
if (modsecTransaction->intervention()) {
std::cout << "There is an intervention" << std::endl;
}
...