deny file access with htaccess

On my dev site I've tried adding the following code to the root htaccess file to deny "public" access to certain file types...

<FilesMatch "\.(bak|config|sql|fla|psd|ini|log|sh|inc|~|swp)$">
    Order allow,deny
    Deny from all
    Satisfy All
</FilesMatch>

My initial testing shows it works as I'd hoped, e.g. blocking access to install/uninstall SQL files.  Has anyone considered or done anything similar and found issues that require removing some of the file type extensions?

TIA

http://pkforum.dolphinhelp.com
Quote · 15 Jun 2014

 Does this stop external access to join.php?

On my dev site I've tried adding the following code to the root htaccess file to deny "public" access to certain file types...

<FilesMatch "\.(bak|config|sql|fla|psd|ini|log|sh|inc|~|swp)$">
    Order allow,deny
    Deny from all
    Satisfy All
</FilesMatch>

My initial testing shows it works as I'd hoped, e.g. blocking access to install/uninstall SQL files.  Has anyone considered or done anything similar and found issues that require removing some of the file type extensions?

TIA

 

There are none so blind as those that will not see.
Quote · 15 Jun 2014

 No, it would just stop access to files ending in the extensions he listed. 

 

 Does this stop external access to join.php?

On my dev site I've tried adding the following code to the root htaccess file to deny "public" access to certain file types...

<FilesMatch "\.(bak|config|sql|fla|psd|ini|log|sh|inc|~|swp)$">
    Order allow,deny
    Deny from all
    Satisfy All
</FilesMatch>

My initial testing shows it works as I'd hoped, e.g. blocking access to install/uninstall SQL files.  Has anyone considered or done anything similar and found issues that require removing some of the file type extensions?

TIA

 

 

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 15 Jun 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.