implemented by <codeclass="module"><ahref="../mod/mod_auth_basic.html">mod_auth_basic</a></code>. It is important to be aware,
however, that Basic authentication sends the password from the client to
the server unencrypted. This method should therefore not be used for
highly sensitive data. Apache supports one other authentication method:
<code>AuthType Digest</code>. This method is implemented by <codeclass="module"><ahref="../mod/mod_auth_digest.html">mod_auth_digest</a></code> and is much more secure. Only the most recent
versions of clients are known to support Digest authentication.</p>
highly sensitive data, unless accompanied by <codeclass="module"><ahref="../mod/mod_ssl.html">mod_ssl</a></code>.
Apache supports one other authentication method:
<code>AuthType Digest</code>. This method is implemented by <codeclass="module"><ahref="../mod/mod_auth_digest.html">mod_auth_digest</a></code> and is much more secure. Most recent
the <dfn>Realm</dfn> to be used in the authentication. The realm serves
@@ -212,6 +229,12 @@ module from each group.</p>
will always need to ask again for the password whenever the
hostname of the server changes.</p>
<p>The <codeclass="directive"><ahref="../mod/mod_auth_basic.html#authbasicprovider">AuthBasicProvider</a></code> is,
in this case, optional, since <code>file</code> is the default value
for this directive. You'll need to use this directive if you are
choosing a different source for authentication, such as
<codeclass="module"><ahref="../mod/mod_authn_dbm.html">mod_authn_dbm</a></code> or <codeclass="module"><ahref="../mod/mod_auth_dbd.html">mod_auth_dbd</a></code>.</p>
hand-in-hand with these two, and tells Apache in which order to
apply the filters.</p>
<p>The usage of these directives is:</p>
<divclass="example"><p><code>
Allow from <var>address</var>
</code></p></div>
<p>where <var>address</var> is an IP address (or a partial IP
address) or a fully qualified domain name (or a partial domain
name); you may provide multiple addresses or domain names, if
desired.</p>
<p>For example, if you have someone spamming your message
board, and you want to keep them out, you could do the
following:</p>
<divclass="example"><p><code>
Deny from 205.252.46.165
</code></p></div>
<p>Visitors coming from that address will not be able to see
the content covered by this directive. If, instead, you have a
machine name, rather than an IP address, you can use that.</p>
<divclass="example"><p><code>
Deny from <var>host.example.com</var>
</code></p></div>
<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>
<divclass="example"><p><code>
Deny from <var>192.101.205</var><br/>
Deny from <var>cyberthugs.com</var><var>moreidiots.com</var><br/>
Deny from ke
</code></p></div>
<p>Using <codeclass="directive"><ahref="../mod/mod_authz_host.html#order">Order</a></code> will let you
be sure that you are actually restricting things to the group that you want
to let in, by combining a <codeclass="directive"><ahref="../mod/mod_authz_host.html#deny">Deny</a></code> and an <codeclass="directive"><ahref="../mod/mod_authz_host.html#allow">Allow</a></code> directive:</p>
<divclass="example"><p><code>
Order deny,allow<br/>
Deny from all<br/>
Allow from <var>dev.example.com</var>
</code></p></div>
<p>Listing just the <codeclass="directive"><ahref="../mod/mod_authz_host.html#allow">Allow</a></code>
directive would not do what you want, because it will let folks from that
host in, in addition to letting everyone in. What you want is to let
<codeclass="module"><ahref="../mod/mod_auth_basic.html">mod_auth_basic</a></code> and <codeclass="module"><ahref="../mod/mod_authz_host.html">mod_authz_host</a></code> which
contain some more information about how this all works.
<codeclass="module"><ahref="../mod/mod_authn_alias.html">mod_authn_alias</a></code> can also help in simplifying certain
authentication configurations.</p>
<p>And you may want to look at the <ahref="access.html">Access
Control</a> howto, which discusses a number of related topics.</p>