HTML FormsSpam & security
Restrict to domain
Only accept submissions sent from your own websites. Submissions from anywhere else are rejected.
Starter, Pro and Business plans
Domain restriction is available on every paid plan.
Your access key is public, so anyone could copy your form onto another website. A domain allow-list makes Formclick accept submissions only when they come from pages on your own domains.
Set it up
- Open your form → Settings → Security.
- Under Restrict to domains, type a domain such as
example.comand press Enter. Add up to 20. - Add
localhostas well if you test the form on your computer. - Save. Leave the list empty to accept submissions from any website again.
How domains are matched
| Allowed | Accepted | Rejected |
|---|---|---|
example.com | example.com, www.example.com, shop.example.com | example.org, myexample.com, example.com.evil.net |
app.example.com | app.example.com, eu.app.example.com | example.com, www.example.com |
Paste a full URL if you like; https://www.example.com/contact is saved as example.com. Each domain includes all its subdomains.
What gets checked
Browsers tell Formclick which page a form was sent from (the Origin header, or Referer). If it isn’t one of your domains, or if it’s missing, the submission is rejected with 403 “This form doesn’t accept submissions from this website.” File uploads are checked the same way.
Things to know
- Calls from servers, cURL or mobile apps usually send no
Origin, so they are rejected while a list is set. Leave the list empty for forms used that way. - Browsers send the page’s
Originwith every form post. The exception is a site that setsReferrer-Policy: no-referrer: the browser then hides where the form came from and submissions are rejected. Use the default policy (strict-origin-when-cross-origin) on pages with your form. - Pages opened as local files (
file://) have no domain, so test onlocalhostinstead. - The restriction applies while your plan includes it. On the Free plan the saved domains are kept but not checked.
Still need help? Contact support or email support@formclick.io.