Forms · Glossary

What is a domain restricted form?

A domain restricted form only opens, or only accepts answers, when a listed domain matches. In most tools that domain is the part of the respondent's email address after the at sign, so only people signed in with a company address get in. Other tools check the domain of the website the form is embedded on instead.

The same phrase covers two unrelated checks, and confusing them leaves a staff survey open to the public or an embedded form refusing to load on its own website. Knowing which domain is being tested tells you what the restriction actually proves about the person answering.

· Co-founder

6 min read · Published

Domain restricted, login required and secret key compared
Domain restricted (this builder)Login required with @domainSecret key
What is checkedThe website the form is framed inThe email address on a signed in accountA shared key typed into a gate
What it provesThe page showing the form is on an allowed siteThe person holds an account with a matching addressThe person was told the key
Effort for the respondentNone on an allowed siteSign in, or create an account firstType the key once
Opened anywhere elseAn access denied message instead of the formA sign in promptA key prompt
StrengthA light safeguard; the reported address can be faked outside a browserStrong for who opened itA shared password that can be passed on
Best forA form placed on your own websiteStaff and member formsA known group without accounts

Two checks that share one name

The first kind is about people. The form asks the respondent to sign in and compares the domain of their email address with an allowed list, so a survey meant for staff at one company only works for addresses at that company. The second kind is about pages. The form looks at the address of the website it is being shown inside and refuses to load anywhere that is not on the list. One restricts who answers, the other restricts where the form appears, and neither does the other's job. A staff survey protected only by a website check is open to anybody who finds the link, and a widget protected only by an email check forces every visitor on your site to sign in.

How each check actually works

An email domain rule is only as strong as the account behind it. It trusts that the person controls the address they signed in with, so it works well where accounts are verified and badly where anyone can type any address. It also checks the address, not your staff directory, so a contractor on a different domain needs adding by name and a leaver who still controls an account keeps access until the rule changes. A website rule depends on what the browser reports. When a page frames another page, the framed page can see the address of its parent, and it compares that with the list. That stops a form being lifted onto somebody else's site in an ordinary browser, but a request made with a script outside a browser can claim any origin it likes.

Where each one belongs

Use the email domain kind for internal requests, staff surveys, member ballots and anything where a response needs to come from inside an organisation. Use the website kind when a form sits inside your own pages, such as an enquiry form on a clinic website, and you want a copied embed code to fail on other sites. Use neither as the only protection for sensitive information. A website check is a courtesy lock, and an email domain check tells you that somebody with the right kind of address opened the form, which is not the same as knowing which person answered. Where both matter, such as a staff form placed on an intranet page, choose the check that protects the answers, which is almost always the email domain, and accept that the form can also be reached by link. A rule nobody can explain to the people it keeps out will be switched off the first time it blocks somebody senior.

Common mistakes

The most frequent is choosing the website kind for an internal form because the word domain sounded right, then discovering the form is open to anyone with the link. The second is forgetting the site that is actually serving the page: a form embedded on a staging site, a www and a bare domain, or a booking page on a separate host all need to be on the list before launch day. The third is testing only as the owner. Owners usually bypass access rules in form tools, so open the published form in a private window, from the real page, before telling anybody it works.

How it works in this form builder

The access type called domain restricted is the website kind. It is labelled for iframe embedding and takes a list of Allowed Parent Domains, one per line; leaving the list empty lets the form open anywhere, and a page that is not on the list shows an access denied message. The builder itself describes it as a light safeguard rather than strong security and points to secret key or login required for private forms. Restricting a form to company email addresses is done with login required instead, by adding an entry such as @harbourline.com.au to the allowed list, or by switching on Allow Any Signed User. A form has one access type, and access settings are stored with each published version, so a change takes effect when the form is published.

Questions people ask

Can individual outside addresses sit alongside a company domain?

In most tools, yes, and it is the usual answer for contractors, board members and auditors who use their own email. List the domain for staff and add each outside person by full address. In this builder, the login required allowed list accepts both in the same box, so an entry for the whole domain and a handful of named addresses can live together.

Does a domain rule record who submitted the form?

Not necessarily. Checking an account at the door and saving that account with the answers are separate steps, and many tools only do the first. In this builder a response stores the answers, the time and the form version, but not the signed in account. If you need to know who answered, ask for the name in the form and say why.

Should a subdomain be listed separately?

Check how your tool treats subdomains before relying on it, because some match a listed domain and everything under it while others need each host named. The safe habit is to list the exact hosts your pages are served from, including any staging or booking subdomain, then open the form from each one in a private window to confirm it loads.

Can a domain restricted form be public as well?

Not at the same time in this builder, because a form carries exactly one access type. If the same questions need to be embedded on your website and also sent as a plain link to people elsewhere, the honest options are a public form, or two copies with different access settings and separate response tables.

What happens to answers already collected if the restriction changes?

Nothing. Access rules decide who can open the form from now on; they do not reach back into responses that were submitted earlier. That also means tightening a rule after a link has leaked does not remove anything a stranger already sent, so read recent responses when you change it.

Is a website check the same as blocking framing on the server?

No. Servers can send a frame ancestors policy that tells browsers which sites may frame a page at all, which is the standard defence against a page being framed to trick people. A form level website check is a separate, softer rule applied by the form itself, and it relies on the address the browser reports.

Make one with forms

The button opens the generator with this use case already described. Change the wording to match your own.

Create a form with OneCraft

Related questions

Step by step in the builder: Control who can fill in your form, then Publish updates without breaking your live link.

Sources

Written and checked by the OneCraft team. Last checked .