Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
password protect and options
I’ve got a client who would like a password protected section / ie: downloads.
They’ve got several forms of content (audio/pdfs/docs/html) that they would like password protected. The dilemma comes when some of this information (in the pages) could stand to remain accessible and indexable, while the files in particular could be password protected if some form of that existed.
Does anyone have any suggestions for scenarios they’ve had like this before?
I’d thought that perhaps one could have a normal article (public) with a link to downloads/writing/#a-specific-pdf, and that if one wanted to get that pdf they’d have to
- click the link
- fill in username/pass (with ign_pass protect for instance),
- and then I think the original URL would populate the page and assuming the id is correct it would take them to the appropriate download
- The user would click the download if it was correct
Seems like there are two issues wrong with this scenario.
- I can see folks forgetting the user/pass and needing some kind of a “forget your password?” kind of a link
- The method mentioned above requires atleast one more click than necessary
Does anyone know of a solution for password protecting files?
Is it simply a matter of adjusting the javascript alert to include a link to a “forgot my password” contact form so that the user can send an email if that is the case?
Thanks. As always.
Matthew
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: password protect and options
What happens if you .htaccess protect your files directory? Does it work at all? Of course you might not want to password protect all your files.
Shoving is the answer – pusher robot
Offline
Re: password protect and options
More complicated, only roughly fleshed out, but cooler in the end.
- Create a plugin for pretext that detects if it’s a file download and sets $s to something else like ‘proctected_download’ if no valid password is supplied.
- In the plugin but outside of a function check that $s = protected download and send them to some authentication function. Which then posts back and runs through the previous pretext doohickey.
- create some interface to attach passwords to individual files in TXP.
Shoving is the answer – pusher robot
Offline
Re: password protect and options
Hak,
This is a payed job, so I’d be into you developing something for it :)
I could throw $50 at something at the moment. Might be more complicated than that’s worth?
the .htaccess thing won’t work for the reason you mention
:)
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: password protect and options
hakjoon, i’d be interested in what you described as well!
Offline
Re: password protect and options
Has this thread evolved in something for protecting file download, so far?
Z
Offline
Pages: 1