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
Registered
#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:

 ?
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.


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
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB