You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@apache.org on 2014/03/24 17:00:59 UTC
svn commit: r1580895 - /httpd/httpd/trunk/docs/manual/howto/access.xml
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,