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 block IPv6 IP addresses from website or server

Discussion in 'Security' started by Buzz50, Sep 20, 2016.

Tags:
  1. Buzz50

    Buzz50 Member

    Joined:
    Apr 23, 2012
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    How can I block IPv6 IP addresses from my website or its dedicated server?

    Entering the IPv6 address in cPanel's IP Blocker gives me an error message of 'Invalid IP Address Range'
     
    #1 Buzz50, Sep 20, 2016
    Last edited by a moderator: Sep 20, 2016
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    I've opened an internal case, CPANEL-9120, to report this issue. I'll update this thread with more information on the status of this case as it becomes available. In the meantime, you should be able to manually edit the .htaccess file within the directory you want to block the IPv6 address from accessing:

    Code:
    <Files 403.shtml>
    order allow,deny
    allow from all
    </Files>
    
    deny from 2001:db8::a00:20ff:fea7:ccea
    Thank you.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page