How to Reject Unprofessional Emails in a Webflow Form
Learn how to block consumer email addresses like Gmail and Hotmail in a Webflow B2B form with JavaScript.
In this tutorial, Sandro, cofounder of the Gemeos Webflow agency, shows you how to block consumer email addresses (Gmail, Hotmail, Yahoo...) in a Webflow B2B form.
Example
The script
Add this script to the body of your page. It intercepts the submission and shows an error message if the email comes from a consumer domain.
Customize the blacklist
Add or remove domains from the BLOCKED array depending on your industry. Some companies allow Gmail Workspace (a business email on a custom domain): make sure you don't block real business emails that use Gmail in the backend.
Conclusion
This snippet cuts down on noise in your CRM and improves the quality of your B2B leads. See also: Webflow anti-spam honeypot.
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.








.avif)






