How Can I Block Requests from China to My App?

前端 未结 4 1392
时光说笑
时光说笑 2021-02-08 11:01

I have an API that is somewhat popular (10,000+ requests/day). After 10 requests per day from an IP address I return a message telling the user they need to cough of some cash i

4条回答
  •  死守一世寂寞
    2021-02-08 11:16

    I use the MaxMind GeoIP web service: http://www.maxmind.com/en/web_services#country

    You get 2,000,000 lookups for $200. Works great, low latency, and you don't have to maintain a local database.

提交回复
热议问题