faqts : Computers : Internet : Web Servers : Apache : Security

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

10 of 71 people (14%) answered Yes
Recently 0 of 10 people (0%) answered Yes

Entry

How can I restrict access to certain pages first based on username and password, and then, if they are satisified, on IP Address checking?

May 23rd, 2000 08:32
unknown unknown, Joshua Slive


One way to do this is to use mod_rewrite.  You can perform IP address
check conditional on %{LA-U:REMOTE_USER} and deny access where
appropriate.  If you have many IP/user combinations, you will probably
want to use an external rewritemap or program.