Well, I have a webpage where I display several images. But my problem is that I do not want the user to upload or save these images. I can apply a watermark to these images, but this is an alternative. I can also turn off the right click, but what if the user saves the page?
Any alternative solution also make?
Hope this question is clear?
If the user can see the image, he is already on his computer. Saving it to a file or copying it to the clipboard is trivial and cannot be disabled in any reliable way.
If you want to maintain control over the image, do not put it on the Internet.Watermarking is the best you can do.
If the user can view the image, you cannot stop it in order to save it, because at that moment you already sent it to a file.
You can implement some pseudo-protective code, such as anti Right-Click, to “block” the save, but in general it just annoys the user of your site, and you can always bypass it.
, , .
, , . . , , , (C).
, ?
, . Windows IE Javascript, , , . . , . , URL-, .
, , : . 800x600 , (?) 80x60 . . .
Apache, URL- URL- htaccess:
RewriteEngine on RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yourdomain.com [NC] RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]
, JavaScript .
, . , , - . , .
-, .gif "" , , , , . HTML , .
(, , , , , , .)
, , ( ), .
, , , : - (
-, , , - .
Try using flash to download the image, use flash to decode your encoded images. And this still cannot stop the user from taking a screen capture.
Source: https://habr.com/ru/post/1781575/More articles:Маршрутизация Rails с параметром, который содержит период - ruby-on-railsGood way to serialize a list? - Javascript / AJAX - javascriptDoes map.connect apply the template format in the url? - ruby-on-railsPerforce: How to find the source change list number - perforceAfter Repo synchronization, there are no files in the directory - androidobject structure adds / removes objects to many - entityGoogle Search API - returns only 4 results - pythonPrefix filtering in php - phpLINQ Conversion Function - c #Search Optimization with nearby duplication - optimizationAll Articles