mod_auth_ip.c file, and
is not compiled in by default. It provides for user authentication by
source IP address.
The AuthenticateIP directive allow some addresses to override authentication. Address/network is a (possibly multiple) network specification, and username is the username assumed if client address match network specification.
Address/network parameters use these formats:
| Format | Example | Address range | Description |
| Address | 212.38.32.31 | Only 212.38.32.31 | Single IP address |
| Address Prefix | 212.38. 212.38 |
212.38.0.0 to 212.38.255.255 | Class network IP address |
| Network/Bits | 212.38.32.0/22 | 212.38.32.0 to 212.38.35.255 | N-bits netmask |
| Network/Netmask | 212.38.0.0/255.255.0.0 | 212.38.0.0 to 212.38.255.255 | Netmask definition |
| Network/.NetmaskSuffix | 212.38.32.4/.255.252 212.38.32.4/.252 |
212.38.32.4 to 212.38.32.7 | Netmask suffix definition |
| Not-address | 212.38.32.33-212.38.32.35 | 212.38.32.33 to 212.38.32.35 | Address range |
| Not-address | !212.38.32.8/.255.252 | 0.0.0.0 to 212.38.32.7 and 212.38.32.12 to 255.255.255.255 |
Negative address matching |
| Not-address | !212.38.32.8-212.38.32.11 | 0.0.0.0 to 212.38.32.7 and 212.38.32.12 to 255.255.255.255 |
Negative address range |
See also AuthName, AuthType and AuthUserFile.