3 ms·
Good observation. But if you embed it on webpage (in which refer header is sent) it would turn into real image file, which means it WORKS when you include it in
by folkster 15y ago
Good observation.
But if you embed it on webpage (in which refer header is sent)
it would turn into real image file, which means it WORKS when you include it in forum, blogs, etc. :)
- TeMPOraL 15y agoRefer header is not a good way to distinguish between embedded images and images accessed directly by user. AFAIK that header will have the same value both when you load an embedded image and when you click on a direct link to the image. I did a little bit of research about it few years ago; the summary can be seen here: http://temporal.pr0.pl/devblog/2009/09/14/eksperyment-podsumowanie/ http://temporal.pr0.pl/devblog/2009/09/14/eksperyment-podsum... (pl_PL) http://translate.google.com/translate?sl=pl&tl=en&js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Ftemporal.pr0.pl%2Fdevblog%2F2009%2F09%2F14%2Feksperyment-podsumowanie%2F&act=url http://translate.google.com/translate?sl=pl&tl=en&js... (en_US) Basically, I was able to distinguish between embedded and directly accessed images by analyzing the content of Accept header. It wasn't perfect (it didn't work for Opera), but I think it could be good enough to do something useful with it.