SA Security BloggersPopular EntriesArticles How-To's Papers Tools Neologisms SSLCertificate fingerprints: SHA1: 61 13 45 4B 4C F9 89 9B B7 87 C8 78 F7 38 12 CB 07 E2 60 BF HTTPS version. LicenseDisclaimer
This blog and its contents are in no way affiliated with, or endorsed by my employer.
|
Random Entry: Honours Security Course Lecture
< MS05-039 and the Zotob summary | Patching Snake Oil > Friday, August 19. 2005Blocking Google TrackingTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
I do have to point out that your sanitiser has exactly the same privacy issues as Google's URL intercepting. Also, they've done this off and on for ages now; but I think the Javascript cloaking of the interception is new.
They could always track where you are going by checking their webserver logs, and I guess you have no reason to trust me (that's another reason to run your own), but it does prevent Google from tracking the dissemination of the link (if the link isn't de-googlified). Mostly it just gets rid of the nasty URL pasting.
I got a private e-mail with a suggestion of an alternative to the CURL library:
function sendToHost($host,$method,$path,$data,$useragent=0)
{
if (empty($method))
$method = 'GET';
$method = strtoupper($method);
$fp = fsockopen($host,80);
$path .= '?' . $data;
fputs($fp, "$method $path HTTP/1.1\n");
fputs($fp, "Host: $host\n");
if ($useragent)
fputs($fp, "User-Agent: MSIE\n");
fputs($fp, "Connection: close\n\n");
while (!feof($fp))
echo fgets($fp,128);
fclose($fp);
return 1;
}
sendToHost('www.google.com','get','/search','q=php_imlib',1);
Thanks Chris.
|
Quicksearchthis blog: Security Blogs |