Outlander Posted August 8, 2007 Share Posted August 8, 2007 I'm trying to configure apache (1.3.x on windows yech) to allow local ip ranges (10. etc) and deny certain local machines (10.1.2.3.4 for example) and to deny any other ips (ie, the internet). I'm finding it hard to wrap my mind around how to do this easily in the directives. This is the current config snippet: <Directory C:/data/appserver/myhost/web/admin/> Order Deny,Allow Deny from All Allow from 10. 192.5. 192.168. </Directory> which denies all but "local" ranges for an admin panel. But now I need to be more specific and exclude say 10.1.2.3 from within a local range as well. This throws a spanner in the works. I had one crazy idea to do this: Order Deny,Allow Deny from 10.1.2.3 11. 12. 13......202. 203........ 255. Allow from 10. 192.5. 192.168. Deny "the whole internet" using all ranges EXCEPT 10. 192. but there must be an easier way surely? Let me know if anyone has any brainwaves on this one... Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.