From: Malte S. Stretz Date: Wed, 1 Sep 2010 11:48:28 +0000 (+0200) Subject: Avoid indexing of darkstat pages. X-Git-Tag: 3.0.714~48 X-Git-Url: https://unix4lyfe.org/gitweb/darkstat/commitdiff_plain/418df45da94da353ff4e7043002760e24dec79eb?hp=0d32a43eac663af8d57f615b5849c1e6f6b8b053 Avoid indexing of darkstat pages. The data displayed by darkstat is probably not something which you want to appear on Google and friends. Just have a try: http://www.google.com/search?q=intitle:darkstat+inurl:666 http://www.google.com/search?q=intitle:darkstat+inurl:667 --- diff --git a/html.c b/html.c index 94631e1..4650353 100644 --- a/html.c +++ b/html.c @@ -23,6 +23,7 @@ void html_open(struct str *buf, const char *title, const char *interface, str_appendf(buf, "%s (darkstat3 : %s)\n" "\n", title, interface, PACKAGE_STRING); + str_append(buf, "\n"); str_appendf(buf, "\n", base_url, "style.css"); if (header_callback != NULL) diff --git a/http.c b/http.c index 0c9b141..08b6bf7 100644 --- a/http.c +++ b/http.c @@ -384,6 +384,7 @@ static void generate_header(struct connection *conn, "Content-Type: %s\r\n" "Content-Length: %d\r\n" "Content-Encoding: %s\r\n" + "X-Robots-Tag: noindex, noarchive\r\n" "%s" "\r\n" ,