Domain Restrictions

Control which websites are allowed to submit data to your form endpoint.

What it does

Domain restrictions limit which websites can POST to your form endpoint by checking the Origin and Referer HTTP headers on each request. If the request comes from a domain not on your list, it is rejected with a 403 Forbidden response.

This prevents other websites from embedding your form endpoint URL in their own pages and consuming your submission quota.

Business feature: Domain restrictions are available on the Business plan.

Important: This checks the HTTP origin of the request — the website the visitor is on when they submit the form. It does not check the submitter's email domain. For blocking specific email addresses, see Email Blocklist.

How matching works

FormBlade extracts the hostname from the Origin header. If no Origin header is present, it falls back to the Referer header. The hostname must exactly match one entry in your allowed list.

Allowed listRequest originResult
example.com https://example.com Allowed
example.com https://shop.example.com Blocked
example.com, shop.example.com https://shop.example.com Allowed
example.com http://example.com Allowed (protocol ignored)
(empty list) Any origin Allowed (no restrictions)

Subdomains do not automatically match their parent domain. If your form is used on both example.com and www.example.com, add both to the list.

What happens when blocked

Requests from unlisted domains receive:

HTTP 403 Forbidden
Content-Type: application/json

{
  "ok": false,
  "error": "Submissions from this domain are not allowed"
}

Browser form submissions see a plain error page with the same message.

Setup

  1. Open your form in the dashboard.
  2. Go to the Security tab.
  3. Find the Allowed domains textarea.
  4. Enter one domain per line — hostnames only, no protocol or path.
  5. Click Save.

Example configuration

example.com
www.example.com
shop.example.com
landing.example.com

Limitations

Not a security guarantee. The Origin and Referer headers are set by the browser and can be spoofed by bots or custom HTTP clients. Domain restrictions are a UI-level control that prevents casual misuse — they are not a substitute for authentication or captcha.

When to use domain restrictions

For maximum protection, pair domain restrictions with a captcha provider that binds to your domain (such as reCAPTCHA or Turnstile with domain verification).