Apache config -- allowing/rejecting remote host
Scott Elcomb
psema4-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Sun Apr 4 02:45:19 UTC 2010
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>
Cheers
--
Scott Elcomb
http://www.psema4.com/ @psema4
Member of the Pirate Party of Canada
http://www.pirateparty.ca/
--
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