Support » Plugin: WooCommerce » Downloads are Accessible?

  • Ocala Website Designs


    I to added a downloadable product and copied the file path and found that the downloadable product can be downloaded without logging in or even if it wasn’t and can be downloaded even if maintenance mode is activated… If I have all my file names are similar, they would be able to guess all the files offered. I’m using the Force Download method and am checking to see if the XSendfile is on my server but no matter what I select it seems that the file path is accessible… I would think that it would protect the main file and auto-name random names for each purchase or something right?

    My site is in maintenance mode and this test file can be downloaded … if all packs are named, they would just change the 001 to 002 and have access to a pack they didn’t purchase.

    When I do a check on your Apache modules I see this:

    [root@vps1 ~]# httpd -L | grep -i send
    EnableSendfile (core.c)
    Controls whether sendfile may be used to transmit files
    whether or not to send a Content-MD5 header with each request
    ProxySCGISendfile (mod_proxy_scgi.c)
    The name of the X-Sendfile peudo response header or On or Off
    SendBufferSize (prefork.c)
    Send buffer size in bytes

    Will those provide the functionality I need XSendFile? I have XSendFile currently selected.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Ocala Website Designs



    I also noticed that the download is NOT going to this woocommerce folder, where their is an .htaccess file.

    Ocala Website Designs


    The file path and file are both accessible in the uploads directory so anyone can just directly download your digital file you are selling? There is no protection at all for your file. Can someone tell me how to correct this?

    (The files in the above example have been removed but I the problem is still the same.)

    Ocala Website Designs


    Is there a reason no one is answering my question, i’m sure it’s been asked before I just want to make sure the download i’m selling isn’t easily nabbed from the file path as it seems it is wide open for download. Are you supposed to use a .htaccess in that directory? Are the downloads supposed to be going into the main uploads or are they supposed to go into the woocommerce_uploads or are you supposed to sftp them manually instead of using the browse button on the product?

    Ocala Website Designs


    Neverwoo, and thanks for the woohelp. I think I have woo’d it, which is woo-smurf-tastic.

    Downloadable products should be put in the
    folder which has an .htaccess in it that has deny all set.

    For some reason, the plugin, when uploading from within wordpress, puts the download file in the uploads folder and not the one mentioned above.

    I deleted the one file I uploaded from within wordpress and manually uploaded the file to the other folder and reset the link in the product. Everything seems to be working.

    Does this sound right woo techs?

    are you supposed to sftp them manually instead of using the browse button on the product?

    I’ve done this and the downloads are now protected. The absolute link doesn’t work if you try to download the file directly: “You don’t have permission to access…”.

    Now I have to try if the file is still available for the customer who has purchased the file… I hope so!

    Good luck, Ocala.

    Ocala Website Designs


    All the links seem to work properly from the ‘my account’ as well as the email when I uploaded the file manually to the woocommerce_uploads folder and then manually edited the link to match that location. It doesn’t appear that the file can be grabbed from the direct link as it has a .htaccess in that folder. I just don’t understand why the upload button in the product area didn’t upload to that folder in the first place …

    Same to woo itookmyprozac! lol

    yep, I knew how to do a right usage of the woocommerce_upload folder thanks to this post (it’s probably the only post which talks about this issue).
    The upload button should be add the ability to put and grab files from this folder, else doing this manually can provoke some mistakes.
    Anyway, thanks Ocala and Itmp for this post.

    This seems to be solved in the current version. The “Choose a file” button puts uploads straight into the woocommerce_upload folder and is properly protected.

    This whole thing doesn’t work for me.

    I can neither upload files via the plugin to woocommerce_upload nor via ftp because there is this htaccess file in it, which I can not delete. Damn!!!

    Any help highly appreciated,

    ah, solved. My provider resetted the folder rights recursive

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Downloads are Accessible?’ is closed to new replies.