Skip to content
Forms

Block form or pop-up form submissions from specific email domains

Last updated: September 19, 2022

Applies to:

Marketing Hub Starter, Professional, Enterprise
CMS Hub Starter, Professional, Enterprise
Legacy Marketing Hub Basic

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.

 

 

New Call-to-action
Was this article helpful?
This form is used for documentation feedback only. Learn how to get help with HubSpot.