gmodsimplegame
V2EX  ›  问与答

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

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