mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-16 01:22:18 +03:00
Updated Reference Manual (mediawiki)
@@ -2305,13 +2305,13 @@ This variable can be used as either a collection of all of the request headers o
|
||||
|
||||
<code>SecRule REQUEST_HEADERS:Host "^[\d\.]+$" "deny,id:47,log,status:400,msg:'Host header is a numeric IP address'"</code>
|
||||
|
||||
; Note: ModSecurity will treat multiple headers that have identical names in accordance with how the webserver treats them. For Apache this means that they will all be concatenated into a single header with a comma as the deliminator.
|
||||
|
||||
== REQUEST_HEADERS_NAMES ==
|
||||
This variable is a collection of the names of all of the request headers.
|
||||
|
||||
<code>SecRule REQUEST_HEADERS_NAMES "^x-forwarded-for" "log,deny,id:48,status:403,t:lowercase,msg:'Proxy Server Used'"</code>
|
||||
|
||||
; Note: ModSecurity will treat multiple headers that have identical names in accordance with how the webserver treats them. For Apache this means that they will all be concatenated into a single header with a comma as the deliminator.
|
||||
|
||||
== REQUEST_LINE ==
|
||||
This variable holds the complete request line sent to the server (including the request method and HTTP version information).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user