Jump to content

all my templates can be downloaded if requested directly!


nas2013

Recommended Posts

Hi ,

 

I noticed that if I visit the following link as an example:

 

http://xxxxxxxx.com/templates/portal/footer.tpl

 

the template can be downloaded,this is hapening in all my templetes even though the file permissions ar 644.

I open a support ticket to help prevent that and they said I need to put in an .htaccess file.

can some please inform me what code should I put inside the htaccess file to prevent downloading my template files without effecting my whmcs from runing?

 

thanks in advance,

Link to comment
Share on other sites

Hi ,

 

I noticed that if I visit the following link as an example:

 

http://xxxxxxxx.com/templates/portal/footer.tpl

 

the template can be downloaded,this is hapening in all my templetes even though the file permissions ar 644.

I open a support ticket to help prevent that and they said I need to put in an .htaccess file.

can some please inform me what code should I put inside the htaccess file to prevent downloading my template files without effecting my whmcs from runing?

 

thanks in advance,

 

644 doesn't protect your files from being accessed

 

My suggestion, put these 2 lines in a .htaccess and upload them to /templates/portal/

 

order deny,allow
deny from all

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated