PDA

View Full Version : [MOD] Extra SPAM protection by blacklists


Boby
09-07-2006, 01:45 AM
I was working on a sort or extra spam protection script for myself, that will use public and well maintained blacklists, and I thought you will find it useful too ;)

You can get the file and all the info you need from here:
http://www.frozenminds.com/spamblacklist.html

Use it on submit.php, login.php, /admin/login.php and in case you have other mods like contact.php use it too. Don't add it to index.php or other regular browsing pages as it will increase traffic and loading time both to you and the blacklist providers.

On all your PHP scripts you will see on top:
Content visible to registered users only. Add the call to the spam protection file right before init:
Content visible to registered users only.
Hope you like it, enjoy!

Later Edit: You may check the script with one of the latest blacklisted IPs http://www.spamhaus.org/sbl/latest.lasso

Boby

munt
09-07-2006, 02:18 AM
looks like a cool mod :)
i may try it soon :)

proprod
09-07-2006, 03:17 AM
Excellent. Thanks, boby!

mgrohan
09-07-2006, 05:45 AM
Sounds great, Thanks! Will give this a try. :)

thompson
09-07-2006, 10:56 AM
may try it too.

Steven Myers
09-07-2006, 01:34 PM
I've tried it on 3.06, eh, kinda lost as to what I am looking for as far as changes or something to load ;)

Great work Boby, hopefully this will knock'em dead :D

Boby
09-07-2006, 01:42 PM
Well it won't block *all* spammers, but all known :)
Spamhous and SpamCop are really good services, most of your mailservers are protected by SpamAssassin (http://spamassassin.apache.org/) that is working with these blacklists too.

Steven Myers
09-07-2006, 01:53 PM
So with having the spamblacklist.php, and the code implimented in the files we want protected, it's using the SpamAssasin from my server to protect them?

I could be wrong ...

Boby
09-07-2006, 02:18 PM
No :D HaHaHa
Spamassassins is spam filter for mailservers that is working simmilar to this script (checks your incomming mails on Spamhaus and SpamCop blacklists). Actually the script is working simmilar to Spamassassins :)

Steven Myers
09-07-2006, 02:47 PM
Ahhh lol :D

I understand now, I noticed in the spamblacklist.php it uses the code below to block the listed IP's from the urls in the code

Content visible to registered users only.
And with the code line we add in our php files it is used to grab the code
Content visible to registered users only. from the spamblacklist.php to block those that have been blocked on those spam sites.

Vewwwy intwesting ;)

Boby
09-07-2006, 02:58 PM
sbl-xbl.spamhaus.org, bl.spamcop.net and list.dsbl.org are the locations of blacklists. So the script will check DNS records of visitors IP on those blacklists.

You can also add/remove blacklists from the array.

And yes:
Content visible to registered users only.
is to load and run the script.

Kaz
11-02-2006, 01:08 PM
Brilliant, cheers

shadav
03-26-2007, 04:50 AM
just want to make sure I got that right.....it should look like
Content visible to registered users only.

shadav
03-26-2007, 01:16 PM
ok i'm getting errors after doing this

Content visible to registered users only.[/B]
lines 81 - 87
Content visible to registered users only.
when i remove that spamblacklist code, another error

Content visible to registered users only.[/B]
line 34
Content visible to registered users only.
again i remove that one, next error lol

Content visible to registered users only.[/B]
line 34
Content visible to registered users only.

please help me fix this, i'm using version 2.1.1