Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!bcyclone04.am1.xlned.com!bcyclone04.am1.xlned.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!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.041 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'http': 0.09; 'lookup': 0.09; 'translate': 0.10; 'changes': 0.15; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'hides': 0.16; 'hostname': 0.16; 'name)': 0.16; 'wrote:': 0.18; 'subject:request': 0.19; 'header:User-Agent:1': 0.23; 'entries': 0.24; 'format,': 0.24; 'guys': 0.24; 'server.': 0.24; 'question': 0.24; 'header:In-Reply- To:1': 0.27; 'host': 0.29; 'am,': 0.29; "doesn't": 0.30; 'names.': 0.31; 'trace': 0.31; 'another': 0.32; 'addresses': 0.33; 'subject:the': 0.34; 'common': 0.35; 'really': 0.36; 'changing': 0.37; 'sometimes': 0.38; 'message-id:@gmail.com': 0.38; 'server': 0.38; 'depends': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'matter': 0.61; 'back': 0.62; 'address': 0.63; 'show': 0.63; 'name': 0.63; 'map': 0.64; 'different': 0.65; 'reverse': 0.68; 'hardly': 0.84 X-Virus-Scanned: amavisd-new at torriefamily.org Date: Fri, 12 Dec 2014 14:44:26 -0700 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131118 Thunderbird/17.0.11 MIME-Version: 1.0 To: python-list@python.org Subject: Re: encrypt the http request url on the local machine References: <0b8ebdd8-9df5-4a99-b226-590cd3d3cef6@googlegroups.com> <9df2fd35-fee3-48c5-b104-b1eb37faea19@googlegroups.com> In-Reply-To: <9df2fd35-fee3-48c5-b104-b1eb37faea19@googlegroups.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1418421881 news.xs4all.nl 2834 [2001:888:2000:d::a6]:39556 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 3651 X-Received-Body-CRC: 2437585176 Xref: csiph.com comp.lang.python:82470 On 12/12/2014 08: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 ? I don't see what that will accomplish. Of what value is the hostname vs the IP address? Many servers have proper reverse entries in DNS to map IP addresses back to host names. Furthermore a packet trace can show exactly what the HTTP request was, and that doesn't matter whether you do IP address or hostname. As for whether the IP address changes often, depends on the server. Sometimes some web sites use a cluster of servers and each name lookup will give you a different IP address (round robin lookup).