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>
精彩评论