Forum Moderators: phranque

Message Too Old, No Replies

mod access/mod authz by interface

         

warnockm

1:29 am on Mar 16, 2007 (gmt 0)

10+ Year Member



I'm looking for a way to do some basic access control by interface or destination IP address. i want to block access to a directory if the connection comes from the external interface. I can either configure it by interface or destination IP address. i tried this:

<Directory /directory>
Order Deny,Allow
Deny all
Allow via ipaddr
</Directory>

and

<Directory /directory>
Order Deny,Allow
Deny all
Allow to ipaddr
</Directory>

coopster

3:54 am on Mar 16, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, warnockm.

You are using the Allow [httpd.apache.org] directive incorrectly. You can Allow from, but not via or to.

warnockm

2:12 pm on Mar 16, 2007 (gmt 0)

10+ Year Member



my question is how to filter by interfaces...