为什么官方文档php.net上的php中没有$_SERVER[HTTP_CLIENT_IP]的文档?

Why is there no documentation for $_SERVER[ HTTP_CLIENT_IP ] in php on official documentation php.net?

为什么官方文档 php.net php 中没有 $_SERVER[ HTTP_CLIENT_IP ] 的文档?

网上似乎没有任何关于$_SERVER[ HTTP_CLIENT_IP ]的文档。甚至像 tutorialpoint 或 w3school 这样的参考网站也没有这方面的信息。

php.net: http://php.net/manual/en/reserved.variables.server.php

教程点:https://www.tutorialspoint.com/php/php_predefined_variables.htm

w3school: https://www.w3schools.com/php/php_superglobals.asp

然而,论坛中有许多评论或教程使用 $_SERVER[ HTTP_CLIENT_IP ] 来获取更准确的访问者 IP 地址。 如:

Whosebug 问题:

信息栈交换:https://security.stackexchange.com/questions/129662/best-approach-to-get-users-ip/129664#129664

此外,在 php.net 的用户贡献的注释中提到了这一点,但官方没有提及

那么,$_SERVER[ HTTP_CLIENT_IP ] 是真的吗,因为官方文档没有这方面的信息?

$_SERVER[ HTTP_CLIENT_IP ] 真的可以在共享网络中获取访问者的 "real" IP 地址吗? 谢谢

The entries in this array are created by the web server. There is no guarantee that every web server will provide any of these; servers may omit some, or provide others not listed here. That said, a large number of these variables are accounted for in the » CGI/1.1 specification, so you should be able to expect those.

来自http://php.net/manual/en/reserved.variables.server.php

HTTP_CLIENT_IP 不在 CGI/1.1 规范中 并且此名称由网络服务器生成。因此 HTTP_CLIENT_IP 可能不在文档中。