The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Hiding download directory (4 posts)

  1. fatcomet
    Posted 3 years ago #

    I have a pdf file (Download Button) on my wordpress site.

    When you click on the link to download the file, the directory shows up in the address bar when the file downloads

    Is there a way to hide the directory?

    I do not want people to see the directory where the file is located.


  2. Rev. Voodoo
    Posted 3 years ago #

    Are you trying to offer downloads on your site of products for sale or something?

    Hiding the download directory in general isn't possible across the site, it's a common directory

    But, there are plugins available designed for offering downloads which helps you to control your products

  3. fatcomet
    Posted 3 years ago #

    I am not selling anything.

    I just would like to protect/hide my directories.



    If a person clicks to download my form, they see exactly where it resides and they can go to that directory and see what else is there. I suppose that is not a big deal but I prefer to keep snoops out of my "uploads" folder for instance.


  4. Rev. Voodoo
    Posted 3 years ago #

    You should have directory listing turned off at the server level....

    WP inserts nearly blank 'silence is golden' php files into a lot of directories to block browsing as well... not sure about upload directories.

    It might be a setting you can configure through your hosting, or through .htaccess file

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.