2

Well, I would like to know if it's possible to detect by HTTP headers if request comes from <img tag.

I assume that when request is called from <img tag, I'll not have */* header in HTTP_ACCEPT or I'm missing something.

Regards

EDIT: I've tried with few browser but i can't conclude nothing by HTTP_ACCEPT...

confiq
  • 2,795
  • 1
  • 26
  • 43

1 Answers1

3

No, sorry - a browser request made for an img tag will be identical to any other GET request - though as you point out, Firefox does give an Accept header specifying that it expects some kind of image but unless all browsers do this it's not very useful.

What's this for? There might be another way to do what you want.

Nick
  • 11,475
  • 1
  • 36
  • 47