HubSpot Knowledge Base

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

Written by Public API | Jan 1, 1970 12:00:00 AM

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: 

  • 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: 

  • 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.