WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Downloads are Accessible? (11 posts)

  1. Ocala Website Designs
    Member
    Posted 1 year ago #

    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 texture-pack-001.zip, they would just change the 001 to 002 and have access to a pack they didn't purchase.

    http://www.c4dtexturepacks.com/wp-content/uploads/test-texture-pack.zip

    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.

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

  2. Ocala Website Designs
    Member
    Posted 1 year ago #

    wp-content/uploads/woocommerce_uploads

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

  3. Ocala Website Designs
    Member
    Posted 1 year ago #

    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.)

  4. Ocala Website Designs
    Member
    Posted 1 year ago #

    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?

  5. Ocala Website Designs
    Member
    Posted 1 year ago #

    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
    wp-content/uploads/woocommerce_uploads
    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?

  6. Itookmyprozac
    Member
    Posted 1 year ago #

    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.

  7. Ocala Website Designs
    Member
    Posted 1 year ago #

    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

  8. sardbaba
    Member
    Posted 1 year ago #

    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.

  9. squarecandy
    Member
    Posted 9 months ago #

    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.

  10. romanfischer
    Member
    Posted 8 months ago #

    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,
    Roman

  11. romanfischer
    Member
    Posted 8 months ago #

    ah, solved. My provider resetted the folder rights recursive

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.