php cookie 阻止对目录的访问
我有一个 mysql 用户数据库,可以登录我的网站并查看内容。我想阻止某些用户访问几个目录。最好的方法是什么?
目前,当用户登录时,会使用其客户 ID 创建 Cookie,并使用客户来显示其内容。
我如何阻止我的用户访问整个目录???
编辑:我需要允许数据库中的一个用户登录后访问目录。
I have a mysql database of users that can login to my site and view content. I would like to block a couple of directories from certain users. What is the best way to do this.
Currently when a user logs in a cookie is created with their customer id and the customer is is used to display their content.
How would I block entire directories from my users???
EDIT: I need to allow one user in my database to access the directories once logged in.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅:
Mod_rewrite - 拒绝访问某些文件夹
更多信息:
http://www.askapache.com/htaccess /mod_rewrite-tips-and-tricks.html
See:
Mod_rewrite - Deny access to certain folders
More Info:
http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html