?
Solved

htaccess - block access to a certain file type

Posted on 2009-04-21
1
Medium Priority
?
513 Views
Last Modified: 2012-06-27
Hi all,

I would like to block access to a certain file type on my site.  I know it's bad practice but I *do* have a few .bak, .edit, files dotted around important directories, especially those with public content.  These of course are not parsed by the site and can be read by anyone.

Can anyone point me to a decent link explaining this?

Ideally the htaccess file should apply to all subdirectories below it.  Otherwise I'll have to enter it at each directory level.  This is fine, but I bet there is better way.

Many Thanks
0
Comment
Question by:chriscounter07
1 Comment
 

Accepted Solution

by:
qnstie earned 500 total points
ID: 24195865
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
The viewer will learn how to dynamically set the form action using jQuery.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses
Course of the Month16 days, 1 hour left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question