Forum Moderators: phranque

Message Too Old, No Replies

.htaccess access for local IP, password for others

.htaccess for local IP, password for others

         

gprichardson

9:05 pm on Dec 4, 2004 (gmt 0)

10+ Year Member



Hi,

Just came across these forums while searching the 'net for a solution to what I'm trying to do. I've got a page that I want access to w/o the need for authenication for everyone on the local subnet (say, 192.168.1.x) and require user/pass authentication for everyone else.

I haven't been able to figure out a way to do this. I've read the Apache docs (not very in depth) and googled the 'net every which way, but haven't found a solution. Anyone have any ideas?

I'm running Apache 2.0.52

Thanks all,

-Gary

PS Is there a mechanism for searching a specific forum? I didn't see a way to search. Wanted to before posting, but alas, my eyes didn't see a "search" link.

gprichardson

9:20 pm on Dec 4, 2004 (gmt 0)

10+ Year Member



Seems like I answered my own question. I read another post in this forum that pointed to the link:

[httpd.apache.org...]

Which gave an example of exactly what I wanted to do! Sorry to have wasted the forum's bandwidth on what turned out to be a pretty simple question.

Great forum. I think I'll be stickin' around for a while. :-)

-Gary

nancyb

9:53 pm on Dec 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hello gprichardson and Welcome to Webmasterworld [webmasterworld.com]

As far as searching WebmasterWorld, there is a site search link at the top/bottom of each page. But, you can also use the following code to search for just WebmasterWorld posts in Google. Go the the Control panel> System Preferences and enter it in the Custom Code Insert Top or Bottom.

<center><form method="GET" action="http://www.google.com/search"><input type="hidden" name="domains" value="webmasterworld.com"><input TYPE="text" name="q" size="25" maxlength="255" value><input type="submit" name="btnG" value="Google"><input type="radio" name="sitesearch" value="webmasterworld.com" checked>webmasterworld.com <input type="radio" name="sitesearch" value>www</form></center>