woocommerce for downloadable products (5 posts)

  1. Santosh
    Posted 2 years 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


  2. bondies
    Posted 2 years 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
    Posted 2 years 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
    Posted 2 years 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
    Posted 2 years 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
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic