2004-10-29 jrandom

* Strip the Referer, Via, and From headers completely, rather than
      inserting a bogus value ("i2p").  This should help with the use of
      SnipSnap and Geeklog (thanks nickster and DrWoo!)
This commit is contained in:
jrandom
2004-10-30 02:40:52 +00:00
committed by zzz
parent 0c51f2b583
commit 892786bf0c
3 changed files with 17 additions and 6 deletions

View File

@@ -298,11 +298,17 @@ public class I2PTunnelHTTPClient extends I2PTunnelClientBase implements Runnable
line = "User-Agent: MYOB/6.66 (AN/ON)";
} else if (line.startsWith("Referer: ")) {
// Shouldn't we be more specific, like accepting in-site referers ?
line = "Referer: i2p";
//line = "Referer: i2p";
line = null;
continue; // completely strip the line
} else if (line.startsWith("Via: ")) {
line = "Via: i2p";
//line = "Via: i2p";
line = null;
continue; // completely strip the line
} else if (line.startsWith("From: ")) {
line = "From: i2p";
//line = "From: i2p";
line = null;
continue; // completely strip the line
}
}