miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | 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?

https://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
 Share Topic's Link

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


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑