Skip to end of metadata
Go to start of metadata

Detecting IPv6 Clients

You can configure Apache HTTPD to set an environment variable if the client is using IPv6:

  1. httpd.conf
  2. Set an environment variable if access is IPv6
    SetEnvIfNoCase REMOTE_ADDR "^0-9a-f+$" IPV6_USER=1

If Server Side Includes are enabled, you can modify page content based on whether the client is using IPv4 or IPv6:

  • No labels