|
Posted by Sandman on 09/06/05 00:01
In article <1125945945.517674.260180@z14g2000cwz.googlegroups.com>,
"Zenbug" <zenbug@gmail.com> wrote:
> My website has a mail form run by PHP, and I'm getting a lot of e-mails
> sent through it that appear to contain my website's domain after the
> '@', though I didn't send them. The e-mails contain no other content,
> so I assume it's some kind of spam bot.
>
> There must be a line of PHP that I can add that will basically say, "if
> the e-mail address contains '@mydomainname.com', do not send."
>
> I tried looking at php.net, but I can only find scripts that check if
> the address is a valid one, which isn't good enough. I need to be able
> to block a certain e-mail domain.
<?
if (!strstr($_POST["email"], "baddomain.com")){
mail(...);
}
?>
--
Sandman[.net]
[Back to original message]
|