Hotlinking Picasa Web Albums Images | 12/09/06 - 16.42 |
Picasa Web Albums seems to be smart at preventing image hotlinking. They have this embed feature that provides a link back to Picasa Web Albums and that works fine. But if you just try and take the image URL and embed it I find it breaks pretty soon.
For instance here is an image embedded using the Picasa Web Albums code that is available from the left hand bar in Picasa Web Albums:
The above code snippet straight from Picasa Web Albums uses this URL for the image: http://lh6.google.com/samdavyson/ROm95iJ2ABI/AAAAAAAAAFM
/ZpTxZPsUuIA/flower.jpg?imgmax=288. If you just use this URL and not the link back to Picasa it still seems to work. Here is one just using the URL:

But when you remove the thing limiting the image’s size (?imgmax=288) it breaks.

As you don’t see the image above it has clearly broken. The clever bastards. So lets see if it will work with another value of imagemax. So lets try 576 (2 x 288):

No. That doesn’t work either. So at the moment you can only hotlink in the 288 size. I hope Flickr doesn’t start using similar technology soon.



Kind of fun… if you disable sending the Referer header, the hotlinking works for all the sizes. In Firefox, set the preference network.http.sendRefererHeader to 0. I’m looking at your page right now, and it’s showing the 1280×1022 size just fine.
I can’t really recommend this in general, since I assume some sites use positive matching (i.e. allow hotlinking if HTTP-Referer matches) rather than negative (disallow hotlinking if HTTP-Referer doesn’t match). But, it’s interesting.
(Here’s a good reason right here… this comment form uses Referer checking. I can’t submit without a Referer header.)
I am using Opera 9.21 with referrer sending activated, and I can see the imagemax=576 version just fine.
yup, antonio is correct. you can now hotlink various sizes: 228 576 640 800 maybe more..
Allowable sizes for the thumbsize and imgmax query parameters are published by Google at: http://code.google.com/apis/picasaweb/reference.html
800px max is the largest currently allowed for embedding images.
i can see the large image just fine using safari 4.0.2 with all default settings.
travel arrangements for ironman zurich http://asclera.zdyt.info/asclera-treatment-in-ohio asclera treatment in ohio [url=http://armodafinil.zdyt.info/armodafinil-msds]armodafinil msds[/url]
http://arrestin.zdyt.info/dental-medicine-arrestin dental medicine arrestin negative effects of rap music [url=http://arava.zdyt.info/arava-lavine-nude]arava lavine nude[/url]
[url=http://aralen.zdyt.info]aralen[/url] modern sawyer movie http://atomoxetine.zdyt.info/narcolepsy-atomoxetine narcolepsy atomoxetine
credit cards compare travel http://atasol.zdyt.info/atasol-forte-500 atasol forte 500 [url=http://arestin.zdyt.info/arestin-actisite]arestin actisite[/url]
http://aptivus.zdyt.info/aptivus-approval aptivus approval free shared music downloads eminem [url=http://apidra.zdyt.info/opticlick-for-lantus-and-apidra]opticlick for lantus and apidra[/url]
Tudo bem apareço mais uma vez aqui neste blog amigo, para retribuir a visita dada…….
Sou o Nuno,gosto muito de jogos , dedico muito do meu horário a trabalhar o meu projecto online costumo também fazer legendas para vários fóruns,se calhar assistiram alguma série com legendas minhas!
E por hoje chega, pois trabalho por turnos e e vou dormir umas horas.
Fiquem bem………….