Jump to content

.htaccess <FilesMatch>


the_oliver

Recommended Posts

Hello,

 

I would like to be able to use the following to secure a 777 file a little:

 

<FilesMatch "\.(inc|php)$">
deny from all
</FilesMatch>
<FilesMatch "\.(inc|htm)$">
deny from all
</FilesMatch>
<FilesMatch "\.(inc|html)$">
deny from all
</FilesMatch>

 

I don't want to have to put the .htaccess file in the 777 folder as it would defeat the purpose a little.  How would i go about changing the FileMatch pattern to be acting on a different directory?

 

Thank you!

Link to comment
https://forums.phpfreaks.com/topic/219587-htaccess/
Share on other sites

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.