in reply to Re^2: $ENV{'HTTP_REFERRER'} and images
in thread $ENV{'HTTP_REFERRER'} and images

I think that the thing you're missing here is that you cant create your own definition of HTTP_REFERRER and expect it to work.

As i said earlier, when you serve up the page at www.domain.com, you'll have to store its referrer somewhere to access later and use in the script that runs when the image is clicked.