Project

General

Profile

Docs ModEvasive » History » Revision 15

Revision 14 (nitrox, 2012-08-11 10:42) → Revision 15/18 (stbuehler, 2012-11-07 14:45)

h1. Limit Connections 

 *Module: mod_evasive* 

 h1. Description 

 mod_evasive is a very simplistic module to limit connections per IP. 

 h1. Options 

 *evasive.max-conns-per-ip* 

 limits the number of connections per IP. 

 <pre> 
 evasive.max-conns-per-ip = 3 
 </pre> 

 You may also want to set up conditionals : 

 <pre> 
     evasive.max-conns-per-ip = 1 
    
     $HTTP["host"] == "example.com" { 
       evasive.max-conns-per-ip = 2 
     } 
     $HTTP["host"] == "example2.com" { 
       evasive.max-conns-per-ip = 0 
     } 
 </pre> 

 0 means unlimited. 
 In this case, default sites get 1 connections, example.com 2 and example2.com unlimited. 

 *evasive.silent* 

 doesn't log blocked ips in error.log if enabled. 
 <pre> 
 evasive.silent = "enabled" 
 </pre>