How to block IPv6 IP addresses from website or server

Buzz50

Member
Apr 23, 2012
9
0
51
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'
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,222
463
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,222
463
Hello,

To update, the resolution associated with case CPANEL-9120 is scheduled for inclusion with cPanel version 62.

Thanks!