The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How To Filter Domain Range?

Discussion in 'E-mail Discussions' started by D. Stall, Apr 5, 2013.

  1. D. Stall

    D. Stall Member

    Joined:
    Apr 1, 2013
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    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.
     
    #1 D. Stall, Apr 5, 2013
    Last edited: Apr 5, 2013
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Not sure if this is what you're after or not:
    /https://www.countryipblocks.net/search_ip.php?search_ip=210.0.0.0
     
Loading...

Share This Page