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!
ASP

Avatar of undefined
Last Comment
ttobin333

8/22/2022 - Mon
Big Monty

Easiest and most common way would be to use captcha
http://www.captcha.net
Gary

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)
ASKER
ttobin333

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?
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Big Monty

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
Scott Fell

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Gary

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.
ASKER
ttobin333

Can you assist with the ASP code for Captcha?
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Gary

They have samples/'what to do' on the site when you register
Big Monty

here's a pretty straightforward example:

https://developers.google.com/recaptcha/docs/asp
ASKER CERTIFIED SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER
ttobin333

Very helpful, thank you!
Your help has saved me hundreds of hours of internet surfing.
fblack61