PHP Client Library for the blacklists

I was looking for a PHP Client for SURBL to use it in one of my Projects. But, couldn”t find one.
So, I wrote it for myself which is basically the ported version of Python”s surblclient –

You can download my php-surblclient from here (or fork it!):

SURBLs are lists of web sites that have appeared in unsolicited messages. SURBL list can be used with programs that can check message body web sites against SURBLs, such as SpamAssassin 3 and others mentioned on the links page. is a combined SURBL list where you can use this to find if this is Blacklisted under any of the surbl lists.

All of the SURBL data sources are combined into a single, bitmasked list: Bitmasking means that there is only one オンライン カジノ entry per domain name or IP address, but that entry will resolve into an address (DNS A record) whose last octet indicates which lists it belongs to. The bit positions in that octet for the different lists are:
2 = comes from
4 = comes from
8 = comes from phishing data source (labelled as [ph] in multi)
16 = comes from
32 = comes from
64 = comes from jp data source (labelled as [jp] in multi)

If an entry belongs to just one list it will have an address where the last octet has that value, for example means it comes from the phishing list and means it”s in the data used in An entry on multiple lists gets the sum of those list numbers as the last octet, so means a record is on both and (comes from: 2 4 = 6). In this way, membership in multiple lists is encoded into a single response.

More Details at:


Posted on Mar 14, 2011
Written byAbhinay Omkar

6 thoughts on “PHP Client Library for the blacklists”

  1. pti-seb says:

    Nice work, I use it for BilboLink (URL shortener).

    1. Anonymous says:

      Thank you! Nice to know! 🙂

  2. pti-seb says:

    I have a suggestion about this library : can you add DBL and URIDBL support ? It work same as SURBL and the implementation will be easy I think.

    Best regards.

    1. Anonymous says:

      Sure, I had plans to include DBL / URIDBL support to php-surblclient. I’ll add this soon.


  3. Wouter says:

    great thnx

  4. That.s sounds interesting. Good informative blog.Just loved to browse through these all articles..

Leave a Reply

Your email address will not be published. Required fields are marked *