Validate a place-rules.json file
Nothing is uploaded. The check runs in this browser tab against the place-rules/0.1 JSON Schema, which is built into this page. Pasted text and chosen files stay on your device.
or paste it below.
The result means the file has the right shape. It does not check that the rules are correct for your place, and it is not legal advice.
How to publish your file
- Make the file. Start from the generator or a sample above, then check it here.
- Put it at
https://<your-domain>/.well-known/place-rules.json, over HTTPS, on the place's own domain. Keep it under 64 KB. - Serve it as JSON:
Content-Type: application/json(UTF-8). Most hosts do this for.jsonfiles. Check withcurl -sI https://<your-domain>/.well-known/place-rules.json. - Allow other sites to read it: send
Access-Control-Allow-Origin: *so browser apps and maps can fetch it. On GitHub Pages this is already on. On Netlify or Cloudflare Pages add it in a_headersfile; on nginx useadd_header Access-Control-Allow-Origin "*";in alocation /.well-known/block. - Keep
updatedcurrent and setexpiresfor temporary rules, so readers know when to fetch again.
Claim and verify your place
- Get a token on the claim page.
- Prove you control the domain in one of three ways: put
"verification": {"method": "well-known", "token": "<token>"}in the file, add<meta name="place-rules-verification" content="<token>">to your home page, or add a DNS TXT record_place-rules.<domain>withplace-rules-verification=<token>. - The claim page prefills a GitHub claim issue. An automated check reads your
/.well-known/place-rules.json, confirms the token and opens a pull request with your owner file. Once it is merged, your file overrides any reported entry for your place. - Your website badge then reads owner-verified.
Readers fetch your file and the registry with plain GETs; see the developer guide and the spec.