Jeffrey Bonson wrote: > I was looking for this locking procedure. and found out the below code > works like no one can click on the image and save it other than > printscreen. this is best when a high resolution background image is > being used.
For what it's worth, disabling mousedown events in JavaScript is an extremely weak means of protecting anything, especially downloads of images. The method can be defeated entirely by disabling JavaScript in the browser preferences. Even if JavaScript is not disabled your HTML source still exposes the public URI of the image. Using "View Source" then finding the <img> tag and copying the "src" URI into the browser address bar also defeats any protection JavaScript may attempt. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.