Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!hq-usenetpeers.eweka.nl!hq-usenetpeers.eweka.nl!bcyclone04.am1.xlned.com!bcyclone04.am1.xlned.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.056 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'responding': 0.07; 'translate': 0.10; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'hides': 0.16; 'name)': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'subject:request': 0.19; 'cc:addr:python.org': 0.22; 'format,': 0.24; 'instance,': 0.24; 'guys': 0.24; 'header': 0.24; 'question': 0.24; 'cc:2**0': 0.24; 'least': 0.26; '(for': 0.26; 'header:In- Reply-To:1': 0.27; 'point': 0.28; 'host': 0.29; 'am,': 0.29; 'related': 0.29; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; '13,': 0.31; 'anyone': 0.31; 'run': 0.32; 'another': 0.32; 'running': 0.33; 'entirely': 0.33; 'subject:the': 0.34; 'common': 0.35; 'case,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'accessing': 0.36; 'changing': 0.37; 'server': 0.38; 'depends': 0.38; 'either': 0.39; 'even': 0.60; "you're": 0.61; 'address': 0.63; 'name': 0.63; 'anything.': 0.68; 'reverse': 0.68; 'fact,': 0.69; 'domain,': 0.84; 'hardly': 0.84; "site's": 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=sf2rbfj13wyVECL+XdZe8m+Ol/4GOUq9vvSK79hk65w=; b=iUj7qxwa8NanC5NAGSj9GWtmfWVwr+esOraG6Lvf/DkzdPzmzr6vA/dKAExQqOUkbJ Xth/TpO8Q9FuNycfOS4JJMfWIdzSHd1ne3a7ru0nrEM/ia3YqjBwbeAfgfYKceJ1Kvpq L6ndEcQAuy1fkg/aEACX1RuskeYmN91zACReCE4ktEI2ti/oHGO/cBG5NeZ3CorzxpJB ARgw4pEJ5Q6rFKRf3eoJovlgBtbpDoTSFk6pNOXldYZMeNk6hGFm7kWcrcO+vhdDX4iZ g03UTjEHcLanlp0euhfngYCYVSKfunnffVBgP4MPQyiysuLQ3ByD6LJuQ+cSmnzJDxZN B75g== MIME-Version: 1.0 X-Received: by 10.50.33.51 with SMTP id o19mr3318976igi.34.1418400436586; Fri, 12 Dec 2014 08:07:16 -0800 (PST) In-Reply-To: <9df2fd35-fee3-48c5-b104-b1eb37faea19@googlegroups.com> References: <0b8ebdd8-9df5-4a99-b226-590cd3d3cef6@googlegroups.com> <9df2fd35-fee3-48c5-b104-b1eb37faea19@googlegroups.com> Date: Sat, 13 Dec 2014 03:07:16 +1100 Subject: Re: encrypt the http request url on the local machine From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1418400439 news.xs4all.nl 2837 [2001:888:2000:d::a6]:40476 X-Complaints-To: abuse@xs4all.nl X-Received-Body-CRC: 2146147000 X-Received-Bytes: 4771 Xref: csiph.com comp.lang.python:82456 On Sat, Dec 13, 2014 at 2:53 AM, iMath wrote: > After some retinking on my question ,I found what I am really want is not let any other guys using packet analyzer software know the server name (host name) my software is sending data to . > > so I translate the host name to IP address format, it somewhat hides the host name. > Another question is : for common sites, is the IP address under the host name hardly changing ? It depends entirely on the site's admins. Usually, you don't want to do this, in case the IP changes. Plus, you run into a catch-22: if you use the IP without ever using the host name, you depend on the server responding with what you want in the absence of a host header (basically, you depend on the server running just one web site), but if that's the case, then concealing the host name is almost completely useless, because anyone else can talk to the same server without a host name. In fact, for big web sites, chances are the reverse DNS for that IP will at least point to a related domain, even if not to the exact web site you're accessing (for instance, www.wikipedia.org -> 198.35.26.96 -> text-lb.ulsfo.wikimedia.org). Basically, this either will stop you from accessing what you want, or won't conceal anything. ChrisA