The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Spam Killer Details »» | ||||||||||||||||||||||||||
Spam. You know what it is. You hate it. If you don't, you're not normal.
Comment spam. A rising plague. The bastards have destroyed USENET, made Email all but worthless and now they're setting their sights on blogs and messageboards. This hack is a way to fight back. Spam Killer is designed to work with the MT Blacklist, a list of sites known to be the sourcepoint of spam. The program offered there is made for the blog program Moveable Type. This hack reads the Blacklist intended for that program and applies it to vbulletin. Like most blacklist schemes, this needs to be constantly updated to be most effective. It also doesn't hurt that when spam does leak through if you add the URL's the spammers left behind to your own black list in case they try again. Of the many things they can spoof after all, their website's DNS is the most difficult (not impossible, but difficult). Further, most of the bush-league spammers that manually attack vbulletin boards don't have the expertise necessary to spoof a DNS (many of the fools can't properly spoof an IP). Interested? Good. This hack is functional, but I'm putting it here in beta because it isn't as extensively tested as I'd like. For one, an installer would be useful - I haven't written one yet. For another, it would be nice if the system could auto-update, but I haven't been able to get into contact with Mr. Allen - coordinator of the MT-Blacklist project. Ideally the finished program would maintain both a master and a local blacklist and submit items from the local blacklist to the MT Blacklist project site for possible inclusion. This beta isn't recommended for folks with no PHP experience. That said, let us begin with the install instructions. Step 1: Download the Blacklist http://www.jayallen.org/comment_spam/blacklist.txt Step 2: Download the Spamkill extension That file is attached to this thread. It goes to your forums/includes/ directory. Step 4: Create a "System User" If you have an RSS post account that'll work. The user needs to be distinct. Bans will be filed under this user's user name in the moderation logs. Step 5: Adjust Settings Open the spamkiller file and find the following code: PHP Code:
Step 6: Create no spam phrase Create a new Front-End Error message titled No Spam. This is the text I used: Quote:
Create a template named mtblacklist. Paste the contents of the MT Blacklist file you downloaded in step 1 to this new template. At the end of the list you can add the URL's of spammers who've visited your boards in the past. There's no harm in duplication (known). Step 8: Create Spam Alert template Create a template called spam_alert. Here's it's contents: HTML Code:
[b]The system has ascertained that the following message is probably spam based on the URL's it contains:[/b] [quote=$bbuserinfo[username]] $newpost[message] [/quote] In both these files you'll see this code: PHP Code:
PHP Code:
Find this code (near the top) PHP Code:
PHP Code:
Supporters / CoAuthors Show Your Support
|
Comments |
#2
|
|||
|
|||
... template to store a list in text ?! why not simply put the file in the includes directory, so we can update it when a new list is out ?!
btw, this is a good innitiative... great i can say! |
#3
|
||||
|
||||
Because I don't own the rights to that file nor do I maintain it. It gets updated every few days. I could copy it to here, but that would be theft.
EDIT: Oops - didn't get what you meant the first time I read that text - now I do. Well, for one, I'm not that good with php file handling commands :sheepish grin: For another admins who don't have ftp access to the server can still update the template this way. |
#4
|
|||
|
|||
nobody will be able to install your hack anyway if they don't have ftp access, as they have to edit some files...
also, http://us2.php.net/manual/en/functio...t-contents.php for the way to read a file... this function is used in many places inside vBulletin... you can take a look, it's simple... |
#5
|
|||
|
|||
Nice idea, maybe a nice addition was to put an abuser into a moderated usergroup instead of banning..
Hmm what i am talking now, i guess if you put a Moderated group as the "Banned group" it would already work like that, or not? |
#6
|
||||
|
||||
Yeah pretty much.
nexialys> I'm testing a means to get this hack to work through PHPINCULDE_START. That way it doesn't cause upgrade grief. I still intend to check that page though - would eliminate an uneccessary step and query. |
#7
|
|||
|
|||
Much appreciated. Although I've never had any trouble with this on my boards yet, there seem to be more attacks recerntly than in the past, and this can only help.
EDIT: I installed this hack, and it worked well, except for the following thing. The "Spam Alert" was done by the test account I was using, not by the new account I'd set up for this. It did the same thing after I changed some stuff to the following. PHP Code:
|
#8
|
||||
|
||||
Yeah, I've seen that bug too. I decided just to leave it be for now. Perhaps at some point I'll get the time to work on this
|
#9
|
|||
|
|||
Quote:
It caught it's first real spammer today. Yay! |
#10
|
||||
|
||||
In the instructions it says:
Quote:
I looked through the code and saw this: Code:
eval(print_standard_error('error_nospam')); |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|