Re: Preventing spammers from using mail script



affiliateian@xxxxxxxxx wrote:
Is there a way code a php mail script so that spammers cannot utilize
it to blast spam? At the moment, we are using a hidden value in the
form for validation but anyone can see the hidden value in the form and
push this value to the script. Would posting the form to itself (ie.
embedding the php codes on the same page as the form) help in this
matter? Any tips?

It's the FROM field they use to send spam, you should look for \r\n in the FROM field, remove those and you should start to generate less spam out of your box.

See http://www.php.net/manual/en/function.mail.php


//Aho
.



Relevant Pages

  • Re: query string passing woes........ help... please....
    ... Unless they actually key in the query string. ... So I'm not too worried about the spam issue as of ... |> i'd also work on your validation. ... it needs to be FAR more graceful than ...
    (alt.php)
  • Re: query string passing woes........ help... please....
    ... |>>be used to spam anyone. ... Unless they actually key in the query string. ... ass-cheecks wide...THAT would be the 'eye' you're keeping out for it. ... i'd also work on your validation. ...
    (alt.php)
  • Re: Spamassassin and Sendmail
    ... for a while now, courtesy of the spamass-milter. ... it appears to do spam filtering before address validation, ... processing a lot more spam than it really needs to, ...
    (uk.comp.os.linux)
  • Re: email form injection
    ... Proper validation of any field that may come in contact ... That works for not having the bot spam the world. ... I've found spammers are pretty smart about putting appropriate data in fields, now, if your field names have no relation to their content then that isn't an issue, but most of us name fields so we know what they are. ...
    (comp.lang.php)
  • Re: email form injection
    ... Proper validation of any field that may come in contact ... That works for not having the bot spam the world. ... webmaster wants to open his mailbox and find 100 orders and 2,000,000 ...
    (comp.lang.php)