dbmasters
09-21-2007, 02:30 PM
I thought this may be a worthy thread to start I'll start with some things I have tried and results I have achieved, as my employer has recent had this problem and we are working on it without using CAPTCHA.
Started by putting a empty text field hidden via CSS display:none; command. This is done for the reason that many bots just put something in every text field, so, upon submission, if anything is in this field, the form is not sent. This did help cut down a little, but not enough.
The next thing I did was put a validation on the comments field of the form looking for < and > (both, not just one, as both indicates HTML) and this actually cut down quite a lot.
The emails that got thru used bbCode which is basically using [ and ] instead of < and > so I instead started validating for all those characters. not in pairs, but having them at all, as they are unique characters that are not used in 99% of the standard messages.
When doing this I added a javascript validation as well using string.indexOf("<") type of functions so I could alert the user as well, since it may happen from time to time, until now the tests were strictly behind the scenes.
It does appear that spam has decreased exponentially from these measures, they should be of very limited impact on any regular user but, on the rare occassion if does there is a javascript alert explaining it.
All in all it seems successful enough were it will be an option in the next release of FormM@iler.
Anyone else have tips or tricks to try? As this didn't stop it all yet, so many are still just plain text...
Started by putting a empty text field hidden via CSS display:none; command. This is done for the reason that many bots just put something in every text field, so, upon submission, if anything is in this field, the form is not sent. This did help cut down a little, but not enough.
The next thing I did was put a validation on the comments field of the form looking for < and > (both, not just one, as both indicates HTML) and this actually cut down quite a lot.
The emails that got thru used bbCode which is basically using [ and ] instead of < and > so I instead started validating for all those characters. not in pairs, but having them at all, as they are unique characters that are not used in 99% of the standard messages.
When doing this I added a javascript validation as well using string.indexOf("<") type of functions so I could alert the user as well, since it may happen from time to time, until now the tests were strictly behind the scenes.
It does appear that spam has decreased exponentially from these measures, they should be of very limited impact on any regular user but, on the rare occassion if does there is a javascript alert explaining it.
All in all it seems successful enough were it will be an option in the next release of FormM@iler.
Anyone else have tips or tricks to try? As this didn't stop it all yet, so many are still just plain text...