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

Direct Access To Template Files.. Reply to topic


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

Example...
dragonflycms.org/theme..._body.html

Solution..
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: