Conditional Content

IP address ranges

8 months 6 days ago #74738

Simon Logan's Avatar Simon Logan

Just wanted to make sure my notation is correct for restricting by a range of IPs plus two extra ones? I'm using:

{show ip="137.195.0.0-137.195.255.255, 94.200.75.149, 217.33.165.201"}
to show the content to IPs which match the following ones supplied to me:
Edinburgh and Malaysia 137.195.0.0 / 16
Dubai 94.200.75.149 / 32
Orkney 217.33.165.201 / 32
Just that the client reported getting the "you are not in the range" message when they should have been on one of those IPs (though it could be they happened to look when I was testing things). Just that since I'm not in that IP range I can't verify.

8 months 6 days ago #74739

Simon Logan's Avatar Simon Logan

Just to follow up the client has checked their IP is 137.195.178.156 so should be caught by that first range?

8 months 6 days ago #74740

Simon Logan's Avatar Simon Logan

Should i use the following instead?

{show ip="137.195, 94.200.75.149, 217.33.165.201"}

8 months 6 days ago #74741

Peter van Westen's Avatar Peter van Westen Admin

Please try the latest development version from:
www.regularlabs.com/development-releases

8 months 6 days ago #74742

Simon Logan's Avatar Simon Logan

Will try that now though my recent edit to use the "137.195" notation seems to work also

8 months 6 days ago #74744

Peter van Westen's Avatar Peter van Westen Admin

Yep, there was an issue with ranges.