CAPTCHA/Integration/The Anti-CAPTCHA/Stronger
This version of the Anti-CAPTCHA is stronger.
Form Code
editJavaScript
editdocument.write("<input type=hidden name=code value="+Math.random()+" />");
This must be in your form.
Use in an HTML form:
<script type="text/javascript">
document.write("<input type=hidden name=code value="+Math.random()+" />");
</script>
Server-Side Code
editUse this:
<?php
if (!$_POST['code']) {
// abort
}
?>
Problems with this version
editIt hinders the usability, as people with JavaScript disabled (for example, for security reasons) won't be able to access your form.