Skip to content

Verify a custom-coded site

Where to add the verification tag or file in React, Next.js, Vue, plain HTML and server-rendered sites.

If your site is built with code rather than a website builder, verification works the same way: add a meta tag, a file or a DNS record. Here is where each goes in common setups. Open the site in EveryVisitor and go to Verify to copy your token.

Meta tag

Add this tag inside the <head> of your home page:

<meta name="everyvisitor-verify" content="YOUR_TOKEN">
  • Plain HTML: add it to the <head> of index.html.
  • Next.js (App Router): in app/layout.tsx, add it to the metadata export: export const metadata = { other: { "everyvisitor-verify": "YOUR_TOKEN" } };
  • Next.js (Pages Router): add the tag inside <Head> in pages/_app.tsx or pages/_document.tsx.
  • React with Vite or Create React App: add it to the <head> of index.html (in the project root or public/ folder).
  • Vue with Vite: add it to index.html. Nuxt: add it under app.head.meta in nuxt.config.ts.
  • Angular: add it to src/index.html.
  • PHP, Laravel, Django, Rails or .NET: add it to the layout template that renders the <head> of every page, such as resources/views/layouts/app.blade.php in Laravel.

Deploy, then choose Check again. The tag must be in the HTML the server sends. If your app only adds tags in the browser with JavaScript, use the file or DNS method instead.

File

Upload everyvisitor-verify.txt to /.well-known/ on your web server, or put it in your project’s public/ folder (public/.well-known/everyvisitor-verify.txt) so it is served at https://yoursite.com/.well-known/everyvisitor-verify.txt. The file contains only your token.

Some hosts hide folders whose names start with a dot. If the file returns “not found” after deploying, check that your build copies the .well-known folder, or use the meta tag.

DNS TXT record

Works the same for every site: add a TXT record on _everyvisitor.yourdomain.com with the value everyvisitor-verify=YOUR_TOKEN.

Your session has ended

Sign in again to carry on. Anything you typed on this page is kept.

Signed in another way? Use another method (opens a new tab)