Prevent people from viewing your .tpl files

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 01-16-2007, 10:05 AM
New Pligger
 
Join Date: Jan 2007
Posts: 13
Send a message via Skype™ to SeanW
I was browsing through my list of 404 errors and found that some people were reading my template files directly. While there's nothing serious in it, it's not something I want to give up.

.htaccess in the template dir:

Code:
<files ~ "\.tpl$">
order deny,allow
allow from none
deny from all
</files>
Reply With Quote
  #2 (permalink)  
Old 01-16-2007, 10:35 AM
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
Cool. Added this to Pligg.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
php in .tpl files boardsource Questions and Comments 3 03-17-2007 09:18 PM
.tpl files & smarty codes explained 3dKiller Questions and Comments 0 04-11-2006 02:52 PM
new template tips & questions Book-Bee Questions and Comments 9 04-05-2006 10:25 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development