15 years on The Web
miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /   

Protecting CSS and Templates from the direct download

Author Prince
Partaker
#1 | Posted: 27 Aug 2011 23:36 
How to stop people downloading the actual content of forum like "CSS" or "Templates" files?

Is there any way to stop seeing actual content of Templates, f.e. Main Header by following this address?

http://www.minibb.com/forums/templates/main_header.html

on this by viewing source also available.

Thanks,

Author Paul
Lead Developer
#2 | Posted: 29 Aug 2011 12:37 
Regarding CSS/JS files, there is no way. The browser should "download" your content the same way as any other program does. So it can't be "protected from web", else nobody will access it :)

Regarding templates folder, you can protect it by the .htaccess file, I think. For example, put under /templates/.htaccess:

<Files ~ "\.html|\.htaccess">
order allow,deny
deny from all
</Files>

I just did it for our forums, and it works.

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications / Protecting CSS and Templates from the direct download Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

 ?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB