Skip to Content Skip to Menu

CB antispam captcha issue

  • krileon
  • krileon
  • ONLINE
  • Posts: 48653
  • Thanks: 8308
  • Karma: 1446
2 years 2 months ago - 2 years 2 months ago #331221 by krileon
Replied by krileon on topic CB antispam captcha issue

This issue may arise with all SW use or software in this case.

There is still nothing for me to do about this. There's multiple ways to implement URL exclusion for service workers. Yours does not appear to be implementing such a method or it's not working as expected. There's only one way to really confirm it's what's causing the problem and that's to temporarily turn it off. If the issue goes away then contact the developer regarding the URL exclusion not working correctly.

Sorry, I don't know what else to suggest. There's nothing here for us to fix or implement to solve this.


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.
Last edit: 2 years 2 months ago by krileon. Reason: typo

Please Log in or Create an account to join the conversation.

  • activha
  • activha
  • OFFLINE
  • Posts: 2336
  • Thanks: 117
  • Karma: 13
2 years 2 months ago - 2 years 2 months ago #331223 by activha
Replied by activha on topic CB antispam captcha issue

There's multiple ways to implement URL exclusion for service workers


We tested with another Service Worker software plugin for joomla and got exactly the same errors for CB antispam compared to our SW use . (see  devel.activ-ha.com/inscription )

There's multiple ways to implement URL exclusion for the Service workers to avoid caching urls or results, but the SW still fetch all urls even if it's network first.

The issue seems not with the caching or the network, but with the fetching made by any service worker which seems to be the issue with CB Captcha. (Chrome dev tools answer that the cookies are not enabled on the browser for this page, though they are of course)

Again there is absolutely no issues with Google Recaptcha and service workers used for instance in Acymailing or other components. Try  activ-ha.com/france-humanitaire and click on Faire un don, then try to send to trigger Google Recaptcha

But the same use of google Recaptcha by CB Antispam fails with all service workers.

Maybe worth a little more digging ? ;-)
Last edit: 2 years 2 months ago by activha.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48653
  • Thanks: 8308
  • Karma: 1446
2 years 2 months ago #331224 by krileon
Replied by krileon on topic CB antispam captcha issue

Again there is absolutely no issues with Google Recaptcha and service workers used for instance in Acymailing or other components. Try activ-ha.com/france-humanitaire and click on Faire un don, then try to send to trigger Google Recaptcha

That is not programmatically invoking the reCaptcha. CB AntiSpam programmatically invokes reCaptcha v3 . Our v2 reCaptcha implementation does the same thing with explicit rendering . It has to as it has to bind to the validation behavior of our forms. The invoking function is not being called due to your service workers interruption. This could also be why CB AntiSpam reCaptcha is failing due to multiple reCaptcha JS loading in. The easiest way for a service worker to exclude certain URLs is to simply return false when matching those URLs in its fetch event handler.

We do not support service workers. We do not test for them. There are no plans to do so. If you need this advanced level of development then consider a business membership and we can look into adjusting things to fit your specific needs.


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 or Create an account to join the conversation.

  • activha
  • activha
  • OFFLINE
  • Posts: 2336
  • Thanks: 117
  • Karma: 13
2 years 2 months ago #331226 by activha
Replied by activha on topic CB antispam captcha issue

 If you need this advanced level of development then consider a  business membership  and we can look into adjusting things to fit your specific needs.


Glad to read that, I'd be very happy to subscribe to this new membership :-)
The following user(s) said Thank You: krileon

Please Log in or Create an account to join the conversation.

  • activha
  • activha
  • OFFLINE
  • Posts: 2336
  • Thanks: 117
  • Karma: 13
2 years 2 months ago #331416 by activha
Replied by activha on topic CB antispam captcha issue
I come back on this subject because we updated the service worker to exclude cbantispam js and all index.php requests.

We still have the issue using CB Antispam code settings.

The spam code loads fine a few times, we can reload it manually using the ajax icon, then it stops loading, very strange.

We need more help here as the serviceworker coder does not understand neither

BTW I sent the request for business membership but did not get an answer yet ?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48653
  • Thanks: 8308
  • Karma: 1446
2 years 2 months ago - 2 years 2 months ago #331418 by krileon
Replied by krileon on topic CB antispam captcha issue

We need more help here as the serviceworker coder does not understand neither

I don't know what to tell you. With it off CB AntiSpam works fine. With it on CB AntiSpam is broken. You're using ajax based captcha mode. Maybe your service worker doesn't like the extra ajax calls. Within CB AntiSpam > Parameters > Captcha > Modes > Internal > General set Ajax to Disable. Now purge all cache and retry to see if that helps. This will allow the captcha HTML to render in normally and eliminate that ajax call.

BTW I sent the request for business membership but did not get an answer yet ?

Beat is working through the quotes. Sorry for the delay. Takes awhile to figure out what we do and do not have time for.


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.
Last edit: 2 years 2 months ago by krileon.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum