By abelleba on
On my site http://www.computerquestionhelp.com I was wondering if a module may exist where I can put all of my missing downloadable drivers into a folder where only users of my blog can enter and download them. I know I can passwd protect a folder using .htaccess but it would be nice if just by them logging in with their account would suffice to gain access to this kind of content.
Would I be better off trying to write this myself using PHP? I don't know PHP that well but I think I might be able to make something close to that if there is something open source close to it.
Your thoughts and ideas are welcome and I appreciate the time of the volunteers.
Regards,
Comments
=-=
move the files folder above the public root of the server
then use the private file system in administer -> file system
at that point only logged in users will have access to the private file system.
Can you elaborate what you
Can you elaborate what you mean by 'public root' of the server? You mean any sub directory above the domains root? Example mine is setup like this: /home/username/public_html/drivers
With "/public_html/" being the root folder of this domain, wouldn't I already have the files in the correct place? Instead of uploading them to Drupal, I just link to the files directly on my blogs. The problem is, I want to stop Guests from downloading these and burning up my bandwidth.
Would this mean I'm already good to go? I would just need to perform your second instruction "then use the private file system in administer -> file system"
Thank you very much for the reply!
=-=
you want ..... /home/username/files/public_html/
if your files folder has been named /drivers/, then it would be /home/username/drivers/public_html
when the folder is above the public root, anon users can't get at them nor can search bots.
If you don't move the folder above the public root, anon users can still use the private file system path to get at the files.
I see now, I didn't know
I see now, I didn't know Drupal would allow access to files in the home/user folder. This would indeed keep the public out and the registered allowed to gain access then.
Thank you for your help, it's greatly appreciated!