Dragonfly CMS v9 ⇒ Themes v9 ⇒ Direct Access To Template Files.. ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexThemes v9

Direct Access To Template Files.. Reply to topic

Does it bother anyone that their theme can be ripped / templates viewed very easily?


Add a .htaccess file to every directory under themes/{your_theme}/templates/
containing this:

order deny allow deny from all

This still allows the template to be loaded, yet prevents direct access.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Windows 8 / Apache: 2.2.24 / MySQL: 5.1.71 / PHP: 5.4.17 / Dragonfly: LATEST VERSION

All times are UTC

Jump to: