Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-01-22 21:42:22

giz
Plugin Author
From: New Zealand
Registered: 2004-07-26
Posts: 384
Website GitHub Twitter

Password protect individual files

I’m trying to figure out how to swing permissions (via ign_password_protect / rvm_privileged / .htaccess / whatever) on a site where one can log in to access a particular file (a video file stored in content:files).

Each video file needs a unique log-in, which will be used by multiple users to view the video file…

…and the logins need to be easily managed on a regular basis by the client.

Any ideas?

Thanks.

Offline

#2 2012-01-22 22:15:28

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,947
Website GitHub

Re: Password protect individual files

giz wrote:

Each video file needs a unique log-in, which will be used by multiple users to view the video file…

If you’re willing to approach this slightly differently, you might consider smd_access_keys. You can use that to protect each file (or Page containing the file) with a unique key (a.k.a. URL) , which can then be disseminated to as many users as you like. Anyone with that key can view/download that file only.

There are also options to restrict the key so it expires after a certain time limit or usage count has been reached (expiry time available in the next version).

It might not be what you’re after, but it sounds like it might be something worth considering, depending on your workflow and users.

Last edited by Bloke (2012-01-22 22:16:43)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2012-01-22 22:20:44

giz
Plugin Author
From: New Zealand
Registered: 2004-07-26
Posts: 384
Website GitHub Twitter

Re: Password protect individual files

Thanks Stef. smd_access_keys sounds just what I’m looking for.

Note to self: next time, before you ask for help on the forum, whatever the issue – do yourself a favor and have a look at Stef’s plugins. Odds are, the solution lies there.

Offline

Board footer

Powered by FluxBB