summaryrefslogtreecommitdiff
path: root/docs/manual/howto/access.html.en
diff options
context:
space:
mode:
authorAndré Malo <nd@apache.org>2014-02-05 22:28:30 +0000
committerAndré Malo <nd@apache.org>2014-02-05 22:28:30 +0000
commitcc5367ee69671c28f3e20d0d33b3b3c2898fc156 (patch)
tree40870a6d91c4d4b236fb54f4d3268bb4003d56cf /docs/manual/howto/access.html.en
parente40704c69bdcecc3991e204bd6adc8a758f1e9d6 (diff)
downloadhttpd-cc5367ee69671c28f3e20d0d33b3b3c2898fc156.tar.gz
update transformation
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1564960 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/howto/access.html.en')
-rw-r--r--docs/manual/howto/access.html.en30
1 files changed, 10 insertions, 20 deletions
diff --git a/docs/manual/howto/access.html.en b/docs/manual/howto/access.html.en
index 2d11b321c0..b343b51d30 100644
--- a/docs/manual/howto/access.html.en
+++ b/docs/manual/howto/access.html.en
@@ -69,10 +69,8 @@
<p>The usage of these directives is:</p>
- <pre class="prettyprint lang-config">
-Require host address
-Require ip ip.address
- </pre>
+ <pre class="prettyprint lang-config">Require host address
+Require ip ip.address</pre>
<p>In the first form, <var>address</var> is a fully qualified
@@ -96,12 +94,10 @@ Require ip ip.address
board, and you want to keep them out, you could do the
following:</p>
- <pre class="prettyprint lang-config">
-&lt;RequireAll&gt;
+ <pre class="prettyprint lang-config">&lt;RequireAll&gt;
Require all granted
Require not ip 10.252.46.165
-&lt;/RequireAll&gt;
-</pre>
+&lt;/RequireAll&gt;</pre>
<p>Visitors coming from that address (<code>10.252.46.165</code>)
@@ -115,11 +111,9 @@ Require ip ip.address
<p>And, if you'd like to block access from an entire domain,
you can specify just part of an address or domain name:</p>
- <pre class="prettyprint lang-config">
-Require not ip 192.168.205
+ <pre class="prettyprint lang-config">Require not ip 192.168.205
Require not host phishers.example.com moreidiots.example
-Require not host gov
- </pre>
+Require not host gov</pre>
<p>Use of the <code class="directive"><a href="../mod/mod_authz_core.html#requireall">RequireAll</a></code>, <code class="directive"><a href="../mod/mod_authz_core.html#requireany">RequireAny</a></code>, and <code class="directive"><a href="../mod/mod_authz_core.html#requirenone">RequireNone</a></code> directives may be
@@ -135,11 +129,9 @@ Require not host gov
based on user-agent (the browser type) you might do the
following:</p>
- <pre class="prettyprint lang-config">
-&lt;If "%{HTTP_USER_AGENT} == 'BadBot'"&gt;
+ <pre class="prettyprint lang-config">&lt;If "%{HTTP_USER_AGENT} == 'BadBot'"&gt;
Require All Denied
-&lt;/If&gt;
- </pre>
+&lt;/If&gt;</pre>
<div class="note"><h3>Warning:</h3>
@@ -163,12 +155,10 @@ Require not host gov
<p>For example, if you wish to block access to a resource between 8pm
and 6am, you can do this using <code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code>.</p>
- <pre class="prettyprint lang-config">
-RewriteEngine On
+ <pre class="prettyprint lang-config">RewriteEngine On
RewriteCond %{TIME_HOUR} &gt;=20 [OR]
RewriteCond %{TIME_HOUR} &lt;07
-RewriteRule ^/fridge - [F]
- </pre>
+RewriteRule ^/fridge - [F]</pre>
<p>This will return a 403 Forbidden response for any request after 8pm