Hi All,
I'm trying to filter out an IP range from my analytics package, but I'm hopeless with this sort of stuff, does this look right?
The range was given to me as: 194.153.105.0/23 Which I think translates to the range 194.153.105.0 to 194.153.109.255, is that correct? (Calculated using this page: http://jodies.de/ipcalc)
Next, I came up with this regular expression: (Edit: Based on this page: http://www.webmasterworld.com/analytics/3011116.htm)
^194\.153\.10([5-9])\.([0-9]¦1[0-9]¦2[0-9]¦3[0-9]¦4[0-9]¦5[0-9]¦6[0-9]¦7[0-9]¦8[0-9]¦9[0-9]¦1[0-9][0-9]¦2[0-4][0-9]¦25[0-5])
Does that look right? Unfortunately there's no real way of testing it, as I can't ping my analytics from specific IPs in the range, and I have no way of knowing if traffic outside this range is being filtered out that shouldn't.
Many thanks for your help guys,
Andrew.
PS I've actually changed this number from the real one because I'm paranoid, but it shouldn't affect the regex. (I only changed the first two octets)