By gdip on
I found this simple suggestion at
http://duggmirror.com//programming/Preventing_SPAM_without_using_a_CAPTC...
Might help!
-----------------
"For people who don’t know this trick already, here is how you do it:
Add an input field to your form, with some interesting name, for example ‘URL’.
<input name="url" type="text" value=""/>
Hide the input box using css so that users(genuine) cannot see it directly.
<style>
.style1 {
display: none;
}
</style>
<p class="style1"><input name="url" type="text" value=""/></p>
While processing the form check if the “url” contains any value. If it does, reject the post or put it for moderation.
if (strlen(trim($_POST['url'])) > 0){
//It is a spam, reject this post here
}
Didn’t get it? Why this works? Well, it works simply because geniune users cannot see a hidden input box on your form and therefore, they won’t fill it, while robots can."
[ edited by: VeryMisunderstood; added code tags around HTML and code so it can be seen ]
Comments
very interesting...
yes...