views:

39

answers:

1

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.

+1  A: 

See:

Mod_rewrite - Deny access to certain folders

More Info:

http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html

Web Logic
How would I only allow access to a specific user in my database???
@user: You can use mysql's `GRANT`, more info here: http://www.ntchosting.com/mysql/grant.html
Web Logic