A simple Python tool to check IP addresses using the AbuseIPDB API. You can do domains and more, but as of 8/11/24, this is the start of a bigger project I have in mind. I will update this tool with more features as soon as timely possible.
ipcheck allows you to quickly retrieve information about an IP address, including potential abuse reports. It uses the AbuseIPDB API to fetch:
- Abuse confidence score
- Number of reports
- Country of origin
- ISP
- Usage type
- Python 3.6+
- requests library
Choose one of the following methods:
- Copy the entire code from
ip_check_tool.py
. - Paste it into a new file on your local machine.
- Save the file as
ipcheck.py
(or any name you prefer).
- Clone this repository:
git clone https://github.com/yourusername/ipcheck.git
After installation, install the required library:
pip install requests
- Get a (FREE) API key from AbuseIPDB.
- Run the script:
(Use the filename you chose if different)
python ipcheck.py
- Enter your API key when prompted. I prefer inputting the key manually every time in my current workflow. Adjust as needed.
- Enter the IP address to check.
Results for IP: 192.0.2.1
Abuse Confidence Score: 0%
Total Reports: 0
Last Reported: Never
Country: United States (US)
ISP: Example ISP
Domain: example.com
Usage Type: Data Center/Web Hosting/Transit
No abuse reports found for this IP.
This project is open source and available under the MIT License.