开发者

Directory deny in PHP?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜