Thread: Blocking access

Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2007
    Posts
    83
    Plugin Contributions
    0

    Default Blocking access

    Hi guys, I am trying to block access to my folders, for example; If I go to: www.creativasales.com/download/ you still have access but you are unable to see the files, what I want is to block the access to all my folders, including "download". I had setup .httaccess but that's not enough for folders, how to do that?
    Also if someone know how to block the access to softwares like "Offline Explorer Enterprise" which allow anyone to download an entire website and this can be dangerous business for anyone who have a download store and someone is downloading for free your products, thanks!

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Blocking access

    I think you are being overly zealous. The program can only download the html that a browser sees. It can not get your php files.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Blocking access

    you should also be able to move your downloads folder above the root.

    would require changes to the configure.php files
    in the includes/configure.php change

    Code:
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
      define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
    to

    Code:
    define('DIR_FS_DOWNLOAD', '/home/username/download/');
      define('DIR_FS_DOWNLOAD_PUBLIC', '/home/username/pub/');
    and in the admin/includes/configure.php

    change

    Code:
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

    to

    Code:
    define('DIR_FS_DOWNLOAD', '/home/username/download/');
    this will let the admin verify the file is in place and you get the little green light



    * replace /home/username/ with your actual server paths.....
    Zen cart PCI compliant Hosting

  4. #4
    Join Date
    Jul 2007
    Posts
    83
    Plugin Contributions
    0

    Default Re: Blocking access

    thank you guys, what I did was to add "RewriteEngine on
    RewriteRule ^(.*)$ - [F] " into the .httaccess inside of "download" and problem fixed!

 

 

Similar Threads

  1. v139h blocking spiders
    By stitchnkitty in forum General Questions
    Replies: 6
    Last Post: 25 Aug 2012, 03:31 PM
  2. Blocking an IP Address
    By 4kidz in forum General Questions
    Replies: 2
    Last Post: 10 Dec 2009, 11:46 PM
  3. htaccess help - blocking access to robots.txt
    By spid3r1987 in forum General Questions
    Replies: 0
    Last Post: 6 Oct 2009, 09:35 AM
  4. Blocking an IP Addy
    By jimwsr65 in forum General Questions
    Replies: 6
    Last Post: 15 Jul 2006, 08:59 AM

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