4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu
Please consider registering: registration is fast, easy and free! Benefits of registration:
  • Free advertising for your website: Every post in our forums goes towards a "credit" of ads, which are displayed on most pages of our forums. Each post gives you 400 ad impressions. To submit your ad, edit your profile.
  • Discount at TemplateMonster: All our members enjoy a 10% discount at TemplateMonster.com!
  • Private Messages: Exchange private messages with other members of the forums.
  • Message Tracking/Subscription: phpBB enables you to subscribe to threads which interest you, and will then email you when a reply is posted. phpBB also remembers which posts registered users have read during a session, which means you can keep track of which posts you have already looked at.

 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 (4 years, 2 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 (2 years, 11 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.

Australian Web Hosting
Australian Web Hosting
PoignantEase
Web design, coding, script installation, phpBB customisation - From a 4WebHelp team member


Page generation time: 0.085244 seconds :: 19 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme