diff options
Diffstat (limited to 'docs/manual/howto/access.html.en')
-rw-r--r-- | docs/manual/howto/access.html.en | 34 |
1 files changed, 12 insertions, 22 deletions
diff --git a/docs/manual/howto/access.html.en b/docs/manual/howto/access.html.en index 95d457fc..b93af0f6 100644 --- a/docs/manual/howto/access.html.en +++ b/docs/manual/howto/access.html.en @@ -9,7 +9,7 @@ <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" /> -<script src="../style/scripts/prettify.js" type="text/javascript"> +<script src="../style/scripts/prettify.min.js" type="text/javascript"> </script> <link href="../images/favicon.ico" rel="shortcut icon" /></head> @@ -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"> -<RequireAll> + <pre class="prettyprint lang-config"><RequireAll> Require all granted Require not ip 10.252.46.165 -</RequireAll> -</pre> +</RequireAll></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"> -<If "%{HTTP_USER_AGENT} == 'BadBot'"> + <pre class="prettyprint lang-config"><If "%{HTTP_USER_AGENT} == 'BadBot'"> Require All Denied -</If> - </pre> +</If></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} >=20 [OR] RewriteCond %{TIME_HOUR} <07 -RewriteRule ^/fridge - [F] - </pre> +RewriteRule ^/fridge - [F]</pre> <p>This will return a 403 Forbidden response for any request after 8pm @@ -218,7 +208,7 @@ var comments_identifier = 'http://httpd.apache.org/docs/2.4/howto/access.html'; } })(window, document); //--><!]]></script></div><div id="footer"> -<p class="apache">Copyright 2013 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="apache">Copyright 2014 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!-- if (typeof(prettyPrint) !== 'undefined') { prettyPrint(); |