Webshot have pinched mi car!
Discussion
Anyone else use Webshot to host their piccies. I've just done it, and the link worked and the piccy appeared. Then it disappeared, and it seems I have to go to Webshot, click on refresh to get the picture appearing on that site, and them it magically appears on PH.
It's probably me being a numpty, but what am I doing wrong?
It's probably me being a numpty, but what am I doing wrong?
If I go to Spooky's profile I get the red cross.
If I then look at the source and get the URL for the image, go there, and then go back to the profile I get the image (because the image is in my local cache, therefore no need to really get it). If I refresh the profile page (i.e. empty cache) then the image is back to the red cross.
This affect occurs in both IE6 and Netscape6.2
Are they blocking referred access to the image? i.e. if the page request for the image has a HTTP_REFERER value other than webshots.com (as an embedded link would), then sod off you can't have it.
>> Edited by cmdar on Thursday 29th August 14:53
>> Edited by cmdar on Thursday 29th August 14:55
If I then look at the source and get the URL for the image, go there, and then go back to the profile I get the image (because the image is in my local cache, therefore no need to really get it). If I refresh the profile page (i.e. empty cache) then the image is back to the red cross.
This affect occurs in both IE6 and Netscape6.2
Are they blocking referred access to the image? i.e. if the page request for the image has a HTTP_REFERER value other than webshots.com (as an embedded link would), then sod off you can't have it.
>> Edited by cmdar on Thursday 29th August 14:53
>> Edited by cmdar on Thursday 29th August 14:55
Just done a quick test to see if my idea was correct, and it seems to be.
If you create a test HTML page on your local PC disk (say test.htm) with just
<IMG src="http://community.webshots.com/storage/1/v0/7/31/15/48673115YAJspP_ph.jpg>|http://community.webshots.com/storage/1/v0/7/31/15/48673115YAJspP_ph.jpg">
and load it in IE direct from your disk you will get the image OK.
Now if you put test.htm on a webserver and load it in, no image.
When its on the server the full HTTP header including HTTP_REFERER is sent (with the host name of your server in it). When you open it direct from disk, no HTTP_REFERER is sent (or at least it's blank).
So they are being sneaky :-(
>> Edited by cmdar on Thursday 29th August 15:06
>> Edited by cmdar on Thursday 29th August 15:07
If you create a test HTML page on your local PC disk (say test.htm) with just
<IMG src="http://community.webshots.com/storage/1/v0/7/31/15/48673115YAJspP_ph.jpg>|http://community.webshots.com/storage/1/v0/7/31/15/48673115YAJspP_ph.jpg">
and load it in IE direct from your disk you will get the image OK.
Now if you put test.htm on a webserver and load it in, no image.
When its on the server the full HTTP header including HTTP_REFERER is sent (with the host name of your server in it). When you open it direct from disk, no HTTP_REFERER is sent (or at least it's blank).
So they are being sneaky :-(
>> Edited by cmdar on Thursday 29th August 15:06
>> Edited by cmdar on Thursday 29th August 15:07
Gassing Station | General Gassing [Archive] | Top of Page | What's New | My Stuff