How To Filter Domain Range?

D. Stall

Member
Apr 1, 2013
7
0
1
cPanel Access Level
Website Owner
How can I filter for a domain range?

I used the Google Analytics IP Range Regular Expression Builder at - analyticsmarket.com/freetools/ipregex
but the Regex it returns doesn't work.

For instance, I want to filter IP range 210.0.0.0 to 211.255.255.255, and used the Regex provided -
^(2(1[0-1]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))$

But it doesn't work, and IPs within that range aren't filtered out.
I've also tried Regex from Builder on a range that includes my own IP, and it doesn't work for that range either.
 
Last edited: