Cleaning up RobotsHandler

pull/603/head
Jordan Wright 2017-04-27 18:14:14 -05:00
parent 5f5c8141c9
commit 871114a17d
1 changed files with 2 additions and 2 deletions

View File

@ -272,9 +272,9 @@ func PhishHandler(w http.ResponseWriter, r *http.Request) {
w.Write(htmlBuff.Bytes())
}
// Prevents search engines, etc. from indexing phishing materials
// RobotsHandler prevents search engines, etc. from indexing phishing materials
func RobotsHandler(w http.ResponseWriter, r *http.Request) {
w.Write(([]byte)("User-agent: *\nDisallow: /\n"))
fmt.Fprintln(w, "User-agent: *\nDisallow: /")
}
// Use allows us to stack middleware to process the request