RE: [users@httpd] php & security per page per user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Try this:

<LocationMatch /restricted_url>
AuthType Basic
AuthName "admins only"
AuthUserFile /your_path/your_user_pass_file.pass
Require user mini_me
Order Allow,Deny
Allow from 10.0.10.7
</LocationMatch>

================
Yanbin Ma


-----Original Message-----
From: JC [mailto:hiep@xxxxxxxxxx] 
Sent: Wednesday, December 28, 2005 4:39 PM
To: Apache Users
Subject: [users@httpd] php & security per page per user

Hi everyone,

I'm trying to develop an internal website that requires security for 
specific page per specific user.

For example:

I have page1.php, page2.php, page3.php, and page4.php.

I also have user1, user2, user3, and userx.  Each user has his/her own 
password.

Now, user1 and user2 can only access page2.php and page4.php, but no other 
page.  user3 can only access page2.php and page3.php.  userx can only 
access page1.php.

Is there an easy way to implement this?

I plan to use apache & mysql for this project.  I also plan to use table 
to store users, passwords, and page, but I'm not sure what's the best way to

accomplish this.

Thank you very much for any suggestions or comments.
JC

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux