homepage Welcome to WebmasterWorld Guest from 54.211.230.186
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
htaccess?
showtime

10+ Year Member



 
Msg#: 29 posted 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?

 

txbakers

WebmasterWorld Senior Member txbakers us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 29 posted 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.

jatar_k

WebmasterWorld Administrator jatar_k us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 29 posted 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