Open CreateSean opened 1 year ago
@CreateSean
You could submit the form via ajax / fetch js ect
This would allow you to run a prior check on the code, the idea would be to take an array of banned terms (or key words) and then change the message to lower case and have your js loop over each word and check it against the array of banned terms. You can use modern JS array functions like .any or .contains to do this.
If one of the array words is found then just exit the script (known as a guard clause).
Might be of help to look at this option while waiting for a inhouse feature. PEACE!
I'd like to see an option where I could add a list of keywords that would be used to send a message directly to spam. Keywording should include option to wildcard like this.
I see this list being something that could be added to a config file or a text area in the settings page.