Keyword Blacklist

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

12/27/2023 7:38:01 AM
Gravatar
Total Posts 218

Keyword Blacklist

In version 2.9.0.1 the new keyword blacklist is an amazing new feature to help reduce spam. I'm having a little trouble configuring it though.

Let's say my block keyword is "cat"

By itself cat will be blocked but if someone types in xcatx it will not be blocked. That's often okay but when blocking individual cyrillic characters (russian) I need those characters to stop form submission if found anywhere in the copy. I tried adding something like *cat* to my list but that blocks anything typed in.

Just curious if there are any undocumented tricks to let your keyword be blocked if found anywhere within the form content?

12/27/2023 4:19:31 PM
Gravatar
Total Posts 3
Community Expert
Web Support Guru at i7MEDIA.

Re: Keyword Blacklist

Eric,

The Keywork Blacklist uses regex to filter better. If you are looking to remove the word cat with any assembly of characters in front or behind it you can use .*cat.*

The .* tells it to read any characters on whichever side that pattern is on. For example, .*cat would capture supercat but would not capture caterpillar.

If you are looking to block all cyrillic characters you can use the .*\p{IsCyrillic}.* pattern. This, once again, uses the .* pattern to capture the entire word that has a cyrillic character so that it does not get confused by actual words, and the \p{IsCyrillic} captures anything inside of the IsCyrillic script built into regex. If you do not like that however .*[\u0400-\u04FF].* will capture the entire unicode range for cyrillic characters.

Thank you,

Joey Stombaugh

1/1/2024 8:59:34 AM
Gravatar
Total Posts 218

Re: Keyword Blacklist

This is perfect, exactly what I needed and seems to work great. Honestly this is the best new feature. Form spam is the biggest user complaint since the captcha stopped working as well.

I created a little script to update my blacklist to all CMS installs and all sites to make updates faster.

Thank you,

1/9/2024 9:35:13 AM
Gravatar
Total Posts 2239

Re: Keyword Blacklist

Hey Eric,

CAPTCHA no longer being effective is why we implemented this. It's cut down on a lot of SPAM, so much so we haven't tried to figure out what the problem with CAPTCHAs are. Honestly, it seems to be a non-mojo issue as we have similar problems on some wordpress, et. al. sites we support.  A lot of the SPAM has to have been entered by an actual human.

We have had better results with hCAPTCHA over reCAPTCHA but it's still not as good as CAPTCHA used to be. We need to upgrade to the latest versions of both reCAPTCHA and hCAPTCHA and maybe implement some other SPAM/Scammer mitigation on top of the keyword blocking.

By the way, we're working on ckEditor 5 and we've created a new menu control which uses Razor. SuperFlexi also uses Razor, as of version 2.9. Several old controls have been removed and more will be removed soon. mojoPortal is 20 years old this July so there is a good bit of old stuff that's just not needed anymore.

We have some bigger things in the works as well. If we can get some customers willing to help pay for a few features, they'll come along quicker.

Thanks,
Joe