【发布时间】:2013-04-22 20:50:17
【问题描述】:
我的 public_html 中有一个图像目录结构,如下所示:
public_html/
design_images/
product_11/
112342_234/ ... a bunch of images stored here for this product
112343_910/ ... images for this product
more image folders/...
...
在public_html 文件夹中,我在产品文件夹中有用于图像处理和PDF 转换的php 文件。我只是担心有人可能会以某种方式在某处注入一些脚本并删除其中一个产品文件夹。我将所有这些目录保存在 public_html 上,因为我经常需要在整个网站中动态显示产品文件夹中的图像。
我怎样才能避免这种情况?我在虚拟服务器上使用 Apache,并且可以访问我的托管包中的 root。
我在 public_html/js 中也有 javascript 文件,是否有任何流氓来编辑它们?
【问题讨论】:
标签: php apache security directory-structure