最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

mobile - Disable save as image on smartphones using all browsers ( chrome, firefox, ie, cm, opera )

programmeradmin1浏览0评论

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 badges
Add a comment  | 

1 Answer 1

Reset to default 1

These 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.

发布评论

评论列表(0)

  1. 暂无评论