Protect template files
Because of phpBB template structure everyone can easily download template files from your forum's templates directory. It can be used to steal commercial or custom templates.
There is a simple way of preventing this: using apache's mod_rewrite to prevent access to template files.
For phpBB 2.0 to protect your templates you need to create file .htaccess in directory "templates" and put this code in it:
There is a simple way of preventing this: using apache's mod_rewrite to prevent access to template files.
For phpBB 2.0 to protect your templates you need to create file .htaccess in directory "templates" and put this code in it:
Code:
- <Files ~ "\.tpl$">
- Order allow,deny
- Deny from all
- Satisfy All
- </Files>
For phpBB 3.0 to protect your templates you need to create file .htaccess in directory "styles" and put this code in it:
Code:
- <Files ~ "\.html$">
- Order allow,deny
- Deny from all
- Satisfy All
- </Files>
That's all. Now users will not be able to access template files they aren't supposed to access.