Usage Guide

This guide will help you protect your website by querying our database of malicious IPs. You can use DNS queries for fast real-time protection or make API requests to check specific IPs.

Using DNS Queries

The preferred method to check whether an IP address is flagged as malicious is through a DNS query. This method is fast and lightweight.

dig +short bad.ip64.org

If the IP is flagged, you will receive a response, such as the CNAME value bad.ip64.org. Otherwise, you'll get an NXDOMAIN response.

Details

Using the API

If you prefer to integrate the check within your codebase, you can use our simple API to check for malicious IPs. Here's an example using curl:

curl -X POST https://ip64.org/api/check_ip -H "Content-Type: application/json" \
-d '{"ip": "192.0.2.1"}'

This API request will return a JSON response indicating whether the IP is in the database or not.

Details