TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Country IP Blocks database needs your help

4 点作者 etix将近 14 年前

3 条评论

dlsspy将近 14 年前
This is one of the applications for which I really like small couch dbs. Build it in one place, replicate all over.<p>I converted something from that to a couchdb in a couple of minutes and set up a view to reproduce their CIDR export data. For example:<p><a href="http://dustinphoto.couchone.com/country_ip/_design/views/_view/by_code?group=true" rel="nofollow">http://dustinphoto.couchone.com/country_ip/_design/views/_vi...</a><p>Pull a single country, bogons (XA) in this case. It looks slightly funny since I used the CIDR address as the key since I can extrapolate pretty much everything else from it:<p><a href="http://dustinphoto.couchone.com/country_ip/_design/views/_view/by_code?reduce=false&#38;key=%22XA%22" rel="nofollow">http://dustinphoto.couchone.com/country_ip/_design/views/_vi...</a><p>This model means I can rate limit to near nothing without affecting people because they can just replicate <a href="http://dustinphoto.couchone.com/country_ip/" rel="nofollow">http://dustinphoto.couchone.com/country_ip/</a> and use their own infrastructure while keeping the data fully synchronized.<p>I've got another similar database where I integer encoded the keys so they sort numerically so a reverse limit 1 sorted search by integer key will return lat/long data at whatever granularity that particular block was captured (could be a single IP address). I should get these consolidated somehow.
viraptor将近 14 年前
I'm disappointed about what they provide... Almost every point of their About page I disagree with. Blocking random network blocks is not proper security, no IP database is "current" or "accurate", webmasters should work on actual security in the first place, not on rejecting some arbitrary portion of internet.
citricsquid将近 14 年前
I don't donate to things like this unless they can explain why their costs are so high or why they need the money, what's it for? I'd be more that happy to donate if they ould explain their costs.