Sie sind auf Seite 1von 1

Isaiah Hall

Blk 4.

The Web Book Test


1. Most web sites are openly available to anyone who knows, or finds, the URL.
2.
1. If you run the web site for a club or a school, youll want to restrict certain
areas to members or students only.
2. Or perhaps your site contains information that has a value, such as
documents or pictures, and you need to ensure that its only viewable to
your paying customers.
1. Password-protecting one or more areas on your web site is actually a fairly
easy task to accomplish, because theres a facility built into most web
servers.
2. The first file, .htaccess, contains some special commands for the web server
which basically say "please dont show anyone the pages in this folder unless
they enter a correct username and password.
3. The other main use for a .htaccess file is password protection. For such
purposes, the file needs to look something like this:
AuthType Basic
AuthName "test"
AuthUserFile "/home/thewebbo/.htpasswds/.htpasswd"
require valid-user
4. To start password-protecting your web site, use FileZilla to create a new folder
on the site, within public_html, called private.
5. .htaccess file is used to tell the web server where the list of usernames and
passwords is.
6. To find a way of encrypting passwords in the correct way, ie the way that web
servers expect. There are lots of programs that are capable of doing it, which
you can download from the internet for free. Even easier, there are websites
that will do the encryption for you.
7. If you want to protect more than one folder on your site, but you want to use
the same set of usernames and passwords just put a copy of the same
.htaccess file in each of the folders, which all point to the same .htpasswd file
8. If you using different set of usernames and passwords then each protected
folder will need its own .htaccess file, which points to a unique .htaccess file.

Das könnte Ihnen auch gefallen