Preventing Spam form completion .net2.0 (Full Version)

All Forums >> [Web Development] >> General Web Development



Message


GolfMad -> Preventing Spam form completion .net2.0 (3/30/2007 6:37:46)

Trying to use .net and encouraged by Jimco's marvellous tutorial for form to email using .net 2.0, I created a successful form.

I have problems on other sites where spam robots are posting and because it is coming internally the domain spam filter lets them through.
So I thought I would venture in to making a field that a human would complete to beat the bots. I had seen this on a php form to email package but thought I must be able to use .net 2.0 somehow. I do not know how the images with codes in work that some form validations require work - PayPal etc.

Could someone please look at the form and tell me whether this will beat the spambots. I have a field required control, with a field validator set to a value of 'cold'.
However I notice that 'cold' shows up in 'View source' so will the spambots get this?

http://www.davidwyoung.co.uk/contact.aspx

If there is another not to dificult but more secure way I would be interested.

Thanks
Phil




ou812 -> RE: Preventing Spam form completion .net2.0 (3/30/2007 11:49:46)

Unfortunately, I think spambots have javascript turned off, and therefore will not use your validation. As an example, I turned off JS and sent you an email through your form without using "cold" as the answer. To beat the bots I do my checking on the server side, once the form is actually submitted.




mar0364 -> RE: Preventing Spam form completion .net2.0 (3/30/2007 13:37:45)

I've never used it, but this look like what you want.
http://www.codeproject.com/aspnet/CaptchaControl.asp




GolfMad -> RE: Preventing Spam form completion .net2.0 (3/31/2007 2:29:02)

Thanks for the test, I was amazed to hear that an ASP contol can be side tracked by not having javascript turned on- must try it myself.

Thanks for the captcha, not sure I understand how to implement it but I will have to study it more.

Regards
Phil




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.03125