mirror of https://github.com/gophish/gophish
Cleaning up RobotsHandler
parent
5f5c8141c9
commit
871114a17d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue