Visiting website authentication

tonto

Perch
I'm stumped! I'm hoping that someone can help on this one.

I am trying to find a way to know what website has called an image from our server. For instance if website A placed an image from my server on a page, what is the url of that page?

I know that you can use ASP ServerVariables("HTTP_REFERER") as one method but I also know that this is unreliable as header information can be spoofed and if the image is called from a secure page (HTTPS) then there is no HTTP_REFERER information sent in the headers.

I know that there must be a way to do this but I don't know what this is.

Can someone help???
 
If what you're doing is trying to prevent other sites from stealing your bandwidth by using images that you host, then there's lots of scripts out there that you can copy from. Just look up "hotlinking" in Google and you'll see lots of examples.
 
Hi KC,

I'm actually trying to get the URL of the page that has the image. I'm not necessarily trying to prevent someone from using the image.

Although perhaps there is some code within the hotlinking scripts that may shed some light on the solution.

The question still stands to anyone that may have the solution.
 
Back
Top