]> granicus.if.org Git - apache/commitdiff
Suggest the 'require expr' syntax as an alternate way to do something.
authorRich Bowen <rbowen@apache.org>
Mon, 24 Mar 2014 16:00:58 +0000 (16:00 +0000)
committerRich Bowen <rbowen@apache.org>
Mon, 24 Mar 2014 16:00:58 +0000 (16:00 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1580895 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/howto/access.xml

index a4443ca38eeee6312b324401ebc52a05433cb6c1..40f054dbff120612d8dc24c7dfa7c9beeca2f490 100644 (file)
@@ -138,6 +138,14 @@ Require not host gov
 &lt;/If&gt;
     </highlight>
 
+    <p>Using the <directive module="mod_authz_core">Require</directive>
+    <code>expr</code> syntax, this could also be written as:</p>
+
+
+    <highlight language="config">
+Require expr %{HTTP_USER_AGENT} != 'BadBot'
+    </highlight>
+
     <note><title>Warning:</title>
     <p>Access control by <code>User-Agent</code> is an unreliable technique,
     since the <code>User-Agent</code> header can be set to anything at all,