WordPress.org

Forums

WooCommerce - excelling eCommerce
woocommerce for downloadable products (5 posts)

  1. Santosh
    Member
    Posted 1 year ago #

    there is problem with my store my downloaded products are visible to all in wp-content/uploads/2013/month/
    is there any way to hide this so that unauthorized user can't download it

    http://wordpress.org/plugins/woocommerce/

  2. bondies
    Member
    Posted 1 year ago #

    You have two options:

    1. You can put a blank file named index.html / or index.php in that directory.
      Some WordPress Plugins and the Core use an index.php file with just

      <?php // Silence is golden.

      in them

    2. A more secure way is to put a file named .htaccess in the /wp-content/uploads/ directory consisting of only this line:
      Options -indexes
      This way is all sub-directories of this directory will also get their directory listings turned off at once.

    With the .htaccess option instead of giving your users a listing they will get a 403: Forbidden Error

  3. Santosh
    Member
    Posted 1 year ago #

    Thanks for the answer but why woocommerce don't have a settings so that no one can download flies which are for sells.

  4. bondies
    Member
    Posted 1 year ago #

    That is a good question...

    I can only guess that is what the force downloads option of the software is for, this way in theory your raw links shouldn't be exposed, yes even with this option if somebody knows the architecture of the site and has some knowledge of how it works they can easily go searching on their own...

  5. Santosh
    Member
    Posted 1 year ago #

    i am using forced download option. Anyone here can help me

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic