nas2013 Posted October 13, 2013 Share Posted October 13, 2013 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, 0 Quote Link to comment Share on other sites More sharing options...
Walter Blanco Posted October 13, 2013 Share Posted October 13, 2013 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 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 13, 2013 Share Posted October 13, 2013 if you have a main .htaccess, you can add the following to block the download of tpl files. <Files ~ "\.tpl$">Order allow,deny Deny from all </Files> 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.