Bluehost.com Web Hosting $6.95

Password protect OR allow from IP

This is a discussion on Password protect OR allow from IP within the Linux Web Servers forums, part of the Web Server and Related Forums category; I am trying to set up a server that can allow a certain IP (actually the server's IP) to ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-11-2005
Karl
 
Posts: n/a
Default Password protect OR allow from IP

I am trying to set up a server that can allow a certain IP (actually
the server's IP) to download content without logging in while allowing
all others to access the content after logging in. I would like to do
this all in one directory. So, i'd like apache to first check the IP,
if the IP is self, then allow. Otherwise, the second option would be
to authenticate. Is this possible? I can get each to work in separate
directories but am having no luck using the same directory.

THANKS!

  #2 (permalink)  
Old 07-11-2005
Karl
 
Posts: n/a
Default Re: Password protect OR allow from IP

I'd also like to note that i'm using apache 2 and i've tried various
combinations, such as:
<Directory /blah>
order deny,allow
deny from all
allow from <exact ip address>
<Basic authentication scheme>
require user <user>
satisfy any

i get either the server open to all (no pw or ip restriciton) or just
pw restriction. the ip check does not seem to be working. i've also
tried it as order allow,deny and tried other people's scripts from this
forum, to no avail.

what's up with this?

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 05:49 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0