Monorepo for Tangled tangled.org

appview/state: update robots.txt #1060

merged opened by anirudh.fi targeting master from icy/rvmvtl
Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:hwevmowznbiukdf6uk5dwrrq/sh.tangled.repo.pull/3megmwoowy722
+8 -1
Diff #2
+8 -1
appview/state/state.go
··· 207 207 w.Header().Set("Content-Type", "text/plain") 208 208 w.Header().Set("Cache-Control", "public, max-age=86400") // one day 209 209 210 - robotsTxt := `User-agent: * 210 + robotsTxt := `# Hello, Tanglers! 211 + User-agent: * 211 212 Allow: / 213 + Disallow: /*/*/settings 214 + Disallow: /settings 215 + Disallow: /*/*/compare 216 + Disallow: /*/*/fork 217 + 218 + Crawl-delay: 1 212 219 ` 213 220 w.Write([]byte(robotsTxt)) 214 221 }

History

3 rounds 1 comment
sign up or login to add to the discussion
1 commit
expand
appview/state: update robots.txt
2/3 timeout, 1/3 success
expand
expand 1 comment

lgtm, ++ to disallowing compare. my hunch is that bots that we can't block via nginx will probably not respect this anyway, but worth a shot!

pull request successfully merged
1 commit
expand
appview/state: update robots.txt
2/3 timeout, 1/3 success
expand
expand 0 comments
1 commit
expand
appview/state: update robots.txt
2/3 timeout, 1/3 success
expand
expand 0 comments