Basically, I have an input field in my form that is set in the CSS to display: none and I was wondering if auto fill programs fill in hidden fields? I set the value of the field to time() on load and compare it to the time the form is submitted to tell if the user is a human or bot.
Here is my code for the hidden field:
<?php
$loadTime = time(); // Initial time that the page loads is checked against the time the form is submitted and if its too fast, its probably a bot
?>
<input type="text" name="loadTime" id="loadTime" value="<?php echo $loadTime ?>" maxlenght="50" />
Instead of a text input with
display:none;you should use<input type="hidden" .../>. Like this auto fill programs won’t modify its value. Another (and safer) option is storing the time value as a server variable so that it can’t be modified