News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Req: Ban (Block) on DNSBL

Started by bware, March 16, 2007, 06:34:53 AM

Previous topic - Next topic

bware

Hi,


I've always been happy with SMF(/YABBS) but nowadays filtering out spammers takes up too much of my valuable free time :(

Would it be possible to add some sort of BULKBL lookups (like most mailservers have nowadays) that block guests/users in case their hostname/IP is on the list of choice ?

The mod would behave in the following manner:
1) User opens SMF board
2) A DNSBL check is performed (nslookup)
3) If featured on the DNSBL, the error message is displayed to the user and access to the board is denied
4) If the user is not on the DNSBL, the user is granted access to the board.

This would save me as admin a lot of work/time.

Best regards,
BWare


bware

A simple code example that I found to achieve implementing blacklisting based on DNSBL's:


<?php
function check_dnsbl($ip)
{
   
$dnsbl_check=array("bl.spamcop.net","list.dsbl.org",
"sbl.spamhaus.org",'xbl.spamhaus.org');
   if(
$ip){
       
$rip=implode('.',array_reverse(explode(".",$ip)));
       foreach(
$dnsbl_check as $val){
           if(
checkdnsrr($rip.'.'.$val.'.','A'))
               return 
$rip.'.'.$val;
       }
   }
   return 
false;
}
?>



I'll see with what I can come with myself....

Josef

#2
I would really love this feature!
It would be perfect to use it with the projecthoneypot DNSBL [nofollow] :)

Sarge

Enabling Visual Verification in SMF 1.1.2 does a good job of keeping spammers at bay.

You can enable it at Admin > Registration > Settings tab > "Complexity of visual verification image". The Medium setting seems to work with most bots.

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

Josef

But a DNSBL would help to block Harvesters which collect eMail Adresses!

Thantos

Quote from: Josef on June 08, 2007, 10:52:40 AM
But a DNSBL would help to block Harvesters which collect eMail Adresses!
with 2.0 email addresses aren't shown on the profile page.  As such there would be no emails to harvest.

SusanTN

Quote from: Thantos on June 11, 2007, 02:06:14 AM
Quote from: Josef on June 08, 2007, 10:52:40 AM
But a DNSBL would help to block Harvesters which collect eMail Adresses!
with 2.0 email addresses aren't shown on the profile page.  As such there would be no emails to harvest.

Ok then look at it this way a DNSBL would help block bad web robots which do nothing more than to steal bandwidth and content from the sites you worked so hard to build and create. I would be interested in a DNSBL plugin...

H

-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

Advertisement: