如何保护图像文件夹免受未授权的访问 [英] How to secure image folder from unauthorize access

查看:82
本文介绍了如何保护图像文件夹免受未授权的访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友

我正在开发一个网站.我需要将图像放在目录中,并将图像地址存储到数据库中.

我想知道如何保护我的图像文件夹,以便没人能看到该文件夹​​中的任何图像.

Dear Friends

I am developing a website. I need to put the images to a directory and store the image address to the database.

I want to know that how can I secure my image folder so that No one can see any of the image from that folder.

推荐答案

如果这样做,没有人将能够看到您的图像,甚至您自己的网页.浏览器必须能够以某种方式获取图像,并且只需很少的要求,它就可以击败您拥有的任何安全系统.

您唯一的可能就是让播放器在客户端上运行,该播放器可以从安全的URL请求图像,然后将图像加密发送到客户端.然后,播放器将解密图像并显示它们.但是,这是一堆开销,并且非常限制您如何在网页中使用图像,以免某人无法将图像用于自己的目的.
If you do that, no one will ever be able to see your images, even your own web pages. The browser has to be able to get at the images somehow, and just by that little requirement, it defeats any security system you have.

You''re only possiblity is to have a player running on the client side that can request images from a secured URL and the images are sent over to the client encrypted. The player would then decrypt the images and display them. But, this is a bunch of overhead, and very restrictive to how you can use imagery in your web pages, just so someone can''t use your images for their own purposes.


不要授予该文件夹777权限
donot give 777 permission to that folder


这篇关于如何保护图像文件夹免受未授权的访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆