Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] detect fake HTTP referrer
- Date: Thu, 17 Jan 2008 19:08:51 +0900
- From: "Stephen J. Turnbull" <stephen@example.com>
- Subject: Re: [tlug] detect fake HTTP referrer
- References: <78d7dd350801160011x2db75b54ofdbffb76d41c5044@mail.gmail.com> <20080116112944.ab6ae181.attila@kinali.ch> <78d7dd350801160622taa0faf3sa072283d59964936@mail.gmail.com> <87tzld345p.fsf@uwakimon.sk.tsukuba.ac.jp> <78d7dd350801162206t1b05d2d8i3b20496bbdc1a40b@mail.gmail.com>
Nguyen Vu Hung writes: > > What exactly is the goal of getting accurate referral data here? > I want to know where I am linked from, at least. Google will tell you that, I think. > And when an user trying access to my site, they should know that > the files they are going to download is hosted by aoclife, that means > the word "aoclife" should appear somewhere and the users > should be able to see it. I think it is ethic and my credit. Unfortunately, that conflicts with the W3C's position on deeplinking, see the references in http://en.wikipedia.org/wiki/Deep_linking. If you just want the banner, and don't need reliable referral information that bad, then you could do something like the following. 1. Put the real file in /downloads/hidden/aoclife.zip. (If necessary you can really hide the hidden directory using Apache access control.) Also make a directory /downloads/chocolatechip. 2. Make /downloads/aoclife.zip be a cgi (Apache configuration allows this). 3. When serving GET /downloads/aoclife.zip, the CGI a. generates a random string b. touch'es /downloads/chocolatechip/<randomstring> c. returns a Temporary Redirect HTTP status pointing to itself with query portion ?<randomstring> d. cats your splash page (which doesn't have to say anything about an error). 4. When serving GET /downloads/aoclife.zip?<randomstring> a. if /downloads/chocolatechip/<randomstring> doesn't exist, return an error, or maybe /vmlinux. :^) b. if it does exist, rm it, and c. cat /downloads/hidden/aoclife to the requesting user. For hints on generating randomstrings, you could look up uuidgen.
- References:
- [tlug] detect fake HTTP referrer
- From: Nguyen Vu Hung
- Re: [tlug] detect fake HTTP referrer
- From: Attila Kinali
- Re: [tlug] detect fake HTTP referrer
- From: Nguyen Vu Hung
- Re: [tlug] detect fake HTTP referrer
- From: Stephen J. Turnbull
- Re: [tlug] detect fake HTTP referrer
- From: Nguyen Vu Hung
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] detect fake HTTP referrer
- Next by Date: Re: [tlug] detect fake HTTP referrer
- Previous by thread: Re: [tlug] detect fake HTTP referrer
- Next by thread: Re: [tlug] detect fake HTTP referrer
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links