IP Blocklist Check API - Detect Bogons and Suspicious Hosts
Runs four checks on an IPv4 address: RFC1918 private ranges, bogon ranges (TEST-NET, CGNAT, multicast, reserved), reverse DNS (PTR), and suspicious hostname keywords (tor, proxy, vpn, spam, etc.). Returns a risk level (low/medium/high) plus the raw check results. IPv6 is not supported.
Code examples
curl -X POST https://api.botoi.com/v1/ip-blocklist/check \
-H "Content-Type: application/json" \
-d '{"ip":"185.220.101.5"}'When to use this API
Filter signup traffic from bogon networks
Reject signups where the client IP is in a bogon range. These are reserved or undeliverable networks (TEST-NET, 169.254/16, multicast) and almost always indicate a misconfigured proxy or spoofed header.
Rate-limit Tor and known-proxy traffic separately
Route IPs with suspicious hostnames (tor-exit-*, *.proxy.*, *vpn*) into a tighter rate-limit bucket. Legitimate Tor users still get access; automated abuse gets throttled.
Enrich your application logs
For every high-value event (password reset, admin action, large refund), call this endpoint and log the risk_level and reverse DNS. Gives your SOC team a head start during incident triage.
Frequently asked questions
Why is IPv6 not supported?
What makes a hostname "suspicious"?
How is the risk level calculated?
Does this query third-party threat feeds?
Why is 192.0.2.1 flagged as bogon?
Get your API key
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.