httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rbo...@apache.org
Subject svn commit: r1580895 - /httpd/httpd/trunk/docs/manual/howto/access.xml
Date Mon, 24 Mar 2014 16:00:59 GMT
Author: rbowen
Date: Mon Mar 24 16:00:58 2014
New Revision: 1580895

URL: http://svn.apache.org/r1580895
Log:
Suggest the 'require expr' syntax as an alternate way to do something.

Modified:
    httpd/httpd/trunk/docs/manual/howto/access.xml

Modified: httpd/httpd/trunk/docs/manual/howto/access.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/howto/access.xml?rev=1580895&r1=1580894&r2=1580895&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/howto/access.xml (original)
+++ httpd/httpd/trunk/docs/manual/howto/access.xml Mon Mar 24 16:00:58 2014
@@ -138,6 +138,14 @@ Require not host gov
 </If>
     </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,



Mime
View raw message