![]() A possible solution to avoid spam in posts, is the use of captchas. But I have found another solution: I found out that all automated spam posting programs/scripts do not execute the javascript on a form (i.e. the javascript to validate the form on client-side). My solution, aka the hidden captcha: 1. 2. 3. 4. This way, I can check if it's submitted by a person without bothering the users with captchas. And yes, I know that this method is not waterproof, but this solution has been working for more than 3 years now for all our sites. A better solution would be to generate it on the first page and then save it in some session-var. But, as I said, it works: no more spam in our posts, users don't have to captcha.
|
|||||


javascript
Update:
this would be the javascript, to be executed before submitting the form:
try{ frm.anti_spam.value = "4599843126548"; } catch(e){ } document.formcontact.submit();this is the hidden field
this would be in the handler:
anti_spam = Request.Form("anti_spam") If anti_spam = 4599843126548" Then 'go on with form processing Else 'spam attempt: stop processing End If