osCmax v2.5 User Manual
Results 1 to 5 of 5

Image directory protection

This is a discussion on Image directory protection within the General Topics & Chit Chat forums, part of the Community category; Didn't now where to post a suggestion for future releases of oscmax so I thought I'd drop it here. I ...

      
  1. #1
    New Member
    Join Date
    Apr 2007
    Posts
    27
    Rep Power
    0


    Default Image directory protection

    Didn't now where to post a suggestion for future releases of oscmax so I thought I'd drop it here.

    I think a blank index.php file should be in every image folder especially those that relate to the catalogs.

    I've been doing that to prevent people from browsing the directory on servers that don't prevent it.

    Maybe?

    ~ Jared

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default Re: Image directory protection

    Actually that is wrong. You should be using .htaccess files

    Use one line with:

    Options -Indexes

  3. #3
    New Member
    Join Date
    Apr 2007
    Posts
    27
    Rep Power
    0


    Default Re: Image directory protection

    I try to avoid using HTACCESS files because they have to load by apache each and every time over and over again and they do not cache. I've seen some people on my server with HTACCESS files for rewrites as much as 75kb and they wonder why performance on their site is so slow for dial up customers.

    I personally use blank index.php files because they dont need to load each time, only when needed.

    But you make a valid point.

    ~ Jared

  4. #4
    osCMax Development Team met00's Avatar
    Join Date
    Oct 2005
    Location
    wherever I happen to be at the moment
    Posts
    854
    Blog Entries
    2
    Rep Power
    26


    Default Re: Image directory protection

    better yet.

    EVERY directory should have an index.html that contains
    Code:
    <meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/index.html">
    This ensures that anyone who wants to get to your directories can't, but also ensures that any spyders that show up get redirected to the home page so that it will index properly.
    so endith the lesson
    <think>sometimes I just sit's and thinks</think>
    "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB

  5. #5
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: Image directory protection

    The best way is to have indexes off at the server level - in httpd.conf. A properly configured server is the always best way to go. This precludes the need for .htaccess or index files. There is no reason to ever have directory browsing on for publicly accessible addresses. That is what FTP is for.

    If someone is worried about .htaccess performance hits, their site is either too busy to be using shared hosting or their shared server is way overloaded. The impact of .htaccess is minimal to nil on all but the busiest of sites.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

Similar Threads

  1. Extra contact_us.php Protection
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 05-06-2007, 08:18 PM
  2. Extra contact_us.php Protection
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 02-15-2007, 03:54 AM
  3. Robot Protection V 1.0
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 01-23-2007, 11:59 PM
  4. categorising image directory
    By krazyworld in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 08-18-2005, 02:26 PM
  5. Products image missing popup image
    By islander in forum osCmax v2 Installation issues
    Replies: 7
    Last Post: 08-10-2005, 12:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •