homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum


 9:58 pm on Sep 14, 2002 (gmt 0)

Is it possible, using htaccess (or any other method), to require a valid user name/password for access to a page, unless the I.P address falls within a particular range, in which case the u/p requirement is bypassed?



 1:11 pm on Sep 16, 2002 (gmt 0)

I don't think you can have it both ways. I would experiement with placement of the htaccess file and set up a range to test.


 5:38 pm on Sep 16, 2002 (gmt 0)

you could do this with php. Check to see if the IP is in the given range and if not, send them to a login page or use $PHP_AUTH_USER and $PHP_AUTH_PASS to generate a htaccess type popup.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved