Photo on a blog not displayed because of a Referer
suntsu
Registered Users Posts: 37 Big grins
I've a blog where i link some pictures from my smugmug gallery. External links are enabled in this gallery.
This is how it looks on my blog. Some pictures works, some don't.
I've analyzed the http traffic, and there you can see that only one picture gets loaded
The reason seems to be the Referer.
doesn't work:
get http://suntsu.smugmug.com/photos/i-3fJ8hpd/0/L/i-3fJ8hpd-L.png
Accept: image/png, image/svg+xml, image/*;q=0.8, */*;q=0.5
Referer: http://www.suntsu.ch/alessia/index.php?/archives/170-Schaukeln....html
Accept-Language: de-CH
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Accept-Encoding: gzip, deflate
Host: suntsu.smugmug.com
Connection: Keep-Alive
Pragma: no-cache
Cookie: SMSESS=553fc97279912a4ce32966decec7ed46
response:
HTTP/1.1 404 Not Found
Content-Type: text/html; charset=UTF-8
Server: Apache
X-Smug-404: E
X-Smug-Date: Thu, 22 Dec 2011 13:24:02 UTC
X-Smug-Phone: 0.085983037948608
Content-Length: 0
Vary: Accept-Encoding
Date: Thu, 22 Dec 2011 13:24:02 GMT
Connection: keep-alive
if i remove the Referer, then it works.
get http://suntsu.smugmug.com/photos/i-3fJ8hpd/0/L/i-3fJ8hpd-L.png
Accept: image/png, image/svg+xml, image/*;q=0.8, */*;q=0.5
Accept-Language: de-CH
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Accept-Encoding: gzip, deflate
Host: suntsu.smugmug.com
Connection: Keep-Alive
Pragma: no-cache
Cookie: SMSESS=553fc97279912a4ce32966decec7ed46
But i can't disable the referer on my blog.
Any hints what i'm doing wrong?
cheers
manuel
edit:
I embed the picture like this:
<img src="http://suntsu.smugmug.com/photos/i-3fJ8hpd/0/L/i-3fJ8hpd-L.png" title="blub" alt="blub" />
This is how it looks on my blog. Some pictures works, some don't.
I've analyzed the http traffic, and there you can see that only one picture gets loaded
The reason seems to be the Referer.
doesn't work:
get http://suntsu.smugmug.com/photos/i-3fJ8hpd/0/L/i-3fJ8hpd-L.png
Accept: image/png, image/svg+xml, image/*;q=0.8, */*;q=0.5
Referer: http://www.suntsu.ch/alessia/index.php?/archives/170-Schaukeln....html
Accept-Language: de-CH
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Accept-Encoding: gzip, deflate
Host: suntsu.smugmug.com
Connection: Keep-Alive
Pragma: no-cache
Cookie: SMSESS=553fc97279912a4ce32966decec7ed46
response:
HTTP/1.1 404 Not Found
Content-Type: text/html; charset=UTF-8
Server: Apache
X-Smug-404: E
X-Smug-Date: Thu, 22 Dec 2011 13:24:02 UTC
X-Smug-Phone: 0.085983037948608
Content-Length: 0
Vary: Accept-Encoding
Date: Thu, 22 Dec 2011 13:24:02 GMT
Connection: keep-alive
if i remove the Referer, then it works.
get http://suntsu.smugmug.com/photos/i-3fJ8hpd/0/L/i-3fJ8hpd-L.png
Accept: image/png, image/svg+xml, image/*;q=0.8, */*;q=0.5
Accept-Language: de-CH
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Accept-Encoding: gzip, deflate
Host: suntsu.smugmug.com
Connection: Keep-Alive
Pragma: no-cache
Cookie: SMSESS=553fc97279912a4ce32966decec7ed46
But i can't disable the referer on my blog.
Any hints what i'm doing wrong?
cheers
manuel
edit:
I embed the picture like this:
<img src="http://suntsu.smugmug.com/photos/i-3fJ8hpd/0/L/i-3fJ8hpd-L.png" title="blub" alt="blub" />
0
Comments
Portfolio • Workshops • Facebook • Twitter
If you open http://suntsu.smugmug.com/photos/i-3fJ8hpd/0/L/i-3fJ8hpd-L.png, it seems not to find the picture.
But if you copy this link, and past it directly into your browser, it works.
What's the reason for this?
News about can be found on my website.
As i wrote in the first post, i have external links enabled for this gallery, and i see them:
News about can be found on my website.
Most of my gallery are locked down(no access without password, external links off).
For my blog, i choose some pictures, and put them into an public gallery via "collect photos"
Could this be a problem? Link a picture from a public gallery which was put there via "collect photos" from a locked down gallery?
News about can be found on my website.
--- Denise
Musings & ramblings at https://denisegoldberg.blogspot.com
Yes, this might be. But in this case it should apply those settings always, and not only when the referer on the http header is set.
For me, the current behavior is still very strange.
News about can be found on my website.
http://suntsu.smugmug.com/Private/Pictures/PS/18999530_qGJqH3#1479597603_3fJ8hpd
change ext links to ON and all will be well, I promise.
Portfolio • Workshops • Facebook • Twitter
Thanks for your answers.
This means to me that i will upload the photos special for my blog to a public gallery and link them from there rather than using the "collect photo" feature.
For me, this is ok.
But this sill doesn't explain this strange behavior.
Some photos are shown in my blog while some are not. Those which are not shown in the blog can be viewed if i just enter the link in the browser.
Again, i'm ok with the solution for me, but the underlying problem is not solved...
cheers
manuel
News about can be found on my website.
You were right andy. External Links were not enabled in those gallery's.
So the correct solution is to lock down those galleries but to enable external links.
Those external links are useless except when used via the "collect photos" feature.
News about can be found on my website.
They will not show in your blog unless ext links are set to yes. That is the reason, and there's no underlying problem. Does this help?
Portfolio • Workshops • Facebook • Twitter
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question