Photo on a blog not displayed because of a Referer

suntsusuntsu Registered Users Posts: 37 Big grins
edited December 23, 2011 in SmugMug Support
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-6QJDQFp-L.jpg

I've analyzed the http traffic, and there you can see that only one picture gets loaded
i-FKkvDDX-L.jpg

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&quot; title="blub" alt="blub" />
MySmug, my Windows phone 7 smugmug client.
News about can be found on my website.

Comments

  • AndyAndy Registered Users Posts: 50,016 Major grins
    edited December 22, 2011
    Hello, the reason the photo isn't displaying in your blog is that you have external links turned off :) Go to gallery settings and turn external links on, and the photo will show in your blog.

    20111222-dyygqksc8dpibe4sdxjrc4ci4j.jpg
  • suntsusuntsu Registered Users Posts: 37 Big grins
    edited December 22, 2011
    It seems the links also don't work from this forum.
    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?
    MySmug, my Windows phone 7 smugmug client.
    News about can be found on my website.
  • suntsusuntsu Registered Users Posts: 37 Big grins
    edited December 22, 2011
    Andy wrote: »
    Hello, the reason the photo isn't displaying in your blog is that you have external links turned off :) Go to gallery settings and turn external links on, and the photo will show in your blog.
    Hi,
    As i wrote in the first post, i have external links enabled for this gallery, and i see them:
    i-T5KjHzC-L.jpg
    MySmug, my Windows phone 7 smugmug client.
    News about can be found on my website.
  • suntsusuntsu Registered Users Posts: 37 Big grins
    edited December 22, 2011
    I have an idea what could cause this behavior.

    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"
    i-LTBrLDx-M.jpg

    Could this be a problem? Link a picture from a public gallery which was put there via "collect photos" from a locked down gallery?
    MySmug, my Windows phone 7 smugmug client.
    News about can be found on my website.
  • denisegoldbergdenisegoldberg Administrators Posts: 14,400 moderator
    edited December 22, 2011
    suntsu wrote: »
    Could this be a problem? Link a picture from a public gallery which was put there via "collect photos" from a locked down gallery?
    As far as I know the settings from the original gallery are used.

    --- Denise
  • suntsusuntsu Registered Users Posts: 37 Big grins
    edited December 22, 2011
    As far as I know the settings from the original gallery are used.

    --- Denise
    Hi,

    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.
    MySmug, my Windows phone 7 smugmug client.
    News about can be found on my website.
  • AndyAndy Registered Users Posts: 50,016 Major grins
    edited December 22, 2011
    Suntsu, the photo needs to have external links ON. You have them off in the gallery where this photo lives.
    http://suntsu.smugmug.com/Private/Pictures/PS/18999530_qGJqH3#1479597603_3fJ8hpd

    change ext links to ON and all will be well, I promise.
  • suntsusuntsu Registered Users Posts: 37 Big grins
    edited December 23, 2011
    Hi andy.
    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
    MySmug, my Windows phone 7 smugmug client.
    News about can be found on my website.
  • suntsusuntsu Registered Users Posts: 37 Big grins
    edited December 23, 2011
    I guess i got it.
    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.
    MySmug, my Windows phone 7 smugmug client.
    News about can be found on my website.
  • AndyAndy Registered Users Posts: 50,016 Major grins
    edited December 23, 2011
    suntsu wrote: »
    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

    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?
  • jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited December 23, 2011
    suntsu wrote: »
    Hi andy.
    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
    They will sometimes show on your computer only even though external links are blocked because the browser loads them from your disk cache (because you have viewed those images elsewhere, thus caching them) where there is no external link protection. Clear your disk cache and don't view those images in their regular galleries and you should get a consistent behavior in the blog.
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
Sign In or Register to comment.