Hi Getting a lot of spam contact forms which are bypassing recaptcha
- How can I add a 'get senders IP address' so I can block IP's
- Is there a way of inserting key words to block
- for example on another contatc form I can add this:
$SpamErrorMessage = "One of your words is triggering spam.";
if (preg_match("/@bk.ru/", "$email")) {echo "$SpamErrorMessage"; exit();}
Is there something similar I can do with your form and where would i put it?
So you now which version I am using....
My form.php stars with this:
<?php
/*-------------------------------------------------
Form Processor Plugin
by SemiColonWeb
---------------------------------------------------*/
/*-------------------------------------------------
PHPMailer Initialization Files
---------------------------------------------------*/
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
require 'phpmailer/src/Exception.php';
require 'phpmailer/src/PHPMailer.php';
require 'phpmailer/src/SMTP.php'; <form class="nobottommargin" id="template-contactform" name="template-contactform" action="include/form.php" method="post">
<div class="form-process"></div>
<div class="col_one_third">
<label for="template-contactform-name">Name <small>*</small></label>
<input type="text" id="template-contactform-name" name="template-contactform-name" value="" class="sm-form-control required" />
</div>