Companion Service for Malicious IP Checker

Posted On 2017-08-12 by dwirch
Tags: Tip Free Stuff Blog 
Views: 949

Now that I've gathered a good sized database of malicious IP addresses, I thought I would dust off my keyboard and build a service for checking IP addresses for "badness".

Using the service is pretty easy. Just have your application send a URL like the following to

Where is the IP address that you want to check.

For example, to request a check for from PowerShell, you could do something like:

$Result=Invoke-RestMethod -Uri ""

If you get a 0 back, the IP address is ok, no incidents were found. Anything other than zero warrants further investigation.

The key is the querystring. If the variable is missing or the value is malformed/missing, you'll simply get an error back from the page, describing what went wrong.

If you got the URL and querystring correct, you'll get a number back. That number denotes the number of times the IP address was found in the banned IP database. 

But you're thinking, it should be a 0/1 or True/False, right? Well, I can change it to that, if that is what is needed. I thought it would be more informative if I displayed the actual number of times the IP address has attempted to access the site after it was banned.

For future enhancements, I'd like to include a "mode" switch. You can either get the basic information above, or an enhanced output mode which includes a text-only version of the data presented by the Malicious IP Checker tool.

I hope someone out there finds this service useful, and if you have any suggestions, complaints, or questions regarding the service (or the Malicious IP Checker tool), please don't hesitate to use the Contact form or the comments below to let me know.


There are no requirements other than those stated above. The service is free to use for all. However, please be considerate and space out your requests to one per second in order to keep the bandwidth free for other users.

Chronic abusers will be banned.

About the Author

dwirch has posted a total of 188 articles.

Comments On This Post

No comments on this post yet!

Do you have a thought relating to this post? You can post your comment here. If you have an unrelated question, you can use the Q&A section to ask it.

Or you can drop a note to the administrators if you're not sure where you should post.

Your IP address is:

Before you can post, you need to prove you are human. If you log in, this test goes away.

Code Links