Email Forms - Blocking Spammers

This is a discussion on Email Forms - Blocking Spammers within the PHP Language forums, part of the PHP Programming Forums category; I have a couple of email forms I have created that use PHP to email the collected data to the ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-19-2004
Spidah
 
Posts: n/a
Default Email Forms - Blocking Spammers

I have a couple of email forms I have created that use PHP to email the
collected data to the appropriate recipient.

A concern has been raised by clients about the form being hacked by
spammers.

Is this likely to be a problem? If so what is the best way to stop it
happening. All I can think of is to maintain a log of, say, users ip
addresses and use this the limit the frequency with which the form can be
used.

Is there a better way?

Hamilton


Reply With Quote
  #2 (permalink)  
Old 10-19-2004
Geoff Berrow
 
Posts: n/a
Default Re: Email Forms - Blocking Spammers

I noticed that Message-ID: <3%Zcd.129$_l2.9856@news.xtra.co.nz> from
Spidah contained the following:

>I have a couple of email forms I have created that use PHP to email the
>collected data to the appropriate recipient.
>
>A concern has been raised by clients about the form being hacked by
>spammers.



If you allow recipients addresses to be entered into the form, this is
a Bad Thing.


--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Reply With Quote
  #3 (permalink)  
Old 10-19-2004
Brad Kent
 
Posts: n/a
Default Re: Email Forms - Blocking Spammers

As far as I know, spammer's aren't scouring the web for feedback /
contact-us forms. I moved to a "email form" and haven't gotten any
spam from it. Likewise, I moved my employer's email to a "form" and
they haven't gotten any spam either.

"Spidah" <h.laughland@eggstra.co.nz> wrote in message news:<3%Zcd.129$_l2.9856@news.xtra.co.nz>...
> I have a couple of email forms I have created that use PHP to email the
> collected data to the appropriate recipient.
>
> A concern has been raised by clients about the form being hacked by
> spammers.
>
> Is this likely to be a problem? If so what is the best way to stop it
> happening. All I can think of is to maintain a log of, say, users ip
> addresses and use this the limit the frequency with which the form can be
> used.
>
> Is there a better way?
>
> Hamilton

Reply With Quote
  #4 (permalink)  
Old 10-19-2004
Default User
 
Posts: n/a
Default Re: Email Forms - Blocking Spammers

Brad Kent wrote:

> As far as I know, spammer's aren't scouring the web for feedback /
> contact-us forms. I moved to a "email form" and haven't gotten any
> spam from it. Likewise, I moved my employer's email to a "form" and
> they haven't gotten any spam either.



You don't understand, it's not you getting spammed, it's spammers using
you to spam others.

Old form mail scripts sometimes accepted the email address of the
recipient as a form variable. This made it very easy to use for
novices, because they didn't have to touch the script at all. They just
had to put the address in a hidden field or a select in the form.

The problem is, the spammers would exploit this by creating their own
version of the form. Then they run their spam list through your form
handler, not only using someone else's resources but letting them get
blamed for the spam.

You can use form mail scripts, but the addresses either have to be
hard-coded in the script or validated somehow.



Brian
Reply With Quote
  #5 (permalink)  
Old 10-20-2004
Brad Kent
 
Posts: n/a
Default Re: Email Forms - Blocking Spammers

"Default User" <first.last@boeing.com.invalid> wrote in message news:<I5uH1G.Gq0@news.boeing.com>...
> Brad Kent wrote:
>
> > As far as I know, spammer's aren't scouring the web for feedback /
> > contact-us forms. I moved to a "email form" and haven't gotten any
> > spam from it. Likewise, I moved my employer's email to a "form" and
> > they haven't gotten any spam either.

>
>
> You don't understand, it's not you getting spammed, it's spammers using
> you to spam others.
>


My contact-me form in no way accepts a "to" address
My address is hard-coded in the handling script.

That would be worse than bad.
Reply With Quote
  #6 (permalink)  
Old 10-20-2004
Gordon Burditt
 
Posts: n/a
Default Re: Email Forms - Blocking Spammers

>As far as I know, spammer's aren't scouring the web for feedback /
>contact-us forms.


Spammers seem to find insecure versions of programs like "formmail"
with frustrating rapidity.

>I moved to a "email form" and haven't gotten any
>spam from it. Likewise, I moved my employer's email to a "form" and
>they haven't gotten any spam either.


The threat here is using your web server to spam the world,
incidentally getting mail from the web server blocked by a lot of
ISPs. They don't usually spam the webmaster as that would give
away the security hole.

One of the most important things about your form is: DON'T allow
input from the browser to specify a destination address. DON'T put
the To: address in a hidden field on the form. DON'T put the To:
address in a cookie. Preferably, hard-code it as a fixed string
that points at one of YOUR mailboxes.

Also: DON'T allow input from the browser to specify a From: address.
(It's better to make that a fixed string, also.) DON'T allow input
from the browser to do anything to the headers or body that might
cause a bounceback to the From: address (e.g. attach a virus,
excessive length, cusswords, etc.)

DON'T mail something back to an email address entered on a form.

You can relax some of these rules if using the form requires a login
and a password that can't be obtained just by filling in another
form (e.g. it waits a few days for the credit card payment to clear
before permitting use).

Gordon L. Burditt
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:56 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0