W3C home > Mailing lists > Public > www-talk@w3.org > May to June 1999

SV: distinguising user- from browser-generated requests

From: Christian Bhn <chrb@online.no>
Date: Wed, 23 Jun 1999 18:42:00 +0200
To: "Nicholas Kushmerick" <nick@ucd.ie>
Cc: "WWW-TALK" <www-talk@w3.org>
Message-ID: <01bebd97$5108dfc0$LocalHost@bohns>
Check out the referer header, it should referer the page which contained it, but of course this is not a safe method.

HTH,
Christian Bhn



>When an HTML page is rendered, the browser might spawn additional requests 
>to the server (images, frames, style sheets, applets, ...).  Within HTTP, 
>can the server reliably distinguish such "browser-generated" requests from 
>actual user requests (ie, when a user clicks on a link)?
>
>To make this concrete, suppose an HTML page contains:
>   <A href="q.jpg"><IMG src="q.jpg"></A>
>Can the server distinguish between the browser's request for "q.jpg" to 
>render the HTML, and
>the user's request for "q.jgp" by clicking on the hyperlink?
>
>Assume that the HTML is not under my control -- ie, I can't simply replace 
>the href above with "q.jpg?user".
>
>thanks for any suggestions!
>
>-- Nick
>
>- + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - +
>+                     Nicholas Kushmerick                     -
>-  Department of Computer Science, University College Dublin  +
>+          nick@ucd.ie      www.cs.ucd.ie/staff/nick          -
>- + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - +
>
>
Received on Wednesday, 23 June 1999 12:47:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 October 2010 18:14:24 GMT