How to Secure Your Squarespace Contact Form from Spam
Excitement tingling with every inbox notification, only to be met with the disheartening reality of another spam email. How can we shield our Squarespace website from the incessant invasion of contact form spam? Let's delve into the intricacies of thwarting this digital nuisance.
Our strategy revolves around configuring the forms to leverage reCAPTCHA, a complimentary service bestowed by Google. This ingenious solution scrutinizes the visitor's online trajectory and historical engagements, discerning the subtle nuances that distinguish humans from bots. Should the algorithm detect a bot-like demeanor, Google initiates a verification process, challenging the entity to prove its human authenticity. Undoubtedly, you've encountered these verifications – those prompting you to identify all images featuring crosswalks, traffic lights, and the like.
Sign up for Google ReCAPTCHA
First, you have to go to this link and sign in to any Google account you have.
Register your Website with Google
After successful login, you'll find yourself on the website registration page. Navigate through the process with the following steps:
In the Label field, input any descriptor of your choice for key identification. I personally opt for my website name, such as "Adlytic Marketing."
Opt for "reCAPTCHA v2" under the reCAPTCHA type, as Squarespace supports this version. Ensure the "I'm not a robot" option remains selected.
In the Domains section, exclude "https" or "www" when entering your domain. For instance, if your domain is "adlyticmarketing.com," input only "adlyticmarketing.com." Note that reCAPTCHA functions exclusively on the specified domain. If you manage multiple Squarespace websites, either list multiple domains or create distinct keys for each site.
Tick the box indicating acceptance of the reCAPTCHA Terms of Service.
Maintain the default settings for other fields and conclude the process by clicking on SUBMIT.
Ensure a seamless registration process by adhering to these guidelines.
Adding Keys
Clicking SUBMIT in the previous step, you'll be directed to a page revealing your SITE KEY and SECRET KEY. Ensure not to close this page.
Proceed to the backend of your Squarespace website and follow these steps:
Go to SETTINGS → ADVANCED → EXTERNAL API KEYS.
Scroll down to locate the GOOGLE RECAPTCHA section.
Copy the SITE KEY and SECRET KEY from the Google page.
Paste these keys into the respective fields in your Squarespace backend.
Confirm the changes by clicking SAVE in the top-left corner.
This integration process ensures the seamless incorporation of your reCAPTCHA keys into your Squarespace website, enhancing its security measures.
Adding ReCAPTCHA to Forms
With reCAPTCHA successfully activated for your website, the final step involves enabling it for each form. Follow these steps:
Go to the page housing the form on your website.
Enter the EDIT view, as if you were about to modify the form.
Look for the newly added tab called CAPTCHA.
Inside this tab, you'll find the option to ADD GOOGLE RECAPTCHA. Select this option.
Save the page to apply the changes.
By checking off the Google reCAPTCHA option in the CAPTCHA tab, you've seamlessly fortified each form on your Squarespace website with an additional layer of security. Your setup is now complete!