jmccole83
3/23/2018 - 12:18 PM

Disable Files From Direct Access

Add the below snippet to .htaccess to prevent access to them.

#Protect some files from direct access
<FilesMatch "^(wp-config\.php|php\.ini|php5\.ini|install\.php|php\.info|readme\.html|bb-config\.php|\.htaccess|readme\.txt|timthumb\.php|error_log|error\.log|PHP_errors\.log|\.svn)">
Deny from all
</FilesMatch>