Bad IPs blocklist
IP blocklists containing IPs of known bad actors and ranges likely belonging to data centers.
The files are located in dist/
directory.
Building
To generate your own fresh blocklist run:
$ TOKEN={IP2LOCATION_DOWNLOAD_TOKEN} ./bin/build.sh
You can get your free token on https://lite.ip2location.com/.
Usage in node
Install dependencies and generate a DB
npm installnpm run buildDb
Run the example file:
node ./src/example.js`
// ./src/example.js const IpInfo = ; console;const ipInfo = '../dist/ipinfo.db';console; const ip = '93.201.96.204'; console;console;console;console;console;
Output:
init: 1.059ms
Datacenter: false
Blacklisted: true
Country: de
queries: 2.131ms
Used projects
- Firehol
- ip2location ASN DB
- This list of DC names
- This list of ASNs
- This list of web-hosting companies
Acknowledgments
- This product includes IP2Location LITE data available from http://www.ip2location.com.
- This product includes GeoLite2 data created by MaxMind, available from https://www.maxmind.com.