开发者

Directory deny in PHP?

开发者 https://www.devze.com 2023-01-31 19:11 出处:网络
How can i deny users except admin on a sp开发者_JAVA技巧esific folder using PHP?You can edit the .htaccess or IIS configuration to deny the folder.There are lots of ways.One way to completely lock out

How can i deny users except admin on a sp开发者_JAVA技巧esific folder using PHP?


You can edit the .htaccess or IIS configuration to deny the folder.


There are lots of ways. One way to completely lock out web users from a folder within your web root hierarchy would be to set its file system permissions to not be readable by the user context of the web server (apache user, or whatever you have set up).


<Files "*">
Order Allow,Deny
Deny from all
</Files>
0

精彩评论

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