• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 517
  • Last Modified:

htaccess - block access to a certain file type

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
1 Solution
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now