Link to home
Start Free TrialLog in
Avatar of ttobin333
ttobin333

asked on

ASP mail form

Dear Experts,

I have a web page that allows visitors to complete a form and send the information to our support email address. We have been getting a lot of spam, most of which contains URL's.

What is the best way to detect the presence of "http://" in a field and silently not send the email without giving an error message? I have tried using the Instr function but I don't think I am using it correctly.

Thanks!
Avatar of Big Monty
Big Monty
Flag of United States of America image

Easiest and most common way would be to use captcha
http://www.captcha.net
Is there a possibility that real people may send you a link? If so your logic would be bad.
But anyway these are bots not real people, they don't care if it seems like the email was sent - follow Monty's advice and you will eliminate 99% of this
(no points for this)
Avatar of ttobin333
ttobin333

ASKER

Thanks, guys.

My software also uses the same page to send automated license registration notifications, so I would need to be able to bypass the Captcha with a "secret switch". Any suggestions on that?
either create a condition where the captcha only appears after a given condition...

OR

move your notification logic to it's own page.

I would probably choose the latter option if it's not a huge undertaking. Separating different bits of functionality is a lot easier to maintain than if everything is dumped in to one page
SOLUTION
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You'll find that reCaptcha is actually easier to use these days and invariably you'll get an easy to read image (if they suspect you are a bot they will send an harder to read image).
I find most times I get just a few numbers to type in.
Can you assist with the ASP code for Captcha?
They have samples/'what to do' on the site when you register
here's a pretty straightforward example:

https://developers.google.com/recaptcha/docs/asp
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Very helpful, thank you!