Skip to content

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

Last updated: May 31, 2023

Available with any of the following subscriptions, except where noted:

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

You can block either specific email domains or HubSpot's default list of free domains on your forms. 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.

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.
  • In the Email domains to block field, enter the domains you want to block.
    • Each domain should be 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.
  • To block HubSpot's default list of free domains, select the Block free email providers checkbox.
  • In the top right, click Update or Publish

Block email domains on a pop-up form

Similar to regular forms, you can block either specific email domains or HubSpot's default list of free domains on your pop-up forms. 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.

To block email domains on a pop-up form: 

  • In your HubSpot account, navigate to Marketing > Lead Capture > Forms.
  • Hover over a pop-up 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.

 

  • In the Email domains to block field, enter the domains you want to block.
    • Each domain should be 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.
  • To block HubSpot's default list of free domains, select the Block free email providers checkbox.
  • Finish setting up your pop-up form

 

 

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