Expand description
Actix-Web Middleware for the ModSecurity library.
§Example
use actix_web::App;
use actix_modsecurity::ModSecurity;
let mut security = ModSecurity::new();
security.add_rules(r#"
SecRuleEngine On
SecRule REQUEST_URI "@rx admin" "id:1,phase:1,deny,status:401"
"#).expect("Failed to add rules");
let app = App::new()
.wrap(security.middleware());§Documentation
Information regarding the ModSecurity language can be found in the ModSecurity Reference Manual.
Documentation for this crate can be found on docs.rs.
§Requirements
This crate requires libmodsecurity >= 3.0.6 to be installed on your system.
Structs§
- Intervention
- Actix-Web compatible wrapper on
Intervention - Middleware
- ModSecurity middleware service
- ModSecurity
- Actix-Web compatible wrapper on
ModSecurity - ModSecurity
Service - Assembled LibModSecurity service
- Transaction
- Actix-Web compatible wrapper on
Tranaction