Jump to content

Backend directory and files being cached in search engines Rate Topic   - - - - -

 

Posted 04 March 2012 - 04:40 AM #1

I recently activated the SEO add-on and the number of pages from my site being cached in search engines increased significantly. However I notice that most of that increase relates to the caching of backend files in the active skins directory.

I have checked and the directory is viewable via web browser and the files (e.g. tpl) in the directory are downloadable. This seems like a potential security issue and at the very least it is pointless having hundreds of pages cached in search engines that do not relate to the front end of the store.

Any thoughts on why this is happening? Is it related to the SEO add-on or might there be another issue causing this?

The skins folder permissions is currently set to 777 which I assume is required for the skins directory and its sub directories? I have also added a robotx.txt Disallow for the skins directory so hopefully that will stop the caching of that sub directory but it still bothers me that it can be browsed without hitting a "forbidden".
CS Cart 2.1.2
Apache version 2.2.21
PHP version 5.3.10

 
  • tbirnseth
  • Senior Member
  • Members
  • Join Date: 08-Nov 08
  • 5,239 posts

Posted 04 March 2012 - 10:56 PM #2

I'd guess you have an .htaccess problem (or missing file) in your skins directory. Your template files should not be visible from a web browser.
EZ Merchant Solutions

Authorized Reseller - Cart licenses: $305 (lowest reseller price)
Custom B2B Development, Consulting and Special Projects (get a quote).
Commercial addons to meet your business and operations needs.

http://www.ez-ms.com

 

Posted 04 March 2012 - 11:33 PM #3

View Posttbirnseth, on 04 March 2012 - 10:56 PM, said:

I'd guess you have an .htaccess problem (or missing file) in your skins directory. Your template files should not be visible from a web browser.

Thanks for the reply tbirnseth, I notice that within my source installation for Cs Cart and even within very recent shop backups that the skins folder has a .htaccess file but not within my active shop! Not sure why this file was missing but after replacing the file the skins folder and sub folders are no longer able to be browsed.

Thanks for the help!
CS Cart 2.1.2
Apache version 2.2.21
PHP version 5.3.10

 

Posted 05 March 2012 - 12:14 AM #4

View PostCosmeticTattooist, on 04 March 2012 - 11:33 PM, said:

Thanks for the reply tbirnseth, I notice that within my source installation for Cs Cart and even within very recent shop backups that the skins folder has a .htaccess file but not within my active shop! Not sure why this file was missing but after replacing the file the skins folder and sub folders are no longer able to be browsed.

Thanks for the help!

Short answer, you upgraded your store.

I am only available for emergency support at the rate of AU$500p/h - Non-negotiable.
Emails that entail performing work will be billed in 15 minute increments.