Secure forms

I am receiving too much spam now by spammers using the form on my contact page. This is on a non-Blocs site that I am replacing with a new Blocs site. Will there be a solution for making the Blocs contact form more secure?

2 Likes

Hi!

Here is a solution that works for me:

1.) I added a hidden field to the form (put margin to -400%) with the ID "title"
2.) put this code into the contactform.php (at the top, after <?php) :

if(isset($_POST[‘title’]) && !empty($_POST[‘title’])) {
die();
}

So if there is something written in this field, the form will not send emails. Spambots usually fill out every field they find. Users don´t see this field because it is hidden.

3 Likes

Hi @wolfganghofer

Yes, I will be releasing a solution, hopefully at the end of this week.

Bill
BricsDesign

2 Likes