Answer the question
In order to leave comments, you need to log in
How to make anti-spam based on the invisible checkbox "I'm a robot"?
<form name="add_my_ankete" action="/ok.php" method="POST" enctype="multipart/form-data">
<label><input type="text" name="line1" required="required" class="input-small" maxlength="255" placeholder="Ваше имя" value=""></label>
<label><input type="text" maxlength="20" name="line2" required="required" class="input-small" maxlength="255" placeholder="Ваши контакты" value=""></label>
<label><textarea name="line7" placeholder="Ваш вопрос или отзыв" class="input-tt" value=""></textarea></label>
<label><input type="hidden" name="line8" class="input-small" maxlength="255" value="<? echo $arResult['ID'];?>" placeholder="<? echo $arResult['ID'];?>
" value=""></label>
<input id="submit" name="submit" type="submit" value="отправить">
</form>
Answer the question
In order to leave comments, you need to log in
hidden in the checkbox is pointless, because the robot will read
it, but css will also not help much here, because robots are most likely already able to determine the visibility property of an element on the page,
try hiding it with css, but the chances, it seems to me, are very small or very short-lived
These crutches will not save you from a bot on selenium and will not even save you from a bot that stupidly sends the same request, this can be written in 5 minutes on the head.
The robot will check the box, but the form will not be submitted.
<script>
, which will make false Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question