From owner-freebsd-hubs Wed Nov 20 5:17:17 2002 Delivered-To: freebsd-hubs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3697B37B401 for ; Wed, 20 Nov 2002 05:17:16 -0800 (PST) Received: from bast.unixathome.org (bast.unixathome.org [66.11.174.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id A502543E3B for ; Wed, 20 Nov 2002 05:17:15 -0800 (PST) (envelope-from dan@langille.org) Received: from wocker (wocker.unixathome.org [192.168.0.99]) by bast.unixathome.org (Postfix) with ESMTP id D6A5F3F4B; Wed, 20 Nov 2002 08:17:09 -0500 (EST) From: "Dan Langille" To: Date: Wed, 20 Nov 2002 08:17:09 -0500 MIME-Version: 1.0 Subject: Re: automatic URL refreshing to local country mirror Cc: freebsd-hubs@FreeBSD.ORG Message-ID: <3DDB4505.3085.B883B3F9@localhost> In-reply-to: <000601c29039$2ada9960$c700a8c0@shadow> X-mailer: Pegasus Mail for Windows (v4.02a) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Sender: owner-freebsd-hubs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On 19 Nov 2002 at 21:04, Will Mitayai Keeso Rowe wrote: > This is just a thought, something in my terabyte-long list of things I > dreams about. > > My laptop connects to the public internet through a residential cable > connection in Toronto, Canada. > > when I go to http://www.google.com/ I get redirected to > http://www.google.ca/ > > how do they do this? I can think of several ways to do it, but I've > not really experimented with them. My guess: IP address. If you know the IP address, you can figure out what country it "belongs". This information is avaialable via "whois". -- Dan Langille : http://www.langille.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hubs" in the body of the message