回复至:网站禁止ipv6访问

孙锡源
  • 文章数量: 704
@ibadboy

在站点 Nginx 的 location / 中加入以下配置:

deny  ::;

参见:

Nginx 官方文档中对 ngx_http_access_module 的描述:http://nginx.org/en/docs/http/ngx_http_access_module.html

IBM 官方文档中对特殊 IPv6 地址的描述:https://www.ibm.com/docs/en/zos/2.4.0?topic=applications-special-ipv6-addresses

来自秦皇岛, 河北, 中国