Add your first site

Add a domain to OpenWAF, point it at the edge with nameservers or a CNAME, and put its first site behind the WAF with an automatic certificate.

On this page

A site goes through OpenWAF when its name answers with the OpenWAF edge. There are two ways to get there; choose one per domain:

Delegated (recommended)External
Dashboard optionUse OpenWAF nameserversKeep your current DNS (CNAME/A records)
Who answers DNSOpenWAF, for every name of the domainYour current DNS provider
What you changeThe nameservers at the registrarOne TXT record, then one CNAME (or A/AAAA) per site
ActivationWhen the registrar delegates the domain to your pairWhen the TXT record is visible
Good forMost domains: everything in one placeDomains registered at Cloudflare Registrar, or when the DNS must stay where it is

Read Delegated and external zones for the full comparison. You need the tech role or higher.

Before you start

  • Add the registrable domain (example.com), not a subdomain or a URL. Subdomains such as www or shop are names inside the domain.
  • Know the address of your origin: the server that answers the site today (an IP address or a host name).
  • New sites connect to the origin over HTTPS and verify its certificate (Full strict). If your origin only speaks HTTP or has a self-signed certificate, see SSL/TLS before you proxy the site.
  • The WAF is on for new domains, in blocking mode at medium sensitivity. See WAF to start in log-only mode.

Delegated domain

  1. Add the domain. In the dashboard, open Add domain, enter example.com and choose Use OpenWAF nameservers (recommended). Optionally, pick the client it belongs to. Select Add domain.

    Domains › Add domain, as above. Right after you sign up, the same form opens as Let's protect your first site.

  2. Review the DNS records. OpenWAF copies the records your domain publishes today (and names found in public certificate logs) into the new zone, without proxy. Check that everything is there, especially mail (MX, TXT): after the switch, only these records will resolve. Select Scan again to look for more, or add records by hand. See Manage DNS records.

  3. Change the nameservers at your registrar. Replace all the current nameservers of the domain with exactly the two names shown (your organization's pair). Disable DNSSEC at the registrar first if it is enabled. The dashboard has step-by-step instructions for common registrars and shows the delegation status live. See Delegate a zone to OpenWAF.

  4. Wait for activation. OpenWAF checks the delegation every few minutes and activates the domain as soon as the registry and public resolvers show your pair. It usually takes minutes to a few hours, up to 48 hours for some top-level domains. Select Check now to check immediately.

  5. Turn on the proxy for your sites. In DNS › Records, switch Proxy status to Proxied on the A, AAAA or CNAME records of each site to protect (for example example.com and www). Their content becomes the origin the edge connects to. See Proxied and DNS-only records.

  6. Let the certificates issue. OpenWAF issues the HTTPS certificates automatically, usually within a couple of minutes. The domain's Overview shows when every site is protected.

External domain

  1. Add the domain. Open Add domain, enter example.com and choose Keep your current DNS (CNAME/A records).

    Domains › Add domain › Keep your current DNS (CNAME/A records).

  2. List the sites to protect. For each one, enter the name (www, or @ for example.com itself) and its origin (203.0.113.10 or origin.example.net). Each site becomes a proxied record in the zone.

  3. Verify that the domain is yours. At your current DNS provider, create the TXT record shown:

    _openwaf.example.com.  TXT  "openwaf-verify=<token>"

    OpenWAF looks for it every few minutes (or when you select Check now) and activates the domain when a public resolver sees it. See Keep your DNS provider.

  4. Point each site to OpenWAF. Only after the domain is active, change each site's record at your DNS provider:

    www.example.com.  CNAME  edge.openwaf.dev.

    At the root of the domain, where a CNAME is not allowed, create A and AAAA records with the edge addresses shown in DNS › Settings, or a CNAME if your provider flattens it.

  5. Check the pointing. The domain's Overview shows whether each site points to OpenWAF. HTTPS certificates are issued automatically a few minutes after a site points here.

After the site is live

Last updated:

↑↓ to navigate↵ to openesc to close