0

I've got an online web tool and I want to give access to a company. At the moment, access is controlled by IP via the .htaccess file. The company I want to give access to are on an ipv6 address and although I've tried a lot of methods, they are still blocked from accessing the website.

Let's say their ipv6 is: 26b0:21t7:ada2:4a10:38f5:1d56:7a79:c83c

(side note: weirdly, when they visit a website like https://whatismyipaddress.com they also have an ipv4 address which I've whitelisted as well)

I've read this post but it doesn't actually answer the question:

Whitelist an Individual's IPv6 Range via .htaccess

and I've tried a lot of different things such as:

 <RequireAny>
     Require ip 51.203.055.209     # whitelisting ipv4 works fine
     Require ip 26b0:21t7:ada2:4a10::/64  26b0:21t7:ada2::/52  26b0:21t7:ada2:4a10:38f5:1d56:7a79:c83c
     Require ip 26b0:21t7:10::/48 26b0:21t7:11::/48 26b0:21t7:12::/48 26b0:21t7:13::/48 26b0:21t7:14::/48 26b0:21t7:15::/48 26b0:21t7:16::/48 26b0:21t7:17::/48 26b0:21t7:18::/48 26b0:21t7:19::/48 26b0:21t7:1a::/48 26b0:21t7:1b::/48 26b0:21t7:1c::/48 26b0:21t7:1e::/48
 </RequireAny>

...but none of the ipv6 works. I'll be honest, I don't really understand the whole subnets thing in ipv6, but I also don't want to spend ages finding out the intricacies of how it works - I would just like a hard and fast rule to whitelist ipv6 addresses in .htaccess.

Would appreciate any help.

Scerno
  • 198
  • 3
  • 8

0 Answers0