SitePoint Sponsor

User Tag List

Results 1 to 21 of 21
  1. #1
    SitePoint Wizard
    Join Date
    Apr 2004
    Location
    dublin
    Posts
    2,036
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Preventing Image Save

    Hi all,

    I am creating an online exam.
    The page will contain images.

    How can I prevent users saving the images?

    When I mouse over the image a little menu appears with save, print, send icons.
    How can I prevent this being displayed?

    Thanks.

    Kevin.

  2. #2
    Caveat surfer Buddy Bradley's Avatar
    Join Date
    May 2003
    Location
    Cambridge, UK
    Posts
    2,366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can stop the menu appearing by adding this:
    Code:
    <meta http-equiv="imagetoolbar" content="no" />
    to your <head>.

    You can't stop people saving images, though - if they're viewing your page, the images have already been downloaded to their computer; that's the way the web works.

    If you don't want people to get your images, don't put them online.

  3. #3
    Non-Member
    Join Date
    Jan 2005
    Location
    Netherlands
    Posts
    4,300
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello

    PS beaten

    display (little menu)
    <meta http-equiv="imagetoolbar" content="no">

    prevent saving images is almost impossible

  4. #4
    SitePoint Zealot Idesyns.com's Avatar
    Join Date
    Mar 2006
    Location
    Michigan
    Posts
    115
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anyone savvy enough will be able to get all of the images anyway. You may as well not bother with it. Like one of the previos posts said: "If you don't want people to get your images, don't put them online."
    I want to be a real designer, someday... Idesyns.com

  5. #5
    The Mind's I ® silver trophy Dark Tranquility's Avatar
    Join Date
    Sep 2003
    Location
    KSA - UAE
    Posts
    9,457
    Mentioned
    8 Post(s)
    Tagged
    1 Thread(s)
    there will always be the print screen button !
    why you want to disallow saving the images? may be if you can explain more someone here could give you other ideas then preventing image sve which is impossible IMO for people unless you are dealing with people that are not very comfortable with a computer...

  6. #6
    Keep Moving Forward gold trophysilver trophybronze trophy
    Shaun(OfTheDead)'s Avatar
    Join Date
    Nov 2005
    Location
    Trinidad
    Posts
    3,746
    Mentioned
    45 Post(s)
    Tagged
    0 Thread(s)
    I realised that it's actually a very small number of people out there who know about the "print screen" button or about pulling stuff from the cache.

    Yes sure... most of us Site Point "Enthusiasts" are tech-savvy enough to do it, but general public is actually pretty dumb to the fact, and once they can't right click and choose "Save Picture As..." they are going to assume they can't get it.

    SO THEN... what I usually do is stretch a transparent .gif over the image so that when they right click they'd be selecting this .gif instead of the image they really want.

    What I might also do is use a pop up that closes onMouseDown... an old idea but it still works from what I've seen.

    Oo oo... you could even do a javaScript roll over so that when they mouseOver the image they want, an X'd out image with a copyright notice or something appears. This probably isn't usually the best thing to do but it's an option.

  7. #7
    SitePoint Zealot Idesyns.com's Avatar
    Join Date
    Mar 2006
    Location
    Michigan
    Posts
    115
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How does this stop the endless teenagers who have heard of and used the various website ripping programs that are available? Now they have your images and all. I think it's silly to try and stop it. Just render your images unuseable with a watermark and a low quality if you're that concerned.
    I want to be a real designer, someday... Idesyns.com

  8. #8
    Keep Moving Forward gold trophysilver trophybronze trophy
    Shaun(OfTheDead)'s Avatar
    Join Date
    Nov 2005
    Location
    Trinidad
    Posts
    3,746
    Mentioned
    45 Post(s)
    Tagged
    0 Thread(s)
    It's not going to stop everyone... I'm just saying it can reduce the chance of it happening...

    AND... The reason for preventing it is because you don't want your artwork that you slaved over Illustrator or Photoshop for hours to create to be saved at just a click away... If it's going to be stolen then they may as well have to do some work to get it.

  9. #9
    SitePoint Enthusiast cssiscool's Avatar
    Join Date
    Feb 2006
    Location
    East Moline, Illinois
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    there are atleast 20 different ways to take your pages and everything on them.

    there is only one foolproof way of preventing this.

    DO NOT PUT THEM ON THE WEB!

  10. #10
    SitePoint Enthusiast Mall23's Avatar
    Join Date
    Oct 2005
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Couple ideas that'll help casual downloaders:
    --use that javascript to prevent right-click (I prefer w/o an alert)
    --the IMDB uses a neat trick where they make a table and use the displayed image as the tables background. Then in the actual table they have a transparent gif that's the exact same size as the displayed image. So when you right-click/save and/or drag/drop the image, you just get the transparent gif. Course you have to know the width/height of the image beforehand.

  11. #11
    Keep Moving Forward gold trophysilver trophybronze trophy
    Shaun(OfTheDead)'s Avatar
    Join Date
    Nov 2005
    Location
    Trinidad
    Posts
    3,746
    Mentioned
    45 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by cssiscool
    there is only one foolproof way of preventing this.

    DO NOT PUT THEM ON THE WEB!
    ...to draw an unusual analogy...

    That's like saying that the only way to not get AIDS is to never ever have sex... And that's not very fun, is it??

    I'd hate to see a site with no images at all... would be pretty dull.

    But if you do, say, put a transparent .gif condom over your images it's not going to prevent EVERYone from getting it, I'm gladly admitting that point.
    But MY point is that you'll at least stop MOST people from getting it... Better than running around out there with no protection at all.



    -----
    ps... by the way, Idesyns... you have a very cool looking site!!

  12. #12
    SitePoint Addict mickmel's Avatar
    Join Date
    Feb 2001
    Location
    Marietta, GA
    Posts
    274
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Shaun(OfTheDead)
    That's like saying that the only way to not get AIDS is to never ever have sex... And that's not very fun, is it??
    You were close on that analogy, but not quite. There are other ways to avoid getting AIDS. Assuming drug use, bad blood transfusions, etc, weren't possibilities, your statement should read:

    The only sure way to not get AIDS is to never have sex.

    Like you've said, there are things you can do to protect your images against most people. Bottom line though - the only sure way is to keep them offline.
    MickMel.com - My portfolio, etc.
    @mickmel - Twitter
    Google Earth Hacks - Fun stuff for Google Earth.

  13. #13
    SitePoint Wizard mPeror's Avatar
    Join Date
    Mar 2005
    Location
    Saudi Arabia
    Posts
    1,724
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No matter what you do, you can't stop people from saving your images. In fact, they might not care about your images unless you try to stop them from saving it. Disabling right-click (or whatever) might make them feel challenged.

    The only effective way i know so far is watermarking your image with your URL or something. But that doesn't work with images used in your layout for example (it would look silly).

  14. #14
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,336
    Mentioned
    63 Post(s)
    Tagged
    3 Thread(s)
    if you do not want people to save your images, there is an attribute of the IMG tag that will work:
    Code:
    <img src="my_gorgeous_cat.jpg" save="no" 
         width="937" height="937" 
         alt="picture of my gorgeous cat" />
    just use that and everything will be fine



    p.s. shaun, what's up with the italics?
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  15. #15
    Keep Moving Forward gold trophysilver trophybronze trophy
    Shaun(OfTheDead)'s Avatar
    Join Date
    Nov 2005
    Location
    Trinidad
    Posts
    3,746
    Mentioned
    45 Post(s)
    Tagged
    0 Thread(s)
    I just tested it out... that save tag thing apparently doesn't work and doesn't validate either (or maybe I'm using it wrong, please elaborate)...

    As for the italics, why must my posts look plain and boring like everyone else's when they can be all slanty!!

  16. #16
    SitePoint Wizard mPeror's Avatar
    Join Date
    Mar 2005
    Location
    Saudi Arabia
    Posts
    1,724
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Shaun(OfTheDead)
    As for the italics, why must my posts look plain and boring like everyone else's when they can be all slanty!!
    Then i could post like this just to be different

  17. #17
    Keep Moving Forward gold trophysilver trophybronze trophy
    Shaun(OfTheDead)'s Avatar
    Join Date
    Nov 2005
    Location
    Trinidad
    Posts
    3,746
    Mentioned
    45 Post(s)
    Tagged
    0 Thread(s)
    Sure you could... I thought you'd see it my way.

  18. #18
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    Boring is the NEW Cool!

    As was previously stated most images get cached anyway and have to be downloaded to be viewed. I think the point was it was an online exam so things wouldn't be too great if the candidates swiped the images.

    Usually in these situations the images are kept simple or rotated with different questions to lower the chances of the image being as much use.

  19. #19
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,336
    Mentioned
    63 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by Shaun(OfTheDead)
    I just tested it out... that save tag thing apparently doesn't work and doesn't validate either (or maybe I'm using it wrong, please elaborate)...
    my sincere apologies, did i say really say save="no"

    of course, that is deprecated syntax, how silly of me

    the correct way to prevent copying of your images (compatible with xhtml) is through the enforced copyright attribute, like this:
    Code:
    <img src="my_gorgeous_cat.jpg" copyright="copyright" 
         width="937" height="937" 
         alt="picture of my gorgeous cat" />
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  20. #20
    SitePoint Wizard bronze trophy C. Ankerstjerne's Avatar
    Join Date
    Jan 2004
    Location
    The Kingdom of Denmark
    Posts
    2,702
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Bwahahahahaha
    Christian Ankerstjerne
    <p<strong<abbr/HTML/ 4 teh win</>
    <>In Soviet Russia, website codes you!

  21. #21
    Non-Member
    Join Date
    Jan 2005
    Location
    Netherlands
    Posts
    4,300
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello

    Quote Originally Posted by r937
    save="no"
    Quote Originally Posted by r937
    copyright="copyright"
    Great insider info


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •