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!

Block a Fragment of an IP Range?

Discussion in 'Security' started by 000, May 21, 2019.

  1. 000

    000 Well-Known Member

    Joined:
    Jun 3, 2008
    Messages:
    189
    Likes Received:
    1
    Trophy Points:
    68
    Hello,

    in any page you can found

    54.36.148/24

    to block FROM 54.36.148.0 to 54.36.148.255

    but the question is how I can block

    from 54.36.14* to 54.36.188 ???

    Or best: how I can BLOCK a fragment, no just ALL starting from 0 to 255 ?


    Thanks
     
    #1 000, May 21, 2019
    Last edited: May 21, 2019
  2. GOT

    GOT Get Proactive! PartnerNOC

    Joined:
    Apr 8, 2003
    Messages:
    1,453
    Likes Received:
    178
    Trophy Points:
    193
    Location:
    Chesapeake, VA
    cPanel Access Level:
    DataCenter Provider
    You won't always get exactly what you are looking for but it all comes from cidr notation. I normally use this tool to figure out what a particular mask will block

    whatmask - IP subnet/CIDR Calculator
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. 000

    000 Well-Known Member

    Joined:
    Jun 3, 2008
    Messages:
    189
    Likes Received:
    1
    Trophy Points:
    68
    thanks.

    I need block from 54.36.14* to 54.36.188

    how I can do this?

    Regards
     
  4. GOT

    GOT Get Proactive! PartnerNOC

    Joined:
    Apr 8, 2003
    Messages:
    1,453
    Likes Received:
    178
    Trophy Points:
    193
    Location:
    Chesapeake, VA
    cPanel Access Level:
    DataCenter Provider
    Ip ranges do not work exactly the way you want in this case, you'd have to block several ranges to get what you want

    54.36.140.0/22
    54.36.144.0/20
    54.36.160.0/20
    54.36.176.0/21
    54.36.184.0/22
    54.36.188.0/24

    That blocks 54.36.140.0-54.36.188.255

    I used that link I sent you to work that out. You just gotta plug and chug. With practice it becomes easier.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Infopro likes this.
  5. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,124
    Likes Received:
    474
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Great advice @GOT thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. 000

    000 Well-Known Member

    Joined:
    Jun 3, 2008
    Messages:
    189
    Likes Received:
    1
    Trophy Points:
    68
    Thanks,
    I will try understand how this work.
     
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