Quote:
Originally posted by danrak
How do I set it up so a group of IPs can see a message? For example say I want everyone from 192.168.1.x to see a message, or say IPs from 192.168.1.x and 255.255.255.x to see a message?
|
I neither test it, nor sure if it works but give it a try:
[[(substr($REMOTE_ADDR, 0, strlen(X))==192.168.1)]]
your template content for users whose IP is starting with 192.168.1
[[/(substr($REMOTE_ADDR, 0, strlen(X))==192.168.1)]]
Replace X with the character length of IP you used at the end.
For example:
if you use "192.168.1.255" X is 13
if you use "192.168.1" X is 9
if you use "192.168" X is 7
if you use "192" X is 3 etc.