From: Richard Bowen Date: Mon, 24 Mar 2014 16:00:58 +0000 (+0000) Subject: Suggest the 'require expr' syntax as an alternate way to do something. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e97ed4557dc5feb88d52dd063c5088c4d27f1c20;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/docs/manual/howto/access.xml b/docs/manual/howto/access.xml index a4443ca38ee..40f054dbff1 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,