Forum Moderators: phranque

Message Too Old, No Replies

Htaccess and partial IPV6

         

lofra

7:15 am on Jul 1, 2008 (gmt 0)

10+ Year Member



Is it possible to allow or deny partial IPV6 address, like it is for IPV4 ?

#partial IPV4 OK
allow from 123.12
#full IPV4 OK
allow from 132.12.12.12
# full IPV6 OK
allow from 1fff:0000:0a88:85a3:0000:0000:ac1f:8001
# partial IPV6 ?
allow from 1ffa:0000:0a88:85a3

Thanks for help

jdMorgan

1:55 pm on Jul 1, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Oh, good question! I haven't run into an IPV6 problem yet, but it's sure to happen soon enough...

In Apache 2.x, you can use CIDR notation, as documented:


Allow from 1ffa:0000:0a88:85a3:0000:0000/64

See Apache 2.0 mod_access or Apache 2.2 mod_authz documentation for more info.

Jim

lofra

7:11 am on Jul 2, 2008 (gmt 0)

10+ Year Member



It seems OK with the CIDR notation, thanks !