|
Posted by WD10 on 09/15/05 00:47
On Sun, 11 Sep 2005 18:34:57 +0800, chris wrote:
> I am currently having a problem with spammers
> I have a form that sends the results using the PHP mail function to send to
> an email address.
> in the form HTML I have set the maxlength = to restrict the length of the
> input thinking this would solve the problem.
> but the spammers are still managing to put in something like this
> ----------------------------
> This is a multi-part message in MIME format.
> --===============1755057782==
> Content-Type: text/plain; charset=\"us-ascii\"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> rgdjuff
> --===============1755057782==--
> '>
> Contact from the WEBSITE contact page
> Details below;
> Name: fdujixvavr@domain.com
> Phone: fdujixvavr@domain.com
> Email: fdujixvavr@domain.com
> Content-Type: multipart/mixed; boundary=\"===============1755057782==\"
Maybe you could use server-side form validation? "If phone
number contains ampersand then bounce it." Validate on client-side first,
so that you don't confuse visitors, and then check it on server-side also.
Navigation:
[Reply to this message]
|