Not every form should accept any email address. Internal HR forms should only accept company emails. University applications might require
Auto Form Builder includes built-in email domain restriction on the Email field type. Enable an allowlist of permitted domains, and the form rejects anything else — with clear error messages — before submission.
Last updated: Last update 12 August
Email domain restriction limits which email addresses a form accepts based on the part after the
Auto Form Builder uses an allowlist approach — you specify domains that are permitted. Any email from a domain not on the list is blocked with an inline error message.
This is configured per email field, so one form can have a strict work-email field and a separate personal-email field with different rules — or no restriction at all.
Example allowed domains list:
The form validates the domain when the visitor leaves the email field and again before the form is submitted. If the domain is not allowed, submission is blocked and the page scrolls to the error.
When domain restriction is enabled, Auto Form Builder:
Standard email format validation still applies — the address must be a valid email before domain checking runs.
Restrict to your company domain so only staff can submit HR requests, IT tickets, or internal feedback forms.
Accept emails from your institution and partner universities.
Limit registration to known partner organization domains.
When vetting suppliers, restrict submissions to domains you have pre-approved for the application period.
Companies with regional domains can allow all variants on one form.
Domain restriction works alongside the Add Confirmation Field option in email field settings. When both are enabled:
This combination catches typos and enforces domain policy — ideal for registration and account forms where email accuracy matters.
Use conditional logic to show different email fields with different domain rules based on the user’s selection:
Each email field has its own independent domain allowlist, giving you flexible per-audience restrictions within a single form.
Understanding the limits helps you use the feature correctly:
In Auto Form Builder, select an Email field, enable Restrict Allowed Email Domains in field settings, enter permitted domains (one per line, without @), and save the form.
Yes. Enter each allowed domain on a separate line in the Allowed Email Domains field. The form accepts emails from any domain on the list.
Auto Form Builder uses an allowlist, not a blocklist. To exclude personal email providers, list only the domains you want to accept rather than domains to block.
Validation runs when the visitor leaves the email field (on blur) and again when they submit the form. Invalid domains show an inline error and block submission.
Yes. You can enable both Restrict Allowed Email Domains and Add Confirmation Field on the same email field. Domain is checked on the primary email input; the confirmation field must match.
Yes. Email domain restriction on the Email field type is included in the free Auto Form Builder plugin from WordPress.org.
Control who can submit your forms by restricting email domains to company, academic, or partner addresses — configured in a few clicks with no custom code.
Download: Plugin last updated: Last update 12 August Auto Form Builder lets you create multi-step forms, calculators, and lead capture forms in WordPress, then embed them on any site with a single line of code.How to Restrict Email Domains in WordPress Forms
.edu addresses. Partner registration forms may need emails from approved organization domains.
What Is Email Domain Restriction?
@ symbol. For example, if you allow only yourcompany.com, then [email protected] passes but [email protected] is rejected.
How to Enable Domain Restriction
@ symbolyourcompany.com
partner.org
university.edu
How Validation Works
@)Common Use Cases
Employee-only internal forms
yourcompany.com
Student or academic forms
university.edu
partnercollege.edu
B2B partner registration
partner1.com
partner2.org
partner3.co.uk
Approved vendor applications
Multi-domain organizations
company.com
company.co.uk
company.de
Combine with Email Confirmation
Combine with Conditional Logic
university.eduuniversity.edu and research.orgBest Practices for Email Domain Restrictions
company.com, not @company.com.co.uk, .de) if your organization uses themWhat Domain Restriction Does Not Do
mail.company.com and company.com are treated as different domains unless both are addedStep-by-Step Example: Employee Feedback Form
acmecorp.com[email protected] (should pass) and [email protected] (should fail)Frequently Asked Questions
How do I restrict email domains in a WordPress form?
Can I allow multiple email domains on one form?
Can I block specific domains like Gmail?
When is the email domain validated?
Does domain restriction work with email confirmation?
Is email domain restriction included in the free plugin?
Get Started with Auto Form Builder
Auto Form Builder on WordPress.org
Build forms that embed anywhere — free
Table of Contents
Table of Contents
Learn how to bulk delete form submissions in WordPress. Remove multiple entries at once to clean up spam, test data, and old submissions efficiently.
Master WordPress form submission management. Learn to view, filter, search, star, export, and organize form entries like a pro with this complete guide.
Learn how to search and find form submissions in WordPress. Filter by date, form, status, and search across all submission data.
Comparing Auto Form Builder and Contact Form 7 for WordPress. See which form plugin offers better ease of use, features, and value for your website.
Learn how to view, organize, search, filter, and export your WordPress form submissions. Complete guide to submission management.
Learn why storing form data on your own server helps with GDPR compliance. Choose form plugins that keep your user data local and under your control.
Learn the best practices for email collection forms in WordPress. Reduce bounces, prevent typos, and build a quality email list with proper form design.
Learn how to filter WordPress form submissions by date. Find entries from specific time periods quickly using date range filters.
Learn how to bulk edit, delete, and manage form submissions in WordPress. Save time with mass actions on multiple entries at once.
Learn how to restrict date fields to future dates only for event registration forms. Block past dates and set booking windows in WordPress.
Learn how to create quantity fields in WordPress forms. Collect numbers for guests, items, tickets, and more with proper validation and limits.
Learn how to star and flag important form submissions in WordPress. Prioritize leads, mark urgent requests, and organize your form entries effectively.