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

Unit 9.11 pgs.

113-117
The Web Book

Test
Noemi Maravilla

Unit 9.11 Test


The Web Book
Test

1.

Most web sites are openly available to who?

anyone who knows, or finds, the URL.

Unit 9.11 Test


The Web Book
Test

2. List 3 examples of when a person might want


to password protect a web site
if you run the web site for a club or a school,
and you need to ensure that its only viewable to your paying
customers.
perhaps your site contains information that has a value,

Unit 9.11 Test


The Web Book
Test

3. Why is Password-protecting one or more areas on your


web site is actually a fairly easy task to accomplish?
It is fairly because theres a facility built into most web servers.

Unit 9.11 Test


The Web Book
Test

4. What does the first file, .htaccess, contain?


The first file, .htaccess, contains some special commands for
the web server

Unit 9.11 Test


The Web Book
Test

5. The other main use for a .htaccess file is


password protection. For such purposes, the
file needs to look something like this: ?
please dont show anyone the pages in this folder unless they
enter a correct username and password

Unit 9.11 Test


The Web Book
Test

6. To start password-protecting your web site,


use _ FileZilla __ to create a new folder on
the site, within public_html, called private. ?

Unit 9.11 Test


The Web Book
Test

7. What is A .htpasswd file ?


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 password

Unit 9.11 Test


The Web Book
Test

8. How will you find a way of encrypting passwords in the


correct way, ie the way that web servers expect?
All that remains, therefore, before you can create a proper
.htaccess file, is for you to find a way of encrypting passwords
in the correct way, ie the way that web servers expect

Unit 9.11 Test


The Web Book
Test

9. How can you protect more than one folder on your site?
just put a copy of the same .htaccess file in each of the folders,
which all point to the same .htpasswd file
If you want to use different usernames and passwords, then each
protected folder will need its own .htaccess file

Unit 9.11 Test


The Web Book
Test

10. How you want to use different usernames and


passwords?
So you could, for example, have separate files called
.htpasswd1, .htpasswd2 and so on, pointed to by
complementary .htaccess files.

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