How to prevent downloading images and video files

2019-01-02 16:05发布

How to prevent downloading images and video files from my website? Is it possible? What would be the best way to do this?

24条回答
闭嘴吧你
2楼-- · 2019-01-02 16:26

In short, no. If someone can view an image or video in their browser then they have, by definition, downloaded it. That's how the web works - it is client server based. Whatever you can view in your browser (client) has been transfered to your computer from the remote website (server).

查看更多
永恒的永恒
3楼-- · 2019-01-02 16:31

You can set the image to be background image and have a transparent foreground image.

查看更多
栀子花@的思念
4楼-- · 2019-01-02 16:33

No, it's not possible.

If you can see it, you can get it.

查看更多
若你有天会懂
5楼-- · 2019-01-02 16:35

You can mark folders or files so that they don't have read access (any of the main web servers support this). This allows you to store them on the server without any level of access to the outside world. You may want to do this if you have a service that generates images for someone else to download later, or if you use your web account for FTP access, but don't want anyone to view the files. (i.e. upload a .bak file to the server for someone else to FTP down again).

However, as others have said, getting into copyright areas where people can view the image or video but not save them locally is not fully possibly, although there are tools to discourage illegal usage.

查看更多
情到深处是孤独
6楼-- · 2019-01-02 16:37

I'd like to add a more philosophical comment. The whole intent of the internet, particularly the World Wide Web, is to share data. If you don't want people to download a picture/video/document, don't put it on the web. It's really that simple. Too many people think they can impose their own rules on an existing design. Those who want to post content on the web, and control its distribution, are looking to have their cake and eat it too.

查看更多
孤独寂梦人
7楼-- · 2019-01-02 16:40

Don't post them to your site.

Otherwise it is not possible.

查看更多
登录 后发表回答