View Single Post
Old 2nd July 2011, 12:39 AM   #4
lordspace
Senior Member
 

Join Date: Dec 2005
Location: Bulgaria / Canada
Posts: 102

Default

You can try a simple trick.
what is does is if a spammer loads your form he will submit to
/contact-alt.php then you'd use this script to block him.
If JavaScript is enabled the form will be submitted to contact.php

Code:
<noscript>Please enable JavaScript because your data won't be submitted and/or you may get blocked! (Anti-Spam Efforts)</noscript>

<form name="contact_form" method="post" action="/contact-alt.php" enctype="multipart/form-data" accept-charset="UTF-8" onsubmit="this.action='contact.php';">
...
the rest of your form
do let me know if you have any questions.

lordspace is offline   Reply With Quote