DenyIfRequestHeader
Learn how to use the DenyIfRequestHeader config.txt directive to specify browse headers to indicate that access should be denied to EZproxy.
DenyIfRequestHeader specifies browser headers that, if present in EZproxy requests, indicate that access should be denied to EZproxy. It is extremely unusual to deny access to EZproxy based on a header sent by a browser, but if this action is required this directive should be used.
DenyIfRequestHeader is a repeatable, position-dependent config.txt directive. Optional filename is a user visible document of this directive.
Qualifiers
Qualificatore | Descrizione |
---|---|
wildheader | The header that indicates the access should be denied, which may include the * wildcard to match zero or more characters and the ? wildcard to mach any one character.
|
Opzioni
Opzione | Descrizione |
---|---|
allow | If allow appears after the wildheader, then any further DenyIfRequestHeader directives should be ignored and access should be granted. |
nome del file | If the wildheader matches and filename is specified, EZproxy should send the content of filename to indicate why access is being denied. |
Sintassi
DenyIfRequestHeader denyfile wildcardtest
Esempi
Deny access to Google indexing robot:
DenyIfRequestHeader User-Agent:*GoogleBot*
Deny access for people using a fictional, incompatible XYZ browser and give them feedback:
DenyIfRequestHeader User-Agent *XYZ* XYZFailsHere.htm