Add your ID with a response header
Send your Publisher ID in a response header on every page. One server setting covers your whole website.
In short
- You need: access to your server, proxy, CDN or application code.
- You do: add one response header, then check it's live.
- Done when: every page response includes
Better-Web-Publisher.
The header to send
This is an example Publisher ID. Replace it with your own before using it.
Better-Web-Publisher: zapub_7Fq2xR9nKd3wV8mB4tL6yH1c
This alone is enough only for an already-clean website
The header announces that you take part. It doesn't remove ads or unlock content. If your website has ads, cookie banners, trackers, popups or a paywall, also remove them for subscribers. Check whether your website is already clean →
1. Add the header
Choose the place where you manage your website. Add the header once, so it applies to every page.
Nginx
This is an example Publisher ID. Replace it with your own before using it.
add_header Better-Web-Publisher "zapub_7Fq2xR9nKd3wV8mB4tL6yH1c" always;
Caddy
This is an example Publisher ID. Replace it with your own before using it.
header Better-Web-Publisher "zapub_7Fq2xR9nKd3wV8mB4tL6yH1c"
Apache — in .htaccess or a virtual host, with mod_headers enabled:
This is an example Publisher ID. Replace it with your own before using it.
Header set Better-Web-Publisher "zapub_7Fq2xR9nKd3wV8mB4tL6yH1c"
A CDN or edge worker — Cloudflare, Fastly and similar services can add response headers the same way.
Node, Bun or Deno — the official SDK builds the header for you:
This is an example Publisher ID. Replace it with your own before using it.
import { createPublisher } from "@zeroad.network/token"
const publisher = createPublisher({
publisherId: "zapub_7Fq2xR9nKd3wV8mB4tL6yH1c",
hostnames: "example.com",
})
// On every response:
response.setHeader(...publisher.header)
The same publisher also checks subscriber tokens, if you need to remove ads for subscribers.
PHP — use the PHP SDK, or any framework's response API.
2. Check it's live
Request one of your pages, and look for the header. Replace example.com with your website:
curl -s -D - -o /dev/null https://example.com/ | grep -i better-web-publisher
You should see your Publisher ID. You can also open your browser's developer tools, select the page request in the Network tab, and look under Response headers.
3. Get your website listed
Your website appears in Websites & creators after a subscriber visits it and their activity is processed.
To see it sooner, add it yourself: open Add a website or creator page, enter your address, and select Verify & add. This uses the browser extension, but no paid membership. More about statuses →
Troubleshooting
The header is missing on some Nginx pages. Nginx ignores add_header lines from outer blocks when a location block has its own. Add the line to that location block too.
The header is missing behind a CDN. Check whether your CDN strips or overrides custom response headers.
You serve several hostnames. Send the same header from all of them. Your Publisher ID belongs to your account, not to one website.
Next step
- Website has ads, banners, trackers, popups or a paywall: remove ads for subscribers.
- Website is already clean: you're done. See how you earn →