#5094 - RewriteCond - Random Brain Farts By Mr. Harper
Apache et le RewriteCond avec IPV6.
(où une IP -V6 correspond à une machine et plus un réseau).
This will allow it:
#Allowed ipv6 address
RewriteCond %{REMOTE_ADDR} !^2001\:470\:1f07\:XXXX\:XXXX\:XXXX\:XXXX\:XXXX
#Ban any other IP from inserting this into the query string
RewriteCond %{QUERY_STRING} ../
#Access Forbidden
RewriteRule .* – [F]
This will deny the ipv6 address:
RewriteCond %{REMOTE_ADDR} ^2001\:470\:1f07\:XXXX\:XXXX\:XXXX\:XXXX\:XXXX
(où une IP -V6 correspond à une machine et plus un réseau).
This will allow it:
#Allowed ipv6 address
RewriteCond %{REMOTE_ADDR} !^2001\:470\:1f07\:XXXX\:XXXX\:XXXX\:XXXX\:XXXX
#Ban any other IP from inserting this into the query string
RewriteCond %{QUERY_STRING} ../
#Access Forbidden
RewriteRule .* – [F]
This will deny the ipv6 address:
RewriteCond %{REMOTE_ADDR} ^2001\:470\:1f07\:XXXX\:XXXX\:XXXX\:XXXX\:XXXX