Jump to content

How to use spamcop API


prabhjot
 Share

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!

Edited by prabhjot
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...