开发者

HTACCESS Help Directories and Files

I am not familiar with the field at all, it's quite confusing.

  • Block anything outside of root from being accessed (/ = OKAY /outside/ = BAD)
  • Files cannot be accessed directly however they can be included (PHP)

I a开发者_运维知识库m not sure where to start but it's important that users can not access directories outside of the root folder, this only allows them to open index.php which will include the rest.

The problem I seem to have is not knowing what to search for, any help would be great. :)


To deny all requests for the restricted directory, prepare a .htaccess file for each directory and put the following directive in it:

deny from all

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜