Simon Lloyd |
08-08-2011 04:51 PM |
Quote:
Originally Posted by BirdOPrey5
(Post 2230853)
Would this work with IPv6 addresses?
|
To answer this simply, if you entered x12.35p.6-51?54e in the list then anything matching that will be redirected, if you enter x12 then anything that contains x12 will be redirected.
Quote:
Originally Posted by nhawk
(Post 2230856)
Here's a little snippet of code for IPv4 addresses that I use in several private mods.
Code:
$ip = explode('.',IPADDRESS);
$ipaddress = 16777216 * $ip[0] + 65536 * $ip[1] + 256 * $ip[2] + $ip[3];
You should be able to figure out how to compare a range of numbers with that.
IPv6 is very similar.
|
I really have no idea what an IPv4 or 6 is, the mod, as it stands does not use regular expressions to check the entire octet hut instead goes for a simple match, there are enhancements coming soon with this mod but (until i understand it myself) for now it will remain simply as a match.
|