Password protect a whole directory?
-
Hello!
Hopefully you’ll be able to help me with this, I’m wondering if it’s possible to password protect a directory which uses the WordPress Users database for authentication when a file in that directory is attempted being accessed? I’ve tried many plugins but most seem to be crudely hiding the URL of a file as opposed to actually securing a directory.
Here’s what I want to do, I want to offer a file for download which is only visible to subscribers of my blog. At the moment I’m doing this by simply hiding the link based on if a user is logged in at theme level. I’d love to move to getting this sorted at folder level if anyone has any ideas how? I just don’t want people sharing the raw link of files.
I do have cPanel too which could be used to secure a directory, is there a way to make wordpress talk to cpanel authentication? Are there any plugins which you think I may have missed?
I really appreciate if you could point me in the right direction it’s either that or a wall very near me is going to have a shape of my head imprinted on it!
Thanks!
- The topic ‘Password protect a whole directory?’ is closed to new replies.