Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2007
    Location
    Posadas, Misiones, Argentina
    Posts
    220
    Plugin Contributions
    0

    Default download folder - .htaccess file

    Hi there!

    I was checking a store friend, and I notice that she don't have the file .htaccess in her download folder.

    I ask here about this... and she said don't delete it... and said that she create the download folder.

    I check her files and are available to anyone to download, is not protected.

    My question is: all the .htaccess from the download folders are the same? can I upload my .htaccess from my download folder to her download folder and will work ok?

    thanks in advance...
    URL: http://www.littledreamswarehouse.com/shop
    Zen Version: 1.3.89h
    Zen Template: orange modified

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: download folder - .htaccess file

    If the .htaccess file says this>>>

    Code:
    #prevent directory browsing -- for security
    IndexIgnore */*
    
    AuthType Basic
    AuthName "No access"
    AuthUserFile .htnopasswd
    AuthGroupFile /dev/null
    Require valid-user
    Then use it.

    If not, create a .htaccess file and put the above code into it.
    20 years a Zencart User

  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: download folder - .htaccess file

    Without knowing much more about your server and hers and the contents of the file - can not make a determination

    You can try it and if there is an issue delete it
    Zen-Venom Get Bitten

  4. #4
    Join Date
    Jun 2007
    Location
    Posadas, Misiones, Argentina
    Posts
    220
    Plugin Contributions
    0

    Default Re: download folder - .htaccess file

    thank you very much!
    URL: http://www.littledreamswarehouse.com/shop
    Zen Version: 1.3.89h
    Zen Template: orange modified

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: download folder - .htaccess file

    Look at what Kobra says... Some servers do not work if there is .htaccess file in a directory.

    Please check that your server uses .htaccess.

    (Quick way is to look in other folders for .htaccess files. If they exist in other folders, your server is happy to use them.)
    20 years a Zencart User

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: download folder - .htaccess file

    You could of course also check the original files ... https://www.zen-cart.com/tutorials/i...hp?article=323

    Also, keep in mind that every host configures their server restrictions differently ... so some hosts may disallow the use of some statements in .htaccess files on their server. If you get errors after altering/uploading .htaccess files, you may have to talk to the hosting company to deal with their unique configuration requirements. (This is kinda what kobra was referring to.)
    .

    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.

  7. #7
    Join Date
    Jun 2007
    Location
    Posadas, Misiones, Argentina
    Posts
    220
    Plugin Contributions
    0

    Default Re: download folder - .htaccess file

    very helpfull guys
    thanks a lot!
    URL: http://www.littledreamswarehouse.com/shop
    Zen Version: 1.3.89h
    Zen Template: orange modified

 

 

Similar Threads

  1. COWOA won't allow customer to download file from download folder
    By fawad123 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 18 May 2011, 01:27 PM
  2. .htaccess and download folder
    By trishah in forum Basic Configuration
    Replies: 8
    Last Post: 10 Mar 2009, 11:48 PM
  3. Adding file extensions to .htaccess in download folder
    By ingoito in forum General Questions
    Replies: 0
    Last Post: 28 Jan 2009, 09:11 PM
  4. why i can download file from download folder directly?
    By plonolp in forum General Questions
    Replies: 5
    Last Post: 12 Apr 2007, 11:39 PM

Posting Permissions

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