Skip to content

Instantly share code, notes, and snippets.

@BelodedAleksey
Created April 3, 2020 19:26
Show Gist options
  • Save BelodedAleksey/da41af76d3a9d7fb631eaa21f93885d2 to your computer and use it in GitHub Desktop.
Save BelodedAleksey/da41af76d3a9d7fb631eaa21f93885d2 to your computer and use it in GitHub Desktop.
if r.URL.String() == "/robots.txt" {
w.Write([]byte("User-agent: *\nDisallow: /"))
return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment