回复至:网站禁止ipv6访问

论坛首页 论坛 寻求帮助 网站禁止ipv6访问 回复至:网站禁止ipv6访问

#21430
孙锡源
管理员
    @ibadboy
    坏蛋的博客
    ibadboy.net

    在站点 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