I’ve website and for unknown reason i’m getting per minute more than 200 spamming post
and yet i still not need to use captcha
I’ve got an idea since my attacking bots are hungry for any input form is by creation the following
1- Browser hidden text input
<style>
.comment {visibility: hidden;}
</style>
<input name="comment" id="comment" type="text" class="comment" />
2- using php if it empty then no spam bot and if not empty then it must be spam bot
but the php code gives me error as it looks not working
$comment = $_POST[comment];
if( !empty($comment) ) {
echo "you are bot right then die go to hell";
} else {
echo "fine";
}
for unknown reason to me that php code not working ! i’m not sure about empty() how to use it.
i think you are missing the quotes around ‘comment’