4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 Help understanding htaccess tutorial
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
sleepuser
Junior WebHelper
Junior WebHelper


Joined: 26 Jul 2010
Posts: 1

PostPosted: Mon Jul 26, 2010 12:00 pm (13 years, 8 months ago) Reply with QuoteBack to Top

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
OfflineView User's ProfileFind all posts by sleepuserSend Personal Message
jkirby
Junior WebHelper
Junior WebHelper


Joined: 13 Oct 2011
Posts: 3

PostPosted: Fri Oct 14, 2011 4:04 am (12 years, 6 months ago) Reply with QuoteBack to Top

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.
OfflineView User's ProfileFind all posts by jkirbySend Personal Message
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




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.124728 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme