SD is recommending we hide certain files like *.fil, *.session etc by using the .htaccess file. I've been sent this code template for that:
>>>>>For example, if you want to block config.inc.php and config_smtp.inc.php, you can use something like this:
<FilesMatch "^(config\.inc\.php|config_smtp\.inc\.php)$">
Order allow,deny
Deny from all
</FilesMatch>
As I'm not a developer I wanted to check with those who know that this will work with SD18. Any other more SD-friendly code welcomed.
Thanks
>>>>>For example, if you want to block config.inc.php and config_smtp.inc.php, you can use something like this:
<FilesMatch "^(config\.inc\.php|config_smtp\.inc\.php)$">
Order allow,deny
Deny from all
</FilesMatch>
As I'm not a developer I wanted to check with those who know that this will work with SD18. Any other more SD-friendly code welcomed.
Thanks
Comment