right-click protection and off-site links

timk519timk519 Registered Users Posts: 831 Major grins
edited November 10, 2009 in SmugMug Support
I'm doing some work where images are referenced in non-SM web pages, and tried enabling right-click protection. On the target web page, the image seems to disappear.

Is right-click protection and linking an image to an external site mutually exclusive?
  • Save $5 off your first year's SmugMug image hosting with coupon code hccesQbqNBJbc

Comments

  • denisegoldbergdenisegoldberg Administrators Posts: 14,405 moderator
    edited November 10, 2009
    timk519 wrote:
    Is right-click protection and linking an image to an external site mutually exclusive?
    Yes. I'm not sure what you mean when you say the target image disappears, but right-click protection is only on the smugmug page, not on the image as referenced with an <img src= statement.

    Right-click protection isn't really protection at all. See http://blogs.smugmug.com/pros/2008/07/04/right-click-protection-and-image-security/.

    --- Denise
  • timk519timk519 Registered Users Posts: 831 Major grins
    edited November 10, 2009
    I know RCP isn't really protection, but I was hoping it'd work on a non-SM site.

    This also tells me that if I want even the modicum of security RCP offers, I have to disable external links for those galleries. (If external links is turned on while RCP is turned on, SM should pop up a message to the effect that external links doesn't work with RCP, and do you really want to do this?).

    Thanks for the answer!
    • Save $5 off your first year's SmugMug image hosting with coupon code hccesQbqNBJbc
  • jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited November 10, 2009
    timk519 wrote:
    I know RCP isn't really protection, but I was hoping it'd work on a non-SM site.

    This also tells me that if I want even the modicum of security RCP offers, I have to disable external links for those galleries. (If external links is turned on while RCP is turned on, SM should pop up a message to the effect that external links doesn't work with RCP, and do you really want to do this?).

    Thanks for the answer!
    RCP can be implemented on another site, you just have to control the HTML that displays your image and use HTML that implements RCP because it's the HTML around the image that implements the RCP. If you just use an <img src="xxxx"> piece of HTML, then there will be no RCP.

    External links work fine with RCP so I'm confused by where you're going with this. Turning external links off provides a different type of restriction on your images that doesn't really have anything to do with RCP.
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
  • timk519timk519 Registered Users Posts: 831 Major grins
    edited November 10, 2009
    jfriend wrote:
    RCP can be implemented on another site, you just have to control the HTML that displays your image and use HTML that implements RCP because it's the HTML around the image that implements the RCP. If you just use an <img src="xxxx"> piece of HTML, then there will be no RCP.

    External links work fine with RCP so I'm confused by where you're going with this. Turning external links off provides a different type of restriction on your images that doesn't really have anything to do with RCP.
    Ok, then how do I do RCP on a non-SM site?

    I'm writing a bunch of stuff up using Google Docs, with the intent to publish it on another (drupal based?) site. I can't control Google, but I can control the drupal site, so if there's a way to do RCP and a 3rd party site, I'm all ears as to how it would be done.
    • Save $5 off your first year's SmugMug image hosting with coupon code hccesQbqNBJbc
  • jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited November 10, 2009
    timk519 wrote:
    Ok, then how do I do RCP on a non-SM site?

    I'm writing a bunch of stuff up using Google Docs, with the intent to publish it on another (drupal based?) site. I can't control Google, but I can control the drupal site, so if there's a way to do RCP and a 3rd party site, I'm all ears as to how it would be done.
    Can you provide a link to an image you want RCP for when external linking is on?
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
  • timk519timk519 Registered Users Posts: 831 Major grins
    edited November 10, 2009
    Here's a sample from a gallery I'm working with right now.

    574194617_hKJ9C-M.jpg
    • Save $5 off your first year's SmugMug image hosting with coupon code hccesQbqNBJbc
  • jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited November 10, 2009
    timk519 wrote:
    Here's a sample from a gallery I'm working with right now.

    574194617_hKJ9C-M.jpg
    This HTML will make it right click protected.
    <style type="text/css">
    #rcp1 {background: transparent url(http://valkyrie.smugmug.com/photos/574194617_hKJ9C-M.jpg) no-repeat; height: 122px; width: 600px;}
    </style>
    <img id="rcp1" src="http://valkyrie.smugmug.com/img/spacer.gif" width="600" height="122" border="0">
    
    Note, the viewer will not get a warning message when they right click. They will think that right-click copy worked, but all they will actually get with the right click is a blank image.

    If you use more than one of these in the same page, you need to change the "rcp1" and "#rcp1" to something different for each one. You also have to manually insert the height and width of your particular image so that it works right.

    Please remember that this is trivial to bypass for anyone who has any idea how a browser works.
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
  • timk519timk519 Registered Users Posts: 831 Major grins
    edited November 10, 2009
    jfriend wrote:
    If you use more than one of these in the same page, you need to change the "rcp1" and "#rcp1" to something different for each one. You also have to manually insert the height and width of your particular image so that it works right.

    Please remember that this is trivial to bypass for anyone who has any idea how a browser works.
    Ok - thanks for the assist!
    • Save $5 off your first year's SmugMug image hosting with coupon code hccesQbqNBJbc
Sign In or Register to comment.