From: Scott Worley Date: Mon, 6 Aug 2012 05:15:57 +0000 (-0700) Subject: robots.txt: Disallow * X-Git-Url: http://git.scottworley.com/reliable-chat/commitdiff_plain/e3e35bbed2617705f4db1c90e5e986f7e54c18da?ds=inline;hp=5afebfc66c48be6f07f6c829513faa7f9ffd6470 robots.txt: Disallow * In the unlikely event that a robot ever finds this, disallow everything. --- diff --git a/server/server.go b/server/server.go index 1bb7c9a..574d2e1 100644 --- a/server/server.go +++ b/server/server.go @@ -156,6 +156,10 @@ const frame_html = ` ` +const robots_txt = `User-agent: * +Disallow: / +` + func start_server(store Store) { http.HandleFunc("/fetch", func(w http.ResponseWriter, r *http.Request) { var since time.Time @@ -195,6 +199,10 @@ func start_server(store Store) { w.Write([]byte(frame_html)); }) + http.HandleFunc("/robots.txt", func(w http.ResponseWriter, r *http.Request) { + w.Write([]byte(robots_txt)); + }) + log.Fatal(http.ListenAndServe(":"+strconv.Itoa(*port), nil)) }