V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
fcitx
V2EX  ›  问与答

调用Sina的IP地址API

  •  
  •   fcitx · 2012-06-23 22:06:08 +08:00 · 3481 次点击
    这是一个创建于 4334 天前的主题,其中的信息可能已经有所发展或是发生改变。
    有个地方要禁止某地区的IP访问,所以用JS调用了新浪的api:

    http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js

    但是发现页面在这里大约要卡两秒多,请问有没有更高效的方式?
    5 条回复    1970-01-01 08:00:00 +08:00
    manhere
        1
    manhere  
       2012-06-23 22:12:47 +08:00
    http://int.dpool.sina.com.cn/iplookup/iplookup.php 更直观
    不过,用JS禁用IP,这招很怪呀。禁用不是应该在服务器那边吗?
    fcitx
        2
    fcitx  
    OP
       2012-06-23 22:18:53 +08:00
    不大想在服务端搞个庞大的IP数据库。
    cjou
        3
    cjou  
       2012-06-23 22:21:22 +08:00
    iptables 直接屏蔽那个地区ip段
    tomheng
        4
    tomheng  
       2012-06-23 22:51:56 +08:00
    不是正式开放的API,可能会有限制
    r4ntix
        5
    r4ntix  
       2012-06-23 23:04:21 +08:00
    淘宝这边有个IP 地址库,可以一试:
    http://ip.taobao.com/instructions.php
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   758 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 20:50 · PVG 04:50 · LAX 13:50 · JFK 16:50
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.