Jump to content

Prevent access to directories using .htaccess


MemphiS

Recommended Posts

first off... u have to specify what type of files... and it all has to be within the <files> or as preferred <filesmatch> construct

 

<FilesMatch "^\.ht">

    Order allow,deny

    Deny from all

</FilesMatch>

 

that will block all access to and file starting with .ht

 

example: .htaccess

 

i suggest you start reading the manual on the apache.org website...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.