Jump to content

How to block form submissions from free email domains

Recommended Posts

  • 6 months later...
On 4/9/2020 at 2:09 PM, Beni said:

I want to be able to put an email validation check into my forms so that I can ensure any form submissions are from work email addresses and not '@gmail.com' etc.

It is possible to block selected domains with some JavaScript, added through Code Injection. The exact code will depend on the specifics of the form and the addresses that you want to block. The list of free email domains is long and constantly changing so it will be difficult to "block form submissions from free email domains" as you asked in your question.

Can you explain WHY you want to block these? There may be better ways to achieve your required outcome.

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.