[support] Applying drupal access control to PDF documents.

Jason Flatt drupal at oadaeh.net
Sun Jan 27 20:44:13 UTC 2008


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 at 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

-- 
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/


More information about the support mailing list