Author Topic: [HOW TO] - Protect your template files from leechers  (Read 6197 times)

inmotion

  • Administrator
  • Hero Member
  • *****
  • Posts: 2788
  • PHPmotion Developer
    • PHPmotion Demo
[HOW TO] - Protect your template files from leechers
« on: January 26, 2008, 09:18:40 PM »
To stop people from stealing your unique template design, simply add a .htaccess file like one below in your /templates folder

Quote

#securing your templates folder
Order deny,allow
Deny from all

# File types for which we make an exception.
<Files ~ "\.(gif|jpg|jpeg|png|css|js|php)$">
    Order allow,deny
    Allow from all
</Files>


ErrorDocument 403 "Sorry can't allow you access today
ErrorDocument 404 http://www.yoursite.com/404.php