On Jan 27, 2008, at 3:44 PM, Jason Flatt wrote:
On Sunday, January 27 2008 8:27:56 am Roy Smith wrote:
I've been using the Nodeaccess (5.x-1.x-dev) module to control access to a "members only" section of my web site. I want to put some PDF documents on the site, which will be subject to the same access control, but I don't see any way to do this.
I can upload the PDFs to the files directory, and link to them from a protected page, but that doesn't really protect the PDFs. Anybody who could guess a URL would have unlimited access. I know I can add .htaccess protection at the apache level to the PDF's, but that means people need to authenticate twice (once to drupal, again to apache). And, managing two sets of accounts would be a nightmare.
Is there some way to embed a PDF directly as a drupal node, so I can control access to it via the same mechanism as the rest of the site?
-- roy@panix.com
I only skimmed it, so I may be wrong, but it seems this article might address what you need: http://drupal.org/node/156547
Yeah, that looks pretty close. The only hitch I can see is that I'm using a web hosting service, so I don't have direct control over the apache server. I need to find out if they're running mod_auth_sql, or if they can be convinced to install it.
Thanks for the pointer!
-- Jason Flatt http://www.oadaeh.net/ Father of Six: http://www.flattfamily.com/ (Joseph, 14; Cramer, 12; Travis, 10; Angela; Harry, 7; and William, 12:04 am, 12-29-2005) Linux User: http://www.xubuntu.org/ Drupal Fanatic: http://drupal.org/ -- [ Drupal support list | http://lists.drupal.org/ ]
-- roy@panix.com