Syntax for listing multiple IPs in an .htaccess file

Syntax for listing multiple IPs in an .htaccess file

Post by DPPL - PC 1 » Wed, 22 Jan 2003 06:05:13



Hi,

All I've discovered about the syntax allowed for listing multiple IPs for
allow or deny in an .htaccess file goes like this:

Order deny,allow
Deny from all
Allow from
 4.20.734. \
 12.29.116.138 \

etc

where 4.20.734 would allow through everyone from 4.20.734.0 to 4.20.734.999

Does anyone know how one would express something like this:

4.20.734.100 - 4.20.734.344

Trying to avoid writing out huge lists.

Has anyone tried including a link here to an SQL or LDAP server that would
hold the appropriate information?

Thanks

T. West

 
 
 

1. ipconfig - multiple IPs - swapping IP effect on alias IPs?

Hello,

my IP structure looks like this:
# ifconfig -a
 lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
         inet 127.0.0.1 netmask ff000000
 hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
         inet 194.163.186.149 netmask fffffff0 broadcast 194.163.186.159
         ether 0:80:17:28:ae:8f
 hme0:2: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
         inet 194.163.186.158 netmask fffffff0 broadcast 194.163.186.255
 hme0:5: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
         inet 192.168.183.156 netmask ffffff00 broadcast 192.168.183.255

I enable and disable the various alias IPs using plumb and unplumb.
/usr/sbin/ifconfig hme0:1 plumb
/usr/sbin/ifconfig hme0:1 194.163.186.156 broadcast 194.163.186.255 netmask
 255.255.255.240 up

Can I also do a plumb and unplumb with hme:0, the hardware IP of the machine?
I unfortunately do not have a test-machine here. Would hme0:2 and hme0:5
get changed or stay as they are without being influenced?

Thanks,
    Armin

2. Setting up a printer in linux

3. syntax of .htaccess file

4. text to speech

5. .htaccess File Syntax

6. Compiling kernel 2.0.30 problems.

7. Syntax etc. of Apache .htaccess file

8. DRAM types for Alphastation 200 4/166

9. Apache .htaccess file syntax

10. Routing multiple public IPs to multiple internal networks

11. multiple IPs on multiple NICs

12. ?Multiple domains with multiple IPs on HPUX 9.05 and Netscape Comm Server?

13. syntax to list file.[suf1,suf2,suf3...]