In the unlikely event that a robot ever finds this, disallow everything.
+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
func start_server(store Store) {
http.HandleFunc("/fetch", func(w http.ResponseWriter, r *http.Request) {
var since time.Time
w.Write([]byte(frame_html));
})
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))
}
log.Fatal(http.ListenAndServe(":"+strconv.Itoa(*port), nil))
}