PDA

View Full Version : [MOD] Template Folder Security


gb
12-13-2005, 01:30 PM
Unfortunately Smarty makes it possible to read the .tpl files in your templates folder by direct access in your browser. I would recommend adding a .htaccess file to the templates folder with the following content:


<Files ~ "\.(tpl|inc|cfg)$">
order deny,allow
deny from all
</files>


Now you will get a 403 denied error.

Greetings,
gb

Simon Gooffin
12-14-2005, 04:17 AM
thanks :) already in default version

gb
12-14-2005, 07:31 AM
hmmm.... i didn't see it in either of the versions. do mean you will add it?

Simon Gooffin
12-14-2005, 07:54 AM
I mean I added it to my local future version. Next both version will be released with this .htaccess file

gb
12-14-2005, 09:03 AM
i see :wink:

Simon Gooffin
12-14-2005, 10:00 AM
I'm sure lots of our customers will create .htaccess.. I'd highly recommend to do this. Taking in account hacking attack in this month

vkaryl
12-14-2005, 03:48 PM
Done. Thanks Gerwin!