Jump to content

How to use spamcop API


prabhjot

Recommended Posts

Hello all,

I am new to SpamCop. I read on this page http://www.spamcop.net/fom-serve/cache/351.html

that we can use a dns query to know if an IP is in a black list or not in our custom application/software.

The page says that if I want to check an IP like 1.2.3.4 then my dns query should be:

nslookup 4.3.2.1.bl.spamcop.net

But for me this returns the messsage that this is a non-existent domain.

I wanted to confirm my understanding. So, if I receive non-existent domain message it means that IP is not blacklisted else it is blacklisted?

Thanks and have a nice day!

Link to comment
Share on other sites

Hello all,

I am new to SpamCop. I read on this page http://www.spamcop.net/fom-serve/cache/351.html

that we can use a dns query to know if an IP is in a black list or not in our custom application/software.

The page says that if I want to check an IP like 1.2.3.4 then my dns query should be:

nslookup 4.3.2.1.bl.spamcop.net

But for me this returns the messsage that this is a non-existent domain.

I wanted to confirm my understanding. So, if I receive non-existent domain message it means that IP is not blacklisted else it is blacklisted?

Thanks and have a nice day!

just put IP in here and it will show if listed on the SpamCop Block List (SCBL)

http://www.spamcop.net/bl.shtml

Link to comment
Share on other sites

And yes, if using the DNS query "Non-existant domain" means unlisted, 127.0.0.2 means listed, like in

Non-authoritative answer:

Name: 226.212.189.177.bl.spamcop.net

Address: 127.0.0.2

(for IP address 177.189.212.226)

Oh, and the text value

Non-authoritative answer:

226.212.189.177.bl.spamcop.net text =

"Blocked - see http://www.spamcop.net/bl.shtml?177.189.212.226"

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...