Apache config -- allowing/rejecting remote host
William Park
opengeometry-FFYn/CNdgSA at public.gmane.org
Mon Apr 5 03:27:08 UTC 2010
On Sat, Apr 03, 2010 at 10:45:19PM -0400, Scott Elcomb wrote:
> On Sat, Apr 3, 2010 at 10:33 PM, Ijaaz A. Ullah
> <ijaaz-UwkSZrAjFfdkDLQDXwjzI9BPR1lH4CV8 at public.gmane.org> wrote:
> > On Sat, Apr 3, 2010 at 10:28 PM, William Park <opengeometry-FFYn/CNdgSA at public.gmane.org> wrote:
> >> In Apache's httpd.conf, is there a way to accept (or reject) connection
> >> based on incoming IP or Network. Eg.
> >> - accepting only (or rejecting) from host 11.22.33.44
> >> - accepting only (or rejecting) from network 11.22.33.*
> >>
> <snip/>
> >
> > You can do something like this:
> >
> > <Directory "/">
> > order allow,deny
> > allow from all
> >
> > deny from 11.22.33.44
> > </Directory>
>
> You may also want to check the docs for order, allow and deny:
> <http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html>
Thanks!
--
William
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list