Advertisement:

Author Topic: Req: Ban (Block) on DNSBL  (Read 3827 times)

Offline bware

  • Newbie
  • *
  • Posts: 2
Req: Ban (Block) on DNSBL
« on: March 16, 2007, 06:34:53 AM »
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

 

Offline bware

  • Newbie
  • *
  • Posts: 2
Re: Req: Ban (Block) on DNSBL
« Reply #1 on: March 19, 2007, 05:45:43 AM »
A simple code example that I found to achieve implementing blacklisting based on DNSBL's:

Code: [Select]
<?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....
 

Offline Josef

  • Semi-Newbie
  • *
  • Posts: 11
Re: Req: Ban (Block) on DNSBL
« Reply #2 on: June 06, 2007, 01:43:12 PM »
I would really love this feature!
It would be perfect to use it with the projecthoneypot DNSBL [nofollow] :)
« Last Edit: June 06, 2007, 01:45:42 PM by Josef »

Offline Sarge

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,209
  • Gender: Male
    • Zëri YT!
Re: Req: Ban (Block) on DNSBL
« Reply #3 on: June 07, 2007, 03:05:04 PM »
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

Offline Josef

  • Semi-Newbie
  • *
  • Posts: 11
Re: Req: Ban (Block) on DNSBL
« Reply #4 on: June 08, 2007, 10:52:40 AM »
But a DNSBL would help to block Harvesters which collect eMail Adresses!

Offline Thantos

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 16,163
  • Gender: Male
Re: Req: Ban (Block) on DNSBL
« Reply #5 on: June 11, 2007, 02:06:14 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.

Offline SusanTN

  • Jr. Member
  • **
  • Posts: 116
  • Gender: Female
    • Susan's Place Transgender Resources
Re: Req: Ban (Block) on DNSBL
« Reply #6 on: November 01, 2007, 06:26:36 PM »
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...

Offline H

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,662
  • Gender: Male
Re: Req: Ban (Block) on DNSBL
« Reply #7 on: November 02, 2007, 05:22:04 PM »
This mod is sort of what you're looking for:

http://custom.simplemachines.org/mods/index.php?mod=544
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)