gmodsimplegame
V2EX  ›  问与答

我想在 cloudflare 上限制所有除苏州市外所有 IP,请问 IP 地址段有那位大神能帮忙提供下

  •  
  •   gmodsimplegame · Jul 18, 2018 · 2706 views
    This topic created in 2903 days ago, the information mentioned may be changed or developed.
    百度也不知道该搜什么好,也不知道有几个市,万一漏了还不行 QAQ
    tyhunter
        1
    tyhunter  
       Jul 18, 2018   ❤️ 1
    gmodsimplegame
        2
    gmodsimplegame  
    OP
       Jul 18, 2018
    @tyhunter 是直接 whitelist 这些吗
    caiyouzai
        3
    caiyouzai  
       Jul 18, 2018 via Android
    白名单的话很容易误伤的呀。
    caiyouzai
        4
    caiyouzai  
       Jul 18, 2018 via Android
    举个例子,电信的异地卡,在苏州上网,他会回归属地的省会注册 ip。
    你用白名单就误伤了。
    gmodsimplegame
        5
    gmodsimplegame  
    OP
       Jul 18, 2018
    @tyhunter 但是不行,他们限制格式是
    IP address range: Cloudflare accepts the following CIDR notations: /16 and /24 for IPv4 addresses and /64, /48, and /32 for IPv6
    gmodsimplegame
        6
    gmodsimplegame  
    OP
       Jul 18, 2018
    @caiyouzai 那就只限制江苏省的和上海的 IP 就好啦,因为这是班级的一个网站,一直托管在腾讯云上,最近一查访问日志发现很多美国+北京福建的,我就不想他们访问,怕破解什么的。我就转移解析到了 cloudflare,我已经把国外 IP 禁完了,只剩国内不知该怎么禁 IP 段
    olOwOlo
        7
    olOwOlo  
       Jul 18, 2018   ❤️ 1
    能动态的话可以试试 https://github.com/lionsoul2014/ip2region
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5280 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 79ms · UTC 08:18 · PVG 16:18 · LAX 01:18 · JFK 04:18
    ♥ Do have faith in what you're doing.