i want to disable the option to save as images on smartphones (android and IOS) using mobile browsers like chrome, firefox, ie, cm, opera, ie. Could anyone have a solution to this? chi
i want to disable the option to save as images on smartphones (android and IOS) using mobile browsers like chrome, firefox, ie, cm, opera, ie. Could anyone have a solution to this? chi
Share Improve this question edited Jul 12, 2016 at 13:07 cjbj 15k16 gold badges42 silver badges89 bronze badges asked Jul 12, 2016 at 12:23 PanosPanos 391 silver badge10 bronze badges1 Answer
Reset to default 1These days it is not really possible anymore to distinguish between mobile and other browsers, but you may try wp_is_mobile
. There are plugins that try to do a better job.
Then, if the user agent is mobile you may try to disable saving of the image, but there is no definite way to do this. To display the image it must be sent to the smartphone. You cannot take over the smartphone, so the user will always have methods to wrestle the image from you.
That said, there are methods to make it difficult for users. The most obvious one is to set images as backgrounds with css. This disables the normal way of saving images. Here are some other options.