开发者

HTACCESS Help Directories and Files

开发者 https://www.devze.com 2023-02-19 15:02 出处:网络
I am not familiar with the field at all, it\'s quite confusing. Block anything outside of root from being accessed (/ = OKAY /outside/ = BAD)

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

精彩评论

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