Replies: 0
Hi all i use quiz to stop spam. But it not doing good work.
I see that the bots has broke the code and they read ‘4462e2f90b4b15960c055deb26cc941e’ hashed answer decode it and broke the protection.
I SUGGEST:
You can add “CONTROL-LETTERS” (some random symbols added by user) they are used only to confuse the spambot.
See example:
[quiz quest300 “*5+5?|10” CONTROL-LETTERS=A6vSMsdE ]
IN quiz.php:
'<span class="wpcf7-form-control-wrap %1$s"><label><span class="wpcf7-quiz-label">%2$s</span> <input %3$s /></label><input type="hidden" name="_wpcf7_quiz_answer_%4$s" value="CONTROL-LETTERS %5$s" />%6$s</span>',
When validate:
$answer = wp_unslash( $answer );
$answer = str_replace(“CONTROL-LETTERS”, “”, $answer); // We remove the fake CONTROL-LETTERS and validation goes on.
Spam bot will read incorrect hashed code. The code is added by user will be unique, spambod will never know the right sentence. Just like salt-pepper
Ii will be the best spam prevention!!!
At the moment Relay Simple Capcha – not working and spam is send!!!
What do you thing?