httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Pettit <>
Subject [users@httpd] Environment Variables / Allow Directives
Date Sun, 12 Sep 2004 03:50:05 GMT

I have a file which is updated daily on my web server which contains a
listing of all the IP subnets in New Zealand.

It looks like:
and so on.

What I want to do is use this file to limit access to a virtual host to
users from New Zealand only (international bandwidth costs are

I've figured I need to make a directive like this:
<Directory />
 Options FollowSymlinks
 Order Deny,Allow
 Deny from all
 Allow from env=NZIP

But how can I setup an env which reads this file each time someone
creates a connection and denies them if their IP address isn't in that

I realise I could put all of the subnets on the end of the Allow from
part, but there's a few thousand to go in there and it needs to be kept
up to date.

I have tried using mod_geoip from, but it didn't work very

Any help would be much appreciated.


Scott Pettit

Be who you are and say what you feel, because those who mind don't
matter, and those who matter don't mind.
-Dr. Seuss

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message