What are the approaches to protecting the image from saving it through a copy of the desktop screen or smartphone?
- The easiest way is to prevent the user from clicking on PrntScr - Helisia
- And more complicated, but widely applicable? - Sergiks
- And the fact that the browser has loaded the same image, and it is in its cache (and the user can easily get it from there), does it bother you? - VladD February
- What dictates such secrecy requirements? - Montreal
- oneBut no one and nothing can stop the user from attaching his monitor to the scanner ... - void
3 answers
Do not upload the image to the Internet.
Only for IE (other browsers, thank God, do not support this functionality):
<!-- /************************************************** * (c) ArtistScope (www.artistscope.com) **************************************************/ function do_err() { return true; } onerror = do_err; function no_cp() { clipboardData.clearData(); setTimeout("no_cp()", 100); } no_cp(); //--> ps clears the entire contents of the buffer.
- oneThe question is not how to protect it at all, but only from saving a copy of the screen. OpenGL, interlaced flickering, video, inertia of the human eye. - Sergiks
- oneWell, added a working version for IE. - VenZell
- An interesting move! Flash is also able to work with the clipboard, but it seems that only by the user's action - by clicking the mouse, etc. Just a flash drive on the page will not be able to reset the clipboard every X seconds. And on a Mac, the screen is copied either to a clipboard or directly to a file. - Sergiks
- Added information on ActionScript3. Once again, with the help of a browser, you cannot do this as you want. With the help of third-party software - you can. - VenZell
There is no way to fail. But there are a number of tips:
- Just lock the PrntScr button.
- Check the user for installed programs with the name containing "Screenshot". If such a program was found, either do not let the user into your program or simply kill the process of this program, for example, every 100 ms.
- It makes sense to clear the buffer when non-text data is entered into it, for example, if there was a graphic file with screen sizes (100% screenshot), then simply damage or blacken it. But, usually this will not help much if n2 is not followed and the screenshoter program immediately writes to the file, bypassing the clipboard.
I usually steal pictures like this:
F12 -> Resources tab -> Frames -> Blah blah bla -> Images
So far I have not seen a single site where it would be impossible to pull a photo like this.
Mb bad protection everywhere? ..
There is an idea about copy protection - show pictures in SWF-files. This is a really beautiful method! Perhaps there is some plugin for this. Ask ... And about the protection from print-screenshots - you answered above.
================================================= ======
IMHO: from people like me, no method will work. Be it a print screen test, or the above method with a flash object. I’m ready to argue for anything, that anyway I’ll put in the picture I need)))
- What we will consider the criterion of successful theft? =) For example, I will show you not a picture, but a video where the picture is shown with television interference. Those. Not a single frame contains the entire picture - only parts of it are always visible normally. But because of the inertia of human vision, you will get the same impression from the whole picture. An everyday example is to walk quickly along a fence. Can you pull the picture without a hindrance? - Sergiks
- @sergiks: you can pull, for example, a video. - VladD