Apache config -- allowing/rejecting remote host
Ijaaz A. Ullah
ijaaz-UwkSZrAjFfdkDLQDXwjzI9BPR1lH4CV8 at public.gmane.org
Sun Apr 4 02:33:27 UTC 2010
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.*
>
> I know that "xinetd" can do this from its config file. Not sure about
> Apache...
>
> --
> William
>
You can do something like this:
<Directory "/">
order allow,deny
allow from all
deny from 11.22.33.44
</Directory>
--
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