Apache Config Question

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Bryce C
Date:  
Subject: Apache Config Question
I was hoping for limiting access from only one URL, not IP. I might be
able to manipulate the SetEnvIf and Deny to do this from the referer but
I was hoping for something easier. Thanks Vic.

On Tue, 2002-08-20 at 22:29, Victor Odhner wrote:
> Bryce,
>
> First, glance at:
> http://www.lugatgt.org/articles/apache/#htacc
> http://httpd.apache.org/docs/mod/mod_access.html
>
> Those will give you an overview. Note especially
> the "order" clause that can give you non-intuitive
> results.
>
> This page seems to address what you were asking:
> http://www.rice.edu/web/access-control.html
>
> For other references, do a Google search on
>    htaccess allow deny

>
> Normally this is handled in your httpd.conf file.
>
> Note that if httpd.conf does not permit overriding
> by the htaccess file, then the htaccess file has no
> effect. Search for "allow override" for details.
>
> See http://httpd.apache.org/docs/misc/security_tips.html
>
> In httpd.conf, I think you want something like this:
>
>  <Directory /usr/local/httpd>
>      Order Deny,Allow
>      Deny from all    
>      Allow from 999.999.999.35  (or whatever)
>  </Directory>

>
> Bryce C wrote:
> >
> > Could someone please tell me or point me in the right direction for
> > limiting direct access / allowing access from only 1 web address using
> > an .htaccess file?
> >
> > --
> > Bryce Chidester
> > Network Administrator
> > CoBryce Communications
> > Bryce AT BryceCo DOT Net
> > http://www.bryceco.net
> >
> > ________________________________________________
> > See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't post to the list quickly and you use Netscape to write mail.
> >
> > PLUG-discuss mailing list -
> > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
> --
>
> Vic
>
> http://members.cox.net/vodhner/
> -- or --
> http://www.newearth.org/~victor/resume.html
> ________________________________________________
> See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't post to the list quickly and you use Netscape to write mail.
>
> PLUG-discuss mailing list -
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>

--
Bryce Chidester
Network Administrator
CoBryce Communications
Bryce AT BryceCo DOT Net
http://www.bryceco.net