Help Targets

Verify that a website is yours

Prove you control a website with a DNS TXT record or a file on the site, check it from Bavn, and know what clears the proof again.

Bavn scans only what its owner has asked it to. Before the first scan of a website, you show that you control it in one of two ways: a DNS TXT record, or a small file on the site. Your email address must be confirmed first.

Repositories and networks are proved differently: a repository by an access token that can read it (Add a Git repository), a network range by the agent you run inside it (Scan an internal network).

Open the instructions

On the Targets list, choose Verify ownership on the website's row (it shows only while the target is not verified). The same button is at the top of the target's edit page. The window shows exactly what to publish for the method you picked when you added the target. The token in it starts with bavn- and belongs to this target only.

To switch method, choose Edit, change Method under Ownership verification, and save. That issues a new token.

With a DNS TXT record

  1. In your DNS provider, add a TXT record at _bavn. followed by your hostname. For shop.example.com the record's name is _bavn.shop.example.com.
  2. Give it the token from the window as its value.
  3. Wait for the record to be live — DNS changes can take a few minutes — then choose Check now.

Many DNS providers add your domain to the name for you. If yours does, enter only the part before the domain: for shop.example.com in the zone example.com, type _bavn.shop.

With a file on the site

  1. Create a text file whose only contents are the token.
  2. Serve it over HTTPS at https://<your hostname>/.well-known/<token>.txt — the file name is the token itself, so it reads bavn- followed by the rest of the token, then .txt. The window shows the full address.
  3. Choose Check now.

Bavn fetches the file once, over HTTPS on the standard port, and does not follow redirects: the address must answer with the file itself, not a redirect to another page, a login screen or the www. host. Spaces or a line break around the token do not matter.

After a check

  • Ownership verified — the target is verified and you can scan it. The Verified column turns on.
  • Not verified yet — Bavn could not find the record or the file. Check that it is live at exactly the name or address shown, and try again. Troubleshooting lists the usual causes.
  • Verify your email first — confirm your email address with the link Bavn sent at signup, then try again.

A scan started on a website that is not verified yet makes one more check before it runs; if that fails, the scan fails with "Target is not verified".

What clears the proof

Bavn keeps a target verified until you change what the proof was for. Changing a website's Hostname, Base URL or verification Method clears it and issues a new token, so a record or file placed for the old address cannot vouch for the new one. Verify the target again with the new token before its next scan. Changing only the Label keeps the proof.

All help articles