Welcome to WebmasterWorld Guest from 23.22.46.195

Forum Moderators: Ocean10000 & incrediBILL & phranque

htaccess?

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

10+ Year Member



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)

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



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)

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



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.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month