Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Protected RSS
Would like to password protect feeds on a section (later by category as well) basis.
To begin with, protecting one section is adequate for my needs.
I’ve tried some fooling around with .htaccess
, which can work. However, I wonder if there is a sleeker TXP way of doing this — particularly in conjuction with the heavy use of mem, ign, rvm plugins I’m using for controlling access to articles, forms, pages, sections, tidbits, et al.
Is anyone aware of something I should look at?
txtstrap (Textpattern + Twitter Bootstrap + etc…)
Offline
Re: Protected RSS
You can try setting up your own feeds. And use the plugins you mention to password protect your feeds.
I think that can work…
Example how to set up your feed:
http://isaacbowen.com/blog/717/txp-creating-custom-rss-feeds
And you need to set the header with this one.
http://www.dev.michaelgravel.com/text/plugin-mg_setheader
Good luck…
Offline
Re: Protected RSS
aeonflux wrote:
You can try setting up your own feeds. And use the plugins you mention to password protect your feeds.
This wouldn’t work because the normal feed would not be password protected. Someone with basic knowledge of txp would be able to view it even if it is not linked.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Protected RSS
password_protect might work
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Protected RSS
colak wrote:
This wouldn’t work because the normal feed would not be password protected. Someone with basic knowledge of txp would be able to view it even if it is not linked.
That is the problem indeed.
password_protect might work
Not in my situation unfortunately. I’m on assignment from a persnickety group…. I’ve tried to protect txp:body and assorted txp:custom_fields with ign_pw_protext or rvm_priv and have discovered that even while my section in protected, the feed for that section does not honor these protected bits. I understand that the txp feed broadcaster doesn’t assume that a feed reader has a txp tag parser built in. Maybe I’m off on that thought…
Off to look at txp feed customization plugins I think I’ve seen sight of…
Thanks for the ideas!
txtstrap (Textpattern + Twitter Bootstrap + etc…)
Offline
Re: Protected RSS
colak wrote:
This wouldn’t work because the normal feed would not be password protected. Someone with basic knowledge of txp would be able to view it even if it is not linked.
Word: disabling. You can always exclude sections from feeds, or use .htaccess rules to disable feed paths.
Last edited by Gocom (2009-08-06 01:12:27)
Offline
Re: Protected RSS
Gocom wrote:
You can always exclude sections from feeds, or use .htaccess rules to disable feed paths.
True but then there will be NO feed. The way I understand it is that Josh wants a password protected feed.
In any case, your posting here helped me think of a possible solution.
- Read this
- Instal rah_external_output
- Install mg_setheader
- Create the feed using the tutorial but using rah_external_output instead of a section. I think that it provides a cleaner solution.
- Disable feeds in ALL/any sections you do not wish to have feeds for
- Install ign_password_protect, rvm_privileged or the native txp:password_protect to protect your new feed
- Your feed url will look something like http://www.domain.tld/?rah_external_output=feed
I hope I did not leave anything out:)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Protected RSS
colak wrote:
True but then there will be NO feed.
Heh. Yes there will be. Aeonflux suggested using same method you did, where you replied that post which I replied. Thing. :-)
colak wrote:
I hope I did not leave anything out:)
<txp:posted />
outputs locale based time (strftime()
) so you possible want to use other date function instead if you use any other language than English. jad_oldposted or null the locale to English with PHP. RSS requires English dates.
If rah_external_output is used mg_setheader isn’t needed. Rah_external_output includes inbuild header setting.
Offline
Re: Protected RSS
Gocom wrote:
Heh. Yes there will be. Aeonflux suggested using same method you did, where you replied that post which I replied. Thing. :-)
true. I’m totally spaced out today. temp is 43ºC and humidity @80% for days now so my brain feels like it is slowly getting steamed.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Protected RSS
colak wrote:
- Read this
- Instal rah_external_output
- -Install mg_setheader
- Create the feed using the tutorial but using rah_external_output instead of a section. I think that it provides a cleaner solution.
- Disable feeds in ALL/any sections you do not wish to have feeds for
- Install ign_password_protect, rvm_privileged or the native txp:password_protect to protect your new feed
- Your feed url will look something like http://www.domain.tld/?rah_external_output=feed
Wow, thanks! This is a big help. I really appreciate it. I’ll be back to this thread if anything interesting happens. :)
txtstrap (Textpattern + Twitter Bootstrap + etc…)
Offline
Re: Protected RSS
yes colak’s post is something like what i’d think, but here’s another way using that mg_set header plugin.
you make a custom feed using it, and then maybe implement some way of showing an except of the article, and the rest is simply not published except for a link that says “log in/sign up to view this content”.
it all depends on your project of course, but since feeds are so hard to protect this is an easy way to do it and also advertises the content that people have to be privileged to view.basically you would use all the resources he linked to, but it’s just another way to think about it.
Last edited by mrtunes (2009-09-01 04:32:03)
Offline
Pages: 1