[SOLVED] Creating content protection exceptions for modules requiring automated cron tasks

10 years 8 months ago - 10 years 8 months ago #232816 by envee
Thanks Kyle

So basically I can use option=com_component to protect the entire extension and use a minus sign (or whatever) as a regular expression to exclude the particular cron task url?

If that's the case you already provide what I need!

What would the syntax be for protecting an entire component minus one or two specific urls?

Many thanks

N

PS - if what I understand is in place, then everything I suggested is moot :blush: , this would work better than I'd dream! :woohoo:

Please Log in to join the conversation.

10 years 7 months ago - 10 years 7 months ago #232863 by krileon

So basically I can use option=com_component to protect the entire extension and use a minus sign (or whatever) as a regular expression to exclude the particular cron task url?

Yes, you can use a REGEX negative lookaround to try and exclude a specific string. Example as follows.

option=com_component&view=/^((?!cron).)*$/

The above would protect every view except cron. Example as follows.

Protected:
option=com_component&view=category
option=com_component&view=article
option=com_component&view=test

Not Protected:
option=com_component&view=cron

I've never tried this in CBSubs By URL Part so I can't guarantee the negative lookaround will even work. REGEX really isn't designed for this, but it can be forced using the above usage.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

10 years 7 months ago #233176 by envee
Hi Kyle, I'm sorry is it OK if I PM you?
Many thanks

N

Please Log in to join the conversation.

10 years 7 months ago #233402 by envee
For the forum record

Kyle, thanks for the PM support on this, the REGEX syntax you gave me all seems to work fine and I've combined it with the Joomla ACL as well.

It's useful to note that most components seem to provide access through to their CRON urls even when protected by Joomla ACL, whereas CBSubs may actually block them airtight. But combining core ACL and Cbsubs REGEX URL exclusions seem to work OK to manage access.

I'll keep an eye out and update if necessary

Many thanks again Kyle!
N
The following user(s) said Thank You: nant, krileon

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.211 seconds

Facebook Twitter LinkedIn