Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #53005
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <joel.goldstick@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.054 |
| X-Spam-Evidence | '*H*': 0.89; '*S*': 0.00; 'yet.': 0.04; 'subject:Getting': 0.07; 'creator': 0.09; 'http': 0.09; 'pages.': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'posted': 0.15; '(note': 0.16; 'angle': 0.16; 'header?': 0.16; 'log.': 0.16; 'supplied': 0.16; 'wrote:': 0.18; 'all,': 0.19; 'subject:request': 0.19; 'aug': 0.22; 'cc:addr:python.org': 0.22; 'header': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'source': 0.25; 'header:In-Reply- To:1': 0.27; 'wondering': 0.29; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; '-0700,': 0.31; "d'aprano": 0.31; 'enforce': 0.31; 'header,': 0.31; 'steven': 0.31; 'url:python': 0.33; 'cases': 0.33; 'monday,': 0.33; "i'd": 0.34; 'something': 0.35; 'received:google.com': 0.35; 'google': 0.35; 'add': 0.35; 'there': 0.35; 'done': 0.36; 'url:listinfo': 0.36; 'thanks': 0.36; 'url:org': 0.36; 'server': 0.38; 'question,': 0.38; 'little': 0.38; 'url:mail': 0.40; 'how': 0.40; 'guy': 0.60; 'logs': 0.60; 'august': 0.61; 'facebook': 0.61; 'to:addr:gmail.com': 0.65; '26,': 0.68; 'request.': 0.70; 'click': 0.77; 'end.': 0.84; 'etc..': 0.84; 'subject:source': 0.84; 'visitor': 0.84; 'apparent': 0.91; 'joel': 0.91; 'from.': 0.93; 'reply,': 0.93; '2013': 0.98 |
| 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:to :cc:content-type; bh=PUt/ojSifG+52TPHhY9dxrruNVbOMsDJqus2jgury24=; b=FDTLpl/UL58mHfC2c3spc4/f6JP6BaMflAlCvHqUeb3Wrx8rGvN5NHL6YwUrKVXg8e zJqMr8PYFt6n8mp47abJYiqntFT4h4HVLcnF02ZtUJ56PH3pHm3IuXlcm3yTYXiDV/sT O45vhMPykW1H6QqkCIQ2l3E5q2WfQ9cquNdy8feZBV0rb09V13I1vOPK8Wc5duJm/JUb wEZs4drFtDIer+y9nLGvdUVXgora7VwmFcuBnlp9EU4/iIUY7SK6AzCS4xfkfFxWjevq CDvxeeOTvqRuIsZQnYYux+7swef1tAl3oYcO8c0bzJm6nWk3Yqk4AVlLffvTphybF7Re z31A== |
| MIME-Version | 1.0 |
| X-Received | by 10.58.201.69 with SMTP id jy5mr576823vec.29.1377530161107; Mon, 26 Aug 2013 08:16:01 -0700 (PDT) |
| In-Reply-To | <03e29dbb-d95d-495e-8937-2b630897d36b@googlegroups.com> |
| References | <6dc9b8f6-7eb7-42a3-b3ea-ccc3aef072ee@googlegroups.com> <521b656d$0$29986$c3e8da3$5496439d@news.astraweb.com> <03e29dbb-d95d-495e-8937-2b630897d36b@googlegroups.com> |
| Date | Mon, 26 Aug 2013 11:16:01 -0400 |
| Subject | Re: Getting request's source site |
| From | Joel Goldstick <joel.goldstick@gmail.com> |
| To | Guy Tamir <guytamir1@gmail.com> |
| Content-Type | text/plain; charset=UTF-8 |
| Cc | "python-list@python.org" <python-list@python.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.238.1377530170.19984.python-list@python.org> (permalink) |
| Lines | 57 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1377530170 news.xs4all.nl 15990 [2001:888:2000:d::a6]:50780 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:53005 |
Show key headers only | View raw
On Mon, Aug 26, 2013 at 11:03 AM, Guy Tamir <guytamir1@gmail.com> wrote: > On Monday, August 26, 2013 5:25:49 PM UTC+3, Steven D'Aprano wrote: >> On Mon, 26 Aug 2013 06:10:41 -0700, Guy Tamir wrote: >> >> >> >> > Hi all, >> >> > >> >> > I was wondering how i can get the source from which the request came >> >> > from. If a user posted a link that directs to my server on facebook i'd >> >> > like to know that a specific click was from facebook or twitter etc.. >> >> >> >> That would be the "referer" header in the HTTP request. (Note that it is >> >> an accidental misspelling of "referrer".) Including a referrer is not >> >> compulsory, so be prepared for it not to be available. >> >> >> >> >> >> >> >> -- >> >> Steven > > Thanks for reply, > In what cases will i have this header? is there something i can do to enforce having it? > Are there any other ways? > -- You can look in the server logs if you have them available. If the visitor supplied a referer value in the header, it will be in the log. You don't have any say in this from your end. If you are the creator of your own website you might like to add google analytics to your pages. This is done with a little javascript that google provides. Although there may be a python angle to your question, it isn't apparent yet. > http://mail.python.org/mailman/listinfo/python-list -- Joel Goldstick http://joelgoldstick.com
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Getting request's source site Guy Tamir <guytamir1@gmail.com> - 2013-08-26 06:10 -0700
Re: Getting request's source site Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-08-26 14:25 +0000
Re: Getting request's source site Guy Tamir <guytamir1@gmail.com> - 2013-08-26 08:03 -0700
Re: Getting request's source site Joel Goldstick <joel.goldstick@gmail.com> - 2013-08-26 11:16 -0400
Re: Getting request's source site random832@fastmail.us - 2013-08-26 13:51 -0400
Re: Getting request's source site Steven D'Aprano <steve@pearwood.info> - 2013-08-27 09:23 +0000
Re: Getting request's source site Chris Angelico <rosuav@gmail.com> - 2013-08-27 19:36 +1000
csiph-web