Asp.net page request has not referrer?

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
 
G

Guest

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
 
G

Guest

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.
 
G

Guest

Thanks, I'll change my application.

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

Stephane
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top