Support » Plugin: WooCommerce » downloadable file outside site root not working

  • So recently I discovered that the files I am selling on my site could be accessed by typing in the direct path to the file as a url. Obviously this is a problem when people can access is without paying. With a little research I have found that one way to prevent this is to put the file outside the site root directory. I have attempted to do this but each time I try to download the file (through the force download setting) the file is not downloaded and I am redirected to the page example.com/home/user/public_html/home/user/downloads/exapmple_doc.pdf as an example. the path I originaly entered was example.com/home/user/downloads/example_doc.pdf. I was wondering if anyone had run into this problem or has a solution for it? all help is greatly appreciated! I have spent a lot of time trying to figure this out but have been unsuccessful.

    https://wordpress.org/plugins/woocommerce/

  • The topic ‘downloadable file outside site root not working’ is closed to new replies.