Asp.net page request has not referrer?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have installed an image on some html page. This image is sent from an
asp.net page like this:

<img src="image.aspx">

I have a problem with few computers. In my application, I check for the
referrer which is, in this case, the html page containing the image. My code
goes like this:

if (Request.UrlReferrer != null)
{
string ref = Request.UrlReferrer.Host + Request.UrlReferrer.AbsolutePath;
}
else
{
error = "There's no referer";
}


Why it's working for almost every workstation, but on few, it's says that
there's no referrer or Request.UrlReferrer is null. I need this to send back
to right image to the client.

Thanks for any help.

Stephane
 
I would add that I tried with my IE 6 security setting to high and it's still
working for most of the workstations...

I don't know if it's a client or a server problem.

Stephane
 
UrlReferrer is not required to be populated. A lot of proxy servers will
strip that information out. You shouldn't rely on it being populated.
 
Thanks, I'll change my application.

The problem was because some client have Norton Firewall. It blocks some
informations like the referrer.

Stephane
 
Back
Top