Saltar al contenido principal
Servicio de soporte de OCLC

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

Calificador Descripción
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.

 Note: Wildheader may not contain any spaces.

Opciones

Opción Descripción
allow If allow appears after the wildheader, then any further DenyIfRequestHeader directives should be ignored and access should be granted.
nombre de archivo If the wildheader matches and filename is specified, EZproxy should send the content of filename to indicate why access is being denied.

Sintaxis

DenyIfRequestHeader denyfile wildcardtest

Ejemplos

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