|
Author |
Message |
sleepuser
Junior WebHelper

Joined: 26 Jul 2010
Posts: 1
|
Posted:
Mon Jul 26, 2010 12:00 pm (14 years, 7 months ago) |
  |
Please can you tell me how the Protecting Individual files part of the tutorial http://www.4webhelp.net/tutorials/misc/htaccess.php works.
i.e.
Protecting individual files
You may wish to protect a single file in a directory. To do this, set up the .htaccess file like this:
AuthName "Realm Name"
AuthType Basic
AuthUserFile /.htpasswd
Allow From All
<Files file.xxx>
Deny From All
</Files>
This would password protect file.xxx only.
Why doesn't this need a Require directive?
Why isn't there an Order directive (is it because order deny,allow is implicit as it is default? or is there another reason?)
Thanks |
|
|
    |
 |
jkirby
Junior WebHelper

Joined: 13 Oct 2011
Posts: 3
|
Posted:
Fri Oct 14, 2011 4:04 am (13 years, 5 months ago) |
  |
I remember a game from the playstation 3 that had a big problem because they forgot to add a htcaccess on their web site, releasing more than a million of game codes out on the open. Though they were able to get back with the codes, banning those which were released and subsequently used, they could have avoided it with just a few steps. So I can guarantee that learning this will really be beneficial. |
|
|
    |
 |
|
|
You cannot post new topics in this forum. You cannot reply to topics in this forum. You cannot edit your posts in this forum. You cannot delete your posts in this forum. You cannot vote in polls in this forum.
|
Page generation time: 0.109784 seconds :: 17 queries executed :: All Times are GMT
Powered by phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme
| |