Stop Downloaded from Upload folder?

Discussion in 'WordPress' started by TheSyndicate, Jan 5, 2013.

  1. #1
    How can i stop people from accessing

    wp-content/uploads/woocommerce_uploads/

    I am offering some pdf for sale and i do not want users to be able to go to this site and downloaded them direct.
     
    TheSyndicate, Jan 5, 2013 IP
  2. Devtard

    Devtard Notable Member

    Messages:
    850
    Likes Received:
    133
    Best Answers:
    4
    Trophy Points:
    220
    #2
    Well, if this page contains links to all files in the directory, simply upload an empty file called "index.html".

    But I guess that the question is "How to prevent people from downloading the file if they didn't pay you?". In this case I would assign unique keys (file.php?key=xyz) to the file which will be given to buyers only in order to download the file. I read about a plugin that can do that but unfortunately I forgot it's name. :)

    I googled and found this:
    http://wordpress.org/extend/plugins/easy-digital-downloads/
    http://wordpress.org/extend/plugins/paid-downloads/
     
    Last edited: Jan 5, 2013
    Devtard, Jan 5, 2013 IP
  3. RiotMan

    RiotMan Active Member

    Messages:
    342
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    85
    #3
    yup, use index.html and .htacess to protect the folder.

    .htacess
    order allow,deny
    deny from all
     
    RiotMan, Jan 5, 2013 IP