Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

.htaccess Files

Locked

Started by jayson_gurney on 3 Sep 2006, 9:56 PM · Views: 4,240

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
3 Sep 2006, 9:56 PM
#1
jayson_gurney avatar

jayson_gurney

Zen Follower

Join Date:
May 2006
Location:
UK
Posts:
101
Plugin Contributions:
0

.htaccess Files

Hi folks
I have been looking at the important site security recommendation document athttp://www.zen-cart.com/wiki/index.php/Important_Site_Security_Recommendations

Section 7 of this document mentions the use of .htaccess files to help prevent snooping. I have done a quick search on my zencart build and have listed all the directories that have an blank index.html without a .htaccess file as well.

My question is should i include a basic .htaccess like the one also listed in section 7 along side these blank index.html files.

I have attached a plain txt file with a listing of my finding.

Regards
Jayson

3 Sep 2006, 10:06 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: .htaccess Files

There are many possible approaches depending on your hosting server's configuration. Some allow you to control with a cascading .htaccess file which catches all inappropriate access to all subdirectories, and others do not.

If you are uncertain or cannot get a clear answer from your host, then protect each folder manually. If you are using Windows hosting, don't rely on .htaccess ... use index.html instead, and work with your host to ensure you have the best security settings active in your account (well, as good as IIS can do anyway).

So ... not to pass the buck, but ... do what you have to do for your server. The guidelines are simply guidelines, as no one exact solution will work for everyone, since every host configures their server differently on their own whims (and changes it as they see fit, often without notice).

By the way, you seem to have extra admin folders in your download and media folders for some reason...

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

3 Sep 2006, 10:17 PM
#3
jayson_gurney avatar

jayson_gurney

Zen Follower

Join Date:
May 2006
Location:
UK
Posts:
101
Plugin Contributions:
0

Re: .htaccess Files

DrByte:

By the way, you seem to have extra admin folders in your download and media folders for some reason...
Thanks for pointing that out i guess it must have been a slip of the fingers when uploading or something.