This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# assumes libapache2-modsecurity is installed | |
# Reference Mannual - https://github.com/SpiderLabs/ModSecurity/wiki | |
SecRuleEngine On | |
<LocationMatch "^/.*"> | |
# initialise the state based on X-Forwarded-For ip address | |
SecRule REQUEST_HEADERS:X-Forwarded-For "@unconditionalMatch" "phase:2,initcol:ip=%{MATCHED_VAR},pass,nolog,id:100" |