|
Posted by Oli Filth on 09/05/05 21:50
Zenbug said the following on 05/09/2005 19:45:
> 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."
>
Regular expressions?
http://www.php.net/pcre
Or even a simple string search?
http://www.php.net/strpos
--
Oli
Navigation:
[Reply to this message]
|