Tuesday, October 25, 2022

FORM SPAM 2 - Get help dealing with it

FORM SPAM 2 - Get help dealing with it
If you missed FORM SPAM 1 you can still get it.
FORM SPAM 1
In this article you will learn which FORM PROCESSOR we use and which CAPTCHA we use, as well as others.
Use a good form processor. We use Tectite Form Processor. If you are able to modify HTML and PHP you can use their processor free of charge. If you don't want to configure it yourself, they will do it for you for a fee.
The Tectite processor is already set up to use Googles reCaptcha and they have good instructions. If you want to use Googles reCaptcha just follow their instructions. Keep in mind that reCaptcha is badly compromised.
For better protection against form spam we use hCaptcha. Each form requires solving the captcha before it is submitted.
The following assumes you have created a hCaptcha account and have read their instructions.
Using the Tectite processor and hCaptcha requires using the HOOK feature of the processor to redirect to a hCaptcha script.
/* Help: http://www.tectite.com/fmdoc/hook_dir.php */
$HOOK_DIR = "/dir/hCaptcha.php";
Now you need to have this code in your 'hCaptcha.php' file.
$data = array(
'secret' => "your code goes here",
'response' => $_POST['h-captcha-response']
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://hcaptcha.com/siteverify");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
$responseData = json_decode($response);
if($responseData->success) {
// proceed the form
} else {
echo 'Robot verification failed, please try again.';
}
}
?>
OR you can download it here.
If you want to see how it looks and works, send us a message and tell if our FORM SPAM information has helped you.
CAPTCHA SHORT LIST
There are a lot of 'FREE' captcha services. Make sure to research each one before you decide to implement the service.
hCaptcha This is the one we are using.
Captchas.net
Friendly Captcha
Securimage
JCaptcha
Buster Firefox Extension
Buster Chrome Extension
Death by Captcha
SVB-Captcha
I hope this information helps you stop FORM SPAM on your website.

 

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.