Question:
People keep Spamming my E-mail Inbox through this Webform?
Aaron B
2008-02-22 15:32:08 UTC
I operate the website, I placed the Webform on there, I'm not that great at HTML, but I need to place something on this page so I don't have all these Spam Bots coming to my Website and posting links to dirty websites, get rich quick, and online gambling sites...

What can I add to the Webdform and how do I do it?
Seven answers:
anonymous
2008-02-22 15:38:24 UTC
you could make a form on this website. it ads the security letters.



http://www.emailmeform.com
Kasey C
2008-02-22 15:37:34 UTC
I am afraid it's just a risk you have to take by providing a mail address / form out there! How would your server *know* it's not spam vs. it IS spam? There's no magic formula, you know.



You can require that only registered people can use the form, but I guess that kinda defeats the purpose of having one.



Another possibility is move the form around, day to day. One



day it's in this dir, next day it's in a different dir, and so on. So spammers can't "home in" to the form directly, if you leave it in a single place. You'll need to update the links, but that can be "automated" somehow. One can even generate a new URL every time the link was clicked on... If you want to be that fancy.



Else, just use POPFILE or SpamBayes to filter the ****.



EDIT: Capcha is a good idea, as it'll kill the bots, but it won't stop him from getting one-off spams. At least it'll slow them down a bit, but it's not a total solution.
?
2016-11-29 08:13:15 UTC
fairly? because of the fact Y!A retains spamming mine with e-mails approximately assembly singles over 80 in Lithuania. BQ: many times, different clientele' e-mails get thrown into my unsolicited mail folder yet i don't many times get fairly unsolicited mail mail.
fixedinseattle
2008-02-22 16:05:57 UTC
add a simple captcha, such as "what is 1+3?"



or something to that effect, bots will choke on it.
Graham Robinson
2008-02-22 15:40:04 UTC
Amend the sendmail.php to ignore (throw away) any items which have the string http in them (they will usually include a url)
snimont
2008-02-22 15:40:29 UTC
Add a captcha

http://recaptcha.net/whyrecaptcha.html



where people have to type in a series of letters before it is confirmed
anonymous
2008-02-22 15:44:49 UTC
You should not use the HTML Mail To tag. It reveales your email address to the world.



You need to set up a different type of form that uses the mail server of your host. You would write the code in ASP, but the person that hosts your site would have to set it up.



The code I use on my site looks like this: This is the form in HTML.

































































 


What to ask me a Question?
Your Name: 
Your Email Address: 


Comments/Question: 












THE ASP CODE LOOKS LIKE THIS. I have deleted my email address:

<%



' change to address of your own SMTP server

strHost = "xxx.xxx.xxx.xxx"

strSentString = ""





If Request.querystring("sendmail") = 1 Then

Set Mail = Server.CreateObject("Persits.MailSender")

' enter valid SMTP host

Mail.Host = strHost



Mail.From = Request.form("email") ' From address

Mail.AddAddress "xxxxxx@yahoo.com.au"

Mail.FromName = "[xxxxx@xxxxx.com]"



' message subject

Mail.Subject = "[xxxx@xxxxx.com] Contact from from xxxx@xxxx.com

' message body

Mail.Body = "New email from: " & request.form("username") & vbnewline & "Email address: " & request.form("email") & vbnewline & vbnewline & request.form("comments")

strErr = ""



bSuccess = False

On Error Resume Next ' catch errors

Mail.Send ' send message

If Err <> 0 Then ' error occurred

strErr = Err.Description

else

bSuccess = True

strSentString = "Your email was sent to Bill."

End If

End If





%>

Have Fun


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...