Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How To Filter Domain Range?

Discussion in 'E-mail Discussion' 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:
    16,571
    Likes Received:
    439
    Trophy Points:
    583
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice