Cloudflare IP Ranges

Official list: https://www.cloudflare.com/ips/

You can also query from radb:

BTW: I only add 104.16.0.0/12 in my route collection.

Cloudflare IP Ranges by @sskaje: https://sskaje.me/2016/07/cloudflare-ip-ranges/

Incoming search terms:

Facebook IP Ranges

Facebook’s official developer site has a page: https://developers.facebook.com/docs/sharing/webmasters/crawler

showing how to get ip addresses used by crawler.

you can also use my project to query AS-FACEBOOK.

Facebook IP Ranges by @sskaje: https://sskaje.me/2016/07/facebook-ip-ranges/

Google IP Address Ranges

Google introduces its TXT/spf records including all Google’s IP: Google IP address ranges

_netblocks.google.com describes ipv4 ranges.

_netblocks2.google.com describes ipv6 ranges

_netblocks3.google.com is currently empty.

Now we have list of IPv4 ranges, but we know google provides a public dns service, 8.8.8.8/8.8.4.4 (for ipv6 2001:4860:4860::8888/2001:4860:4860::8844).
we can treat these two as 8.8.8.8/32 and 8.8.4.4/32 or just make it as 8.8.0.0/16.

IP/CIDR IP Begin IP End Netmask
216.239.32.0/19 216.239.32.0 216.239.63.255 255.255.224.0
64.233.160.0/19 64.233.160.0 64.233.191.255 255.255.224.0
66.249.80.0/20 66.249.80.0 66.249.95.255 255.255.240.0
72.14.192.0/18 72.14.192.0 72.14.255.255 255.255.192.0
209.85.128.0/17 209.85.128.0 209.85.255.255 255.255.128.0
66.102.0.0/20 66.102.0.0 66.102.15.255 255.255.240.0
74.125.0.0/16 74.125.0.0 74.125.255.255 255.255.0.0
64.18.0.0/20 64.18.0.0 64.18.15.255 255.255.240.0
207.126.144.0/20 207.126.144.0 207.126.159.255 255.255.240.0
173.194.0.0/16 173.194.0.0 173.194.255.255 255.255.0.0
8.8.8.8/32 8.8.8.8 8.8.8.8 255.255.255.255
8.8.4.4/32 8.8.4.4 8.8.4.4 255.255.255.255
8.8.0.0/16 8.8.0.0 8.8.255.255 255.255.0.0
Google IP Address Ranges by @sskaje: https://sskaje.me/2014/06/google-ip-address-ranges/

Incoming search terms:

从GeoIP免费库里生成IP到省市编号的组合

需求

生成一份从大陆地区的IP到省市编号的映射列表,用于数据分析。

准备工作

统计局提供的标准行政区划代码 http://www.stats.gov.cn/tjsj/tjbz/xzqhdm/,身份证前6位的编号。
从 http://dev.maxmind.com/geoip/geoip2/geolite2/ 下载CSV格式的城市数据库
新浪首页提供一个IP查询接口,可以输出TSV,JSONP,JSON的IP信息

Continue reading “从GeoIP免费库里生成IP到省市编号的组合” »

从GeoIP免费库里生成IP到省市编号的组合 by @sskaje: https://sskaje.me/2014/02/geoip-china-province-city-code-database/

Incoming search terms: