[phpBB 2.0, 3.0] How to protect template from being stolen

Tutorials for creation, installation and management of phpBB styles.

Moderator: Moderators

[phpBB 2.0, 3.0] How to protect template from being stolen

Postby PostBot on Wed Jun 01, 2005 9:12 am



This tutorial moved here: how to protect forum template
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Postby LordOfCarma on Sat Jul 30, 2005 3:17 pm

hey thats really cool!

thank you a lot for that!
My fav pages:
Release Dates | Games News
LordOfCarma
Registered User
Registered User
 
Posts: 5
Joined: Sat Jul 30, 2005 3:07 pm

Re: [phpBB 2.0, 3.0] How to protect template from being stol

Postby cavallino on Sun Aug 28, 2005 9:30 pm

[quote user="CyberAlien" post="37519"]Because of phpBB template structure everyone can easily download tpl files from your website. So it can be used to steal commercial or custom templates.

For phpBB 2.0 to protect your templates you need to create file .htaccess in directory "templates" and put this code in it:
Code: Select all
<Files ~ "\.tpl$">
Order allow,deny
Deny from all
Satisfy All
</Files>
[/quote]

Hello, I wanted to protect my template forum (morpheusX) so i followed your suggestion and created this .htaccess file and i put it in templates directory. Well, now when i open my forum it looks weird, i can see only text but no images, no graphics, it doesnt load the template anymore...!
Where am i wrong?
Thanks
cavallino
Registered User
Registered User
 
Posts: 93
Joined: Wed Aug 10, 2005 10:23 pm
Location: Italy

Postby Thatbitextra on Mon Aug 29, 2005 12:02 am

It sounds like you protected the CSS, so it may be more complicated to do it with MorpheusX.
My MODs: [NEW] Choose Who to Accept PMs From (Prevents you from receiving unwanted PMs!) | Warn of Old Topic Before Posting Reply
Style: subBlack (Now updated to phpBB 2.0.22 and 5 new color schemes!)

Please note, I do NOT offer support via PM. It's a forum, so post your question, then everyone can help.
User avatar
Thatbitextra
Moderator
Moderator
 
Posts: 1821
Joined: Thu Mar 24, 2005 1:11 pm
Location: A place where something is or could be located; a site.

Postby UseLess on Mon Aug 29, 2005 12:29 am

Greetings,

I don't know what's wrong but it does work with MorpheusX...

http://forum.custombuiltsoftware.co.uk/ ... x_body.tpl

try clicking that link... you'll be told...'You don't have permission to access /templates/MorpheusX/index_body.tpl on this server'
Movie Quote:
It's not the years honey, it's the mileage...

I do not provide any install services for phpBB, Mods or Styles.
Please do not pm me for support/scripting help - you won't get any reply. If you have a question then make a post in the appropriate forum.
User avatar
UseLess
Registered User
Registered User
 
Posts: 6220
Joined: Mon Sep 27, 2004 2:14 am
Location: North East, UK

Postby cavallino on Mon Aug 29, 2005 5:05 am

[quote user="UseLess" post="48393"]Greetings,

I don't know what's wrong but it does work with MorpheusX...

http://forum.custombuiltsoftware.co.uk/ ... x_body.tpl

try clicking that link... you'll be told...'You don't have permission to access /templates/MorpheusX/index_body.tpl on this server'[/quote]

Yes, from the link you posted it seems that its working properly.. can you tell me which permission you gave to the .htaccess file? I gave it 644.... The file as i reported is inside the folder templates, it is the only file there...then there are the subfolders MorpheusX and subSilver.
Inside the .htaccess file there is only:

<Files ~ "\.tpl$">
Order allow,deny
Deny from all
Satisfy All
</Files>
cavallino
Registered User
Registered User
 
Posts: 93
Joined: Wed Aug 10, 2005 10:23 pm
Location: Italy

Postby UseLess on Mon Aug 29, 2005 11:10 am

Greetings,

Try 755
Movie Quote:
It's not the years honey, it's the mileage...

I do not provide any install services for phpBB, Mods or Styles.
Please do not pm me for support/scripting help - you won't get any reply. If you have a question then make a post in the appropriate forum.
User avatar
UseLess
Registered User
Registered User
 
Posts: 6220
Joined: Mon Sep 27, 2004 2:14 am
Location: North East, UK

Postby cavallino on Wed Aug 31, 2005 9:06 am

Thanks UseLess but the trick unfortunately still doesn't work for me...
probably it is something in my Apache configuration, i'm using a virtual host for the board, maybe i have to specify some options in the httpd.conf file...

Anyway i give up :)
cavallino
Registered User
Registered User
 
Posts: 93
Joined: Wed Aug 10, 2005 10:23 pm
Location: Italy

Postby UseLess on Wed Aug 31, 2005 9:48 am

Greetings,

You using a Linux or Windows host for Apache?

If Windows you may want to check the permissions for IUSR_<machine name>
Movie Quote:
It's not the years honey, it's the mileage...

I do not provide any install services for phpBB, Mods or Styles.
Please do not pm me for support/scripting help - you won't get any reply. If you have a question then make a post in the appropriate forum.
User avatar
UseLess
Registered User
Registered User
 
Posts: 6220
Joined: Mon Sep 27, 2004 2:14 am
Location: North East, UK

Postby webnoobie on Sat Oct 22, 2005 4:40 pm

Hey,

When I tried that, it did not allow any images to appear. :cry:
webnoobie
Registered User
Registered User
 
Posts: 366
Joined: Wed Jun 08, 2005 10:38 pm
Location: My Computer

Postby MrBass on Sat Oct 22, 2005 8:02 pm

Can't get it to work on my site either. :?
MrBass
The heart has reasons that reason cannot know. --Pascal

Pete's Place | Pete's Forum
Latest MOD: File Upload Manager Installation guide coming soon...
User avatar
MrBass
Moderator
Moderator
 
Posts: 711
Joined: Thu Feb 17, 2005 2:06 pm
Location: Pete's Place

Postby PostBot on Sat Oct 22, 2005 8:19 pm

Then you ether put wrong code in .htaccess or your server doesn't support htaccess files.
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Postby MrBass on Sat Oct 22, 2005 11:20 pm

Must be the latter as I don't make mistakes! ;)
MrBass
The heart has reasons that reason cannot know. --Pascal

Pete's Place | Pete's Forum
Latest MOD: File Upload Manager Installation guide coming soon...
User avatar
MrBass
Moderator
Moderator
 
Posts: 711
Joined: Thu Feb 17, 2005 2:06 pm
Location: Pete's Place

Postby katiedrop on Thu Oct 05, 2006 6:29 pm

Just a question,

Would that work in any forum software?
User avatar
katiedrop
Registered User
Registered User
 
Posts: 10
Joined: Wed Oct 04, 2006 8:12 am

Postby DooBDee on Thu Oct 05, 2006 7:25 pm

Will work on any piece of code in any directory for any file your decide to protect :) Providing you run Apache on web server :)
DooBDee
Website Ninja
DooBDee.net
User avatar
DooBDee
Moderator
Moderator
 
Posts: 3530
Joined: Tue Mar 01, 2005 6:28 pm
Location: DooBDee.net

Next

Return to phpBB Styles Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests