Securely embedding images?

Discussion in 'Web Design and Development' started by sowillo14, Dec 20, 2007.

  1. sowillo14 macrumors regular

    Joined:
    Dec 14, 2007
    #1
    Say I am making a web page on .Mac, and I want to put pictures on the page. Is there anyway I can put a decent size picture up that people will not be able to download. If someone could help I would greatly appreciate it!!:)
     
  2. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #2
    No, there's not. There's 90% effective ways, but not 100%. If a person can see it, they can get it. Whether it's through looking at the source code, or just taking a screen shot of the browser window, people will be able to get it.
     
  3. sowillo14 thread starter macrumors regular

    Joined:
    Dec 14, 2007
    #3
    I see. But what do you think the 90% way would be?
     
  4. ChrisA macrumors G4

    Joined:
    Jan 5, 2006
    Location:
    Redondo Beach, California
    #4
    It's easy, you make you work so unattractive that no one would want it. One way to do that is to watermark each photo. Here is an example from a commercial site: http://www.bhphotovideo.com/images/items/324762.jpg

    It is only 90% effective because someone who really wanted (why?) a photo of a Norman power pack could use Photoshop to "clone out" the watermark.

    The other method is to onlu use low res images but you said "decent size" so that's out, I assume.
     
  5. thejadedmonkey macrumors 604

    thejadedmonkey

    Joined:
    May 28, 2005
    Location:
    Pa
    #5
    off the top of my head... instead of a img tag, use a div tag, apply a background image, and then use a transparent gif with the width and height set to 100%

    Like so:

    HTML:
    <div style="background-image:URL('image.jpg');height:height_of_image_px;width:width_of_image_px;">
    <img src="transparent_gif.gif" height="100%" width="100%">
    </div>
     
  6. sowillo14 thread starter macrumors regular

    Joined:
    Dec 14, 2007
    #6
    Will that make it so when they click the image, they are really clicking a transparent gif? And the image sits in the div tag?
     
  7. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #7
    Yes, that's right. Yahoo makes use of this type of solution fairly often I've seen. To make it a little harder for a person to get the image you can use JavaScript to obfuscate the code so they can't easily get at the actual source. I know how to get around this though and also can make thee images unavailable to those with JavaScript disabled.

    Another solution is to use Flash to display the image. It takes more time to set it up though and requires you to have Flash.

    On a similar note; One thing I've setup on my server is blocking of hot linking images. This is when someone takes the source of an image on your server and uses it on their pages, some times claiming it as their own. When they do this it makes use of your bandwidth, which is a big reason people put a stop to it. Blocking hot linking won't stop them from downloading your image, but will protect your bandwidth. I have my hot link blocking replace the image they try to use with a 2-bit image that says "Thief." It's quite hilarious when I find the image on other sites. I came across a site where an "artist" was trying to claim my work as their own. Here's an alright write-up on blocking hot linking with an Apache web server.
     
  8. sowillo14 thread starter macrumors regular

    Joined:
    Dec 14, 2007
  9. Carl Spackler macrumors 6502

    Carl Spackler

    Joined:
    Apr 12, 2005
    Location:
    Outer Space
    #9
    This is really the way to go, but you run the risk of starting a new art movement, then everybody will try to download your art. Oh, or combine a couple, post-modern dada would be a real feat.
     
  10. ChicoWeb macrumors 65816

    ChicoWeb

    Joined:
    Aug 16, 2004
    Location:
    California
    #10
    How about...

    Not putting it on the web? Thats the only way you can insure that no one steals your artwork.
     

Share This Page