Вы находитесь на странице: 1из 1

The Web Book

Lusiana Medina
2-9-16/ Block: 3

Unit 11 Test
1. Anyone.
2. "If you run the web site for a club or a school, youll want to restrict certain
areas to members or students only. 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."
3. "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. You dont even need to do any programming."
4. "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."
5. AuthType Basic AuthName "test" AuthUserFile
"/home/thewebbo/.htpasswds/.htpasswd" require valid-user
6. FileZilla
7. "A .htpasswd file is merely a text file of usernames and passwords, with each
pair on a separate line and with a colon between the usernames and
passwords."
8. Through the encryption algorithm.
9. " If you want to use the same set of usernames and passwords for all of the
protected folders, just put a copy of the same .htaccess file in each of the
folders, which all point to the same .htpasswd file."
10."If you want to use different usernames and passwords, then each protected
folder will need its own .htaccess file, which points to a unique .htaccess file.
In the case of Hostmonster, those files must all reside in the .htpasswds
folder, but the name of the file itself can vary. So you could, for example,
have separate files called .htpasswd1, .htpasswd2 and so on, pointed to by
complementary .htaccess files."

Вам также может понравиться