no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


fuss:mod_security [2022/04/19 08:28] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +====== Whitelisting ======
  
 +Certain IPs can be whitelisted so that the ''mod_security'' rules do not apply to them. The documentation hints how to whitelist a single IP, but they do not mention how to block an IP-range.
 +
 +The following rule, placed in ''/etc/apache2/mod-security/whitelist.conf'':
 +<code>
 +SecRule REMOTE_ADDR "^192\.168\.[0-1]{1}\.[0-9]{1,3}$" phase:1,nolog,allow,ctl:ruleEngine=off
 +</code>
 +
 +will whitelist:
 +<code>
 +192.168.0.0-255
 +192.168.1.0-255
 +</code>
 +so that none of the other rules apply to those connecting IPs.

fuss/mod_security.txt · Last modified: 2022/04/19 08:28 by 127.0.0.1

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.