[hackers] [surf] Useragent strings do not count anymore. This is adding some text so every || Christoph Lohmann

From: <hg_AT_suckless.org>
Date: Fri, 16 Nov 2012 22:33:41 +0100 (CET)

changeset: 270:ffbff8ee3bef
tag: tip
user: Christoph Lohmann <20h_AT_r-36.net>
date: Fri Nov 16 22:31:36 2012 +0100
files: config.def.h
description:
Useragent strings do not count anymore. This is adding some text so every
website (especially Google) is fooled to believe us to be compatible. The
right way seems to be to add Surf at the end and let the big guys handle their
useragent header war.


diff -r 550dadf12096 -r ffbff8ee3bef config.def.h
--- a/config.def.h Fri Nov 16 16:12:09 2012 +0100
+++ b/config.def.h Fri Nov 16 22:31:36 2012 +0100
_AT_@ -1,5 +1,7 @@
 /* modifier 0 means no modifier */
-static char *useragent = "Surf/"VERSION" (X11; U; Unix; en-US) AppleWebKit/531.2+ Compatible (Safari)";
+static char *useragent = "Mozilla/5.0 (X11; U; Unix; en-US) "
+ "AppleWebKit/537.15 (KHTML, like Gecko) Chrome/24.0.1295.0 "
+ "Safari/537.15 Surf/"VERSION;
 static char *progress = "#0000FF";
 static char *progress_untrust = "#FF0000";
 static char *progress_trust = "#00FF00";
Received on Fri Nov 16 2012 - 22:33:41 CET

This archive was generated by hypermail 2.3.0 : Fri Nov 16 2012 - 22:36:06 CET