Welcome to WebmasterWorld Guest from 54.159.42.234

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

htaccess?

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

Junior Member

10+ Year Member

joined:Dec 22, 2004
posts:46
votes: 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 Sept 16, 2002 (gmt 0)

Senior Member

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

joined:Sept 1, 2001
posts:4392
votes: 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 Sept 16, 2002 (gmt 0)

Administrator

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

joined:July 24, 2001
posts:15755
votes: 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.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members