Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Only allow IPv6 addresses in Apache

How would I, in Apache, allow only IPv6 addresses to access my site?

This does not work:

order deny,allow
deny from all
allow from ::/0

It says "The specified network mask is invalid."

Reference:

  • https://www.ultratools.com/tools/ipv6CIDRToRangeResult?ipAddress=%3A%3A%2F0
like image 549
Geremia Avatar asked Nov 15 '25 17:11

Geremia


1 Answers

order deny,allow
deny from all
allow from 2000::/3
like image 119
Geremia Avatar answered Nov 17 '25 10:11

Geremia