From 1588b2f7ee1e2394c20a386434415744960ec0e5 Mon Sep 17 00:00:00 2001
From: Chris Pepper This article covers the "standard" way of protecting parts
of your web site that most of you are going to use. The directives discussed in this article will need to go
@@ -112,8 +112,8 @@
kept. This should not be terribly difficult, and I'll try to
make this clear when we come to that point. Here's the basics of password protecting a directory on your
server.Authentication
+ Authentication
@@ -81,7 +81,7 @@
The
+
The
prerequisites
Getting it working
+ Getting it working
require
directive.
The directives above only let one person (specifically
@@ -287,7 +287,7 @@
files, and remember to reference th right one in the
AuthUserFile
directive.
Because of the way that Basic authentication is specified, @@ -308,8 +308,8 @@ get above a few hundred entries, and may wish to consider a different authentication method at that time.
-Authentication by username and password is only part of the @@ -319,10 +319,9 @@
The allow
and deny
directives let
you allow and deny access based on the host name, or host
- address, of the machine requesting a document. The directive
- goes hand-in-hand with these is the order
- directive, which tells Apache in which order to apply the
- filters.
order
directive goes hand-in-hand with these two,
+ and tells Apache in which order to apply the filters.
The usage of these directives is:
@@ -331,7 +330,8 @@where address is an IP address (or a partial IP address) or a fully qualified domain name (or a partial domain - name).
+ name); you may provide multiple addresses or domain names, if + desired.For example, if you have someone spamming your message board, and you want to keep them out, you could do the @@ -341,7 +341,7 @@
Visitors coming from that address will not be able to see - the content behind this directive. If, instead, you have a + the content covered by this directive. If, instead, you have a machine name, rather than an IP address, you can use that.
deny from host.example.com @@ -351,7 +351,7 @@ you can specify just part of an address or domain name:deny from 192.101.205 - deny from cyberthugs.com + deny from cyberthugs.com moreidiots.com deny from ke@@ -370,7 +370,7 @@ addition to letting everyone in. What you want is to let only those folks in. -More +
More information
You should also read the documentation for
--
Authentication
+Authentication
- Introduction
-- The prerequisites
+- The prerequisites
-- Getting it working
+- Getting it working
-- Letting more +
- Letting more than one person in
-- Possible problems
+- Possible problems
-- What other neat +
- What other neat stuff can I do?
-- More information
+- More information
@@ -81,7 +81,7 @@This article covers the "standard" way of protecting parts of your web site that most of you are going to use.
-The +
The prerequisites
The directives discussed in this article will need to go @@ -112,8 +112,8 @@ kept. This should not be terribly difficult, and I'll try to make this clear when we come to that point.
-Getting it working
+Getting it working
Here's the basics of password protecting a directory on your server.
@@ -221,8 +221,8 @@ server. In the next section, we discuss various ways to use therequire
directive.Letting more than one +
Letting more than one person in
The directives above only let one person (specifically @@ -287,7 +287,7 @@ files, and remember to reference th right one in the
-AuthUserFile
directive.Possible +
Possible problems
Because of the way that Basic authentication is specified, @@ -308,8 +308,8 @@ get above a few hundred entries, and may wish to consider a different authentication method at that time.
-What other neat stuff can +
What other neat stuff can I do?
Authentication by username and password is only part of the @@ -319,10 +319,9 @@
The
+ address, of the machine requesting a document. The +allow
anddeny
directives let you allow and deny access based on the host name, or host - address, of the machine requesting a document. The directive - goes hand-in-hand with these is theorder
- directive, which tells Apache in which order to apply the - filters.order
directive goes hand-in-hand with these two, + and tells Apache in which order to apply the filters.The usage of these directives is:
@@ -331,7 +330,8 @@where address is an IP address (or a partial IP address) or a fully qualified domain name (or a partial domain - name).
+ name); you may provide multiple addresses or domain names, if + desired.For example, if you have someone spamming your message board, and you want to keep them out, you could do the @@ -341,7 +341,7 @@
Visitors coming from that address will not be able to see - the content behind this directive. If, instead, you have a + the content covered by this directive. If, instead, you have a machine name, rather than an IP address, you can use that.
deny from host.example.com @@ -351,7 +351,7 @@ you can specify just part of an address or domain name:deny from 192.101.205 - deny from cyberthugs.com + deny from cyberthugs.com moreidiots.com deny from ke@@ -370,7 +370,7 @@ addition to letting everyone in. What you want is to let only those folks in. -More +
More information