Forms

Cloudflare email validation integration

One Worker in front of your Cloudflare site adds email validation to every form, with no change to the site. It adds the form guard to each page with an email field and checks each form post at the edge, so bots that skip JavaScript are caught too.

Read the full setup guideGet an API key

  • Setup guide
  • A Worker you download and deploy

Terminalfrom the unzipped folder

Terminal
npx wrangler secret put EV_SERVER_KEY
npx wrangler secret put EV_SETTINGS_TOKEN
npx wrangler deploy

At a glance.

Status
Setup guide. Not listed on a marketplace yet: you set it up yourself in a few steps, below and in the full guide.
For
Teams whose site runs through Cloudflare and who want every sign-up, contact and checkout form checked, on any platform, without editing each form.
You need
A domain on Cloudflare with its traffic proxied, two API keys (a server key for the edge, a browser key for the pages) and a settings token of at least 32 characters. Wrangler or the Cloudflare dashboard to deploy; a KV namespace for the settings page to save.
Costs
1 credit = 1 validated address, as with any API request. Free: unknown results, API errors, malformed addresses, test addresses on sandbox.email-validation.org, addresses on reserved domains such as example.com and, in a bulk list, repeats of an address (charged once).
Full guide
Read the full setup guide

Typical uses.

  • Every form, no code

    Pages with an email field get the form guard as they stream to the visitor: typo fixes and a clear message before the form is sent.

  • Stop bots at the edge

    Each form post (and, if you turn it on, each JSON post) is checked with your server key before it reaches your server, and blocked with your message and HTTP status, or passed on with X-EV-Status added.

  • Set it from one page

    Which paths and forms, which statuses to block, the messages, block or tag, the time budget and the browser key, on a settings page the Worker serves behind a token.

Set it up. 5 steps.

The short version of the full setup guide, which stays the reference when a step does not match what you see.

Read the full setup guide

  1. Download and create keys

    Download email-validation-cloudflare.zip from the guide. Create a server key and a browser key, each with only Validate addresses.

  2. Deploy the Worker

    Add EV_SERVER_KEY and EV_SETTINGS_TOKEN as secrets and deploy with npx wrangler deploy, or paste worker.mjs into a new Worker in the dashboard.

  3. Put it in front of your site

    Add a route such as example.com/* so the Worker sees your pages and form posts.

  4. Choose the settings

    Open the settings path on your site, enter the token, add your browser key for the form guard, and choose what to block and what each message says.

  5. Test it

    Send a form with disposable@sandbox.email-validation.org: the guard stops it in the browser, and a post without the browser gets the block message. Test addresses cost nothing.

Good to know.

  • It fails open: if our API is slow or answers with an error, the form goes through with X-EV-Status: unchecked, within the time budget you set (1.5 seconds by default).

  • The server key stays a Worker secret and never reaches a browser, and only a browser key is ever put in a page; the Worker logs outcomes and statuses only, never an address.

  • A form checked in the browser and again at the edge uses two credits; turn either part off to use one.

  • Log-in posts are left alone: the usual log-in and password paths are skipped by default, and a post with a field named as a password (password, pwd, pass) and no email field goes through unchecked. The Worker knows a password only by its field’s name, so skip the path of a log-in whose password field is named another way, and of a log-in by email at another path: both are still checked. Skipped forms (EV_SKIP_FORMS) apply in the browser only.

  • EV_REGION=eu sends every check to the EU endpoint, from the edge and from the browser, with the same keys.

Connect Cloudflare.

Test it on our sandbox addresses for free, then on your own contacts.

Create your accountRead the full setup guide

Updated · Maintained by: Email Validation LLC