Question

restricting form submission on website

Hi there,

Is it possible to restrict form submission on websites with a firewall to stop spammy and bot submissions? I manage a domain for a golf course in Cornwall who suffer with emails from non-genuine accounts. Looking for a way to detect and restrict bots on the page if possible. Thanks!


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

KFSys
Site Moderator
Site Moderator badge
April 10, 2023

Hey there,

You can’t restrict form submission on your website with Firewall however you can use Captcha for instance. Depending on the application you use, it will need different configuration however, here are the steps that are the same for every application:

To implement Captcha v2 in a web application, you can follow these steps:

  1. Sign up for reCAPTCHA: Go to the reCAPTCHA website (https://www.google.com/recaptcha/admin/create) and sign up for an account. You will need to provide your website URL and select the reCAPTCHA version you want to use (v2 “I’m not a robot” checkbox).

  2. Register your website: Once you have signed up for reCAPTCHA, you will need to register your website and obtain the site key and secret key. You can do this by clicking on the “Admin Console” button on the reCAPTCHA website and following the instructions provided.

From there you’ll need to implement it in your website.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel