Add access check for IPv6

Add access check for IPv6 addresses and hostname like IPv4. Usage of HTTP-Proxy (with HTTP_X_FORWARDED_FOR) is not implemented for IPv6.