Recaptcha for guests to post
-
I have a lot of spam on my NodeBB with guests and I want to reduce it to add a recaptcha on guest posts. I want this so guests would make the choice to register and bots won't spam the forum.
How can I do this? Is there a plugin where I can set recaptcha only for guests everytime they want to post something?
-
That's not one that I've seen.
-
@scottalanmiller is it hard to make with existing re-captcha plugins?
-
Use the post queue for guest posts
-
-
Not by default, but it would be possible to make a plugin that allows for it.
There is
filter:post.shouldQueue
, that sends everything just before a post is added. I think data passed there contains the post contents, so a plugin could just check for these things and decide to queue only if post contains one of them.As you want it to still apply only to guest/new users, a better option would probably be to set the queue for them in settings and let plugin refuse to queue when it doesn't find anything from your list of filtered things.
-
I found this
Does anybody has an idea how to get this work on nodebb?
-
Seems like it can work without any backend, although is easy to circumvent when used in that way. I think the hardest part here would be making it look sensible, as the version on that website seems far too big for the composer
As for implementing it properly - you'd have to somehow pass its response along with the post, but if you manage to do that it shouldn't be hard to actually handle it as it's just one simple http request to their api.