Block form or pop-up form submissions from specific email domains
Last updated: January 17, 2023
You can prevent visitors with email addresses containing specific domains from submitting your HubSpot form or pop-up form. To further protect your forms from spam submissions, learn how to enable CAPTCHA on your forms.
Block email domains on a form
To block email domains on a HubSpot form:
- In your HubSpot account, navigate to Marketing > Lead Capture > Forms.
- Hover over a form and click Edit.
- In the form editor, hover over the Email field and click the edit edit icon.
- Enter the domains you want to block in the Email domains to block field, separated by commas. Enter only the root domain without the www prefix or @ symbol. For example, enter gmail.com, not www.gmail.com or @gmail.com.
- Select the Block free email providers checkbox to block HubSpot's default list of free domains, this is optional.
- In the top right, click Update or Publish. When a visitor attempts to enter a blocked domain in the Email field on your form, they will see a message asking them to enter a business email address.
Block email domains on a pop-up form
To block email domains on a pop-up form:
- In your HubSpot account, navigate to Marketing > Lead Capture > Forms.
- Hover over a form and click Edit.
- Click the Form tab.
- In the left pane, under the Added fields section, click the edit pencil icon next to the Email field.
- Enter the domains you want to block in the Email domains to block field, separated by commas. Enter only the root domain without the www prefix or @ symbol. For example, enter gmail.com, not www.gmail.com or @gmail.com.
- Select the Block free email providers checkbox to block HubSpot's default list of free domains, this is optional.
- Finish setting up your pop-up form. When a visitor attempts to enter a blocked domain in the Email field on your pop-up form, they will see a message asking them to enter a business email address.
Related content
-
Send follow-up emails after form submissions
You can automate lead nurturing by adding follow-up emails to your HubSpot forms. With any HubSpot account,...
Knowledge Base -
Troubleshoot HubSpot forms
HubSpot forms allow you to gather important information about your visitors and contacts in HubSpot. If...
Knowledge Base -
Create forms
Use forms to gather important information about your visitors and contacts. In HubSpot, you can easily create...
Knowledge Base