Answer the question
In order to leave comments, you need to log in
Anti-spam for WP form?
Good afternoon, how can I save it форму от спама
in a custom WP theme or on a site without an engine? What simple options are there, Google's captcha infuriates a little) MB check somehow for the presence of links in the body of the message?
Thanks in advance
Answer the question
In order to leave comments, you need to log in
Suddenly someone will help, just checking for the presence of a link in the field saved
if ( (strpos($_POST["message"], "http") !== false) || (strpos($_POST["email"], "http") !== false) ) {
$errors = 'Спамер чтоли?'; // если находим ссылку - возвращаем ошибку
}
Hello!
1) Akismet plugin. You need to get a free API key. Just protects from SPAM. Pretty good.
2) Google Recaptcha v2, Invisible or V3. True, there are no plugins for V3 today (12/09/18).
3) Plugin CleanTalk. Protects very well. A month is free, and after a month about 550 rubles. per year per site. If you can afford it, I recommend
if the form is implemented through some kind of plugin, then, most likely, a check is already built into the form and there is no point in bothering with an additional check.
in particular, such a check is already built into ACF. as well as in the FormCraft plugin
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question