address
Matches on the IP address of the remote host (the client browser).
Arguments
- address
- The IP range pattern to use match the client’s IP address.
Remarks
This condition allows you to optionally forbid or allow access to URL’s based on the client IP address.
Examples
To forbid access from the client at the IP address 192.168.0.1, use:
<if address="192.168.0.1" /> <forbidden /> </if>
To forbid access from all clients with an IP address in the range 192.168.0.1 - 192.168.0.100, use:
<if address="192.168.0.1-192.168.0.100" /> <forbidden /> </if>
To forbid access from all clients with an IP address in the 192.168.\*.\* subnet use:
<if address="192.168.*.*" /> <forbidden /> </if>