Files
davidandClaude Opus 5.5 47cc8b2b10 Phase 13, part 4: proving a team's domain
Before Supermarket crawls a team's website, reads its Search Console data
or publishes to it, the team proves the domain is theirs: a DNS TXT
record, a file on the site, or owning its Search Console property. One
team holds a domain at a time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 12:21:42 -07:00

28 lines
1.9 KiB
HTML

{{define "content"}}{{template "settings-start" .}}{{with .Data}}
<h2>Domain</h2>
<p class="lede">This team works on <strong>{{.Team.Domain}}</strong> and its subdomains. Before Supermarket crawls the website, reads its Search Console data or publishes to it, prove the domain is yours, one of three ways.</p>
{{with .Problem}}<p class="error" role="alert">{{.}}</p>{{end}}
{{if .Team.Proved}}
<section class="card"><p><span class="pill ok">Proved</span> {{ago .Team.Verified}}, {{if eq .Team.VerifiedBy "dns"}}by a DNS record{{else if eq .Team.VerifiedBy "file"}}by a file on the site{{else}}through Search Console{{end}}. You can remove the record or the file now.</p></section>
{{else}}
{{if .Holder}}<p class="warn-text">Another team has proved {{.Team.Domain}}. If it's yours, ask the platform's admins to release it.</p>{{end}}
<section class="card">
<h3>1. A DNS record</h3>
<p>Add a <strong>TXT</strong> record to <code>{{.Team.Domain}}</code> holding:</p>
<pre id="txt">{{.Token}}</pre> <button type="button" class="secondary small" data-copy="txt">Copy</button>
<form method="post" action="/settings/domain/check/dns"><button type="submit">Check the record</button></form>
</section>
<section class="card">
<h3>2. A file on the website</h3>
<p>Publish <code>https://{{.Team.Domain}}{{.Path}}</code> (or on <code>www.</code>) holding the same line:</p>
<pre>{{.Token}}</pre>
<form method="post" action="/settings/domain/check/file"><button type="submit">Check the file</button></form>
</section>
<section class="card">
<h3>3. Search Console</h3>
<p>If the Google account connected under <a href="/settings/search">Settings → Search engines</a> is an <em>owner</em> of the domain's property in Search Console, that's proof enough.</p>
<form method="post" action="/settings/domain/check/search-console"><button type="submit">Check Search Console</button></form>
</section>
{{end}}
{{end}}{{template "settings-end"}}{{end}}