RE: [PHP] Spam using email on website
| From: | Brad Fuller | Date: | Tue, 07 Nov 2006 18:00:05 +0000 |
| Subject: | RE: [PHP] Spam using email on website | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-244335@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Pieter du Toit [mailto:pieterdt@telkomsa.net]
> Sent: Tuesday, November 07, 2006 1:43 AM
> To: php-general@lists.php.net
> Subject: [PHP] Spam using email on website
>
> Hi guys
>
> I have a website that is being crawled or whatever and i have a submission
> form for an event.
>
> I keep on getting random mail from this form.
>
> I have even disabled the submit button on the form, but keep on getting
> it.
>
> What can i do?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
You could put a security image on the page.
http://www.devshed.com/c/a/PHP/Security-Images-in-PHP/
The security image sets a session variable that is not accessible by the
client. The user must enter the code shown into a form field. When the
form is submitted, the submit page checks that the security code entered
matches the session variable. If not, no mail is sent and an optional error
message is displayed.