How to prevent user from downloading or saving an image?

后端 未结 11 1032
情深已故
情深已故 2020-12-06 20:39

Well, i have a web page where i am displaying few images. But my problem is that i don\'t want user to download or save those images. I can apply watermark to those images b

11条回答
  •  萌比男神i
    2020-12-06 21:12

    Porn website, eh?

    Well, you cannot prevent it. You can screw Windows and IE users with a Javascript trick, but as said before, that's easy to disable. You can't stop users from saving of the whole page either. People can also just make screenshot, cut and resave. All resources available via URLs are locateable and can be downloaded.

    There's one option to frustrate downloading of images though: automatically slice it. If the image is 800x600 pixel, you could split it into a hundred(?) 80x60 smaller graphics. That would make reassembling slightly more difficult. But also turn the rendering slightly unrealiable.

提交回复
热议问题