From 4b7726b28b9f2f5463d9a7ef4b93ce5c8925b834 Mon Sep 17 00:00:00 2001 From: Rich Bowen Date: Mon, 24 Mar 2014 16:00:58 +0000 Subject: [PATCH] Suggest the 'require expr' syntax as an alternate way to do something. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1580895 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/howto/access.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/manual/howto/access.xml b/docs/manual/howto/access.xml index a4443ca38e..40f054dbff 100644 --- a/docs/manual/howto/access.xml +++ b/docs/manual/howto/access.xml @@ -138,6 +138,14 @@ Require not host gov </If> +

Using the Require + expr syntax, this could also be written as:

+ + + +Require expr %{HTTP_USER_AGENT} != 'BadBot' + + Warning:

Access control by User-Agent is an unreliable technique, since the User-Agent header can be set to anything at all, -- 2.40.0