The secure CMS.

Welcome to Geeklog
Friday, September 03 2010 @ 03:26 AM EDT


 Forum Index > Extensions > Plugins New Topic Post Reply
 Bad Behavior plugin for Geeklog
 |  Printable Version
Dirk
 May 26 2005 05:04 AM (Read 12372 times)  
Forum Admin
Admin

Status: offline

Registered: 01/12/02
Posts: 12712

Bad Behavior is a set of PHP scripts which prevents spambots from accessing your site by analyzing their actual HTTP requests and comparing them to profiles from known spambots. It goes far beyond User-Agent and Referer, however.
(quoted from the author's homepage)

I wrote a Geeklog wrapper for Michael Hampton's Bad Behavior plugin for WordPress. The difference to the hack I provided earlier is that this plugin now logs the blocked requests and provides you with an interface to review them.

Happy blocking ...

bye, Dirk


 
Profile Email Website PM
Quote
Anonymous: IO ERROR
 May 28 2005 00:06 AM  


Dirk, you've done it again! I hope you don't mind if I go ahead and integrate your work into the next release of Bad Behavior.


 
Quote
Dirk
 May 28 2005 05:12 AM  
Forum Admin
Admin

Status: offline

Registered: 01/12/02
Posts: 12712

Michael released a security update for Bad Behavior. I've updated the Geeklog plugin accordingly (upgrading instructions are included).

bye, Dirk


 
Profile Email Website PM
Quote
Dirk
 May 28 2005 12:02 PM  
Forum Admin
Admin

Status: offline

Registered: 01/12/02
Posts: 12712

Quote by IO ERROR: I hope you don't mind if I go ahead and integrate your work into the next release of Bad Behavior.

Feel free ...

Actually, I sent you an email. Did you not get it or did my spam filter eat the reply?

bye, Dirk


 
Profile Email Website PM
Quote
ScurvyDawg
 May 28 2005 16:02 PM  
Forum Full Member
Full Member

Status: offline

Registered: 11/06/02
Posts: 523

I get an error upon trying to open the archive Dirk.

End-of-central-directory signature not found. Either this file is not a Zip file, or it constitutes one disk of a multi-part Zip file.


I have used Zip to unpack many tar.gz files in the past. What do you reccomend for a windows machine if it is a valid archive?


 
Profile Email Website PM
Quote
Dirk
 May 28 2005 16:15 PM  
Forum Admin
Admin


Status: offline

Registered: 01/12/02
Posts: 12712

Ouch, I just realised that I'd uploaded the wrong version anyway - it did not include the updated Bad Behavior files

Please download the file yet again. It should be 28115 bytes now. And unpacks on the server just fine ...

bye, Dirk


 
Profile Email Website PM
Quote
ScurvyDawg
 May 28 2005 16:17 PM  
Forum Full Member
Full Member

Status: offline

Registered: 11/06/02
Posts: 523


LOL

Thanks Dirk

You the man


 
Profile Email Website PM
Quote
Dirk
 June 13 2005 17:03 PM  
Forum Admin
Admin

Status: offline

Registered: 01/12/02
Posts: 12712

Here's a small patch to make it display the number of logfile entries after its entry in the Admin's block (where it only says "(N/A)" at the moment):

PHP Formatted Code
function plugin_getadminoption_bad_behavior ()
{   
    global $_CONF, $LANG_BAD_BEHAVIOR, $wp_bb_log;
   
    if (SEC_inGroup ('Bad Behavior Admin')) {
        return array ($LANG_BAD_BEHAVIOR['plugin_display_name'],
                      $_CONF['site_admin_url'] . '/plugins/'
                            . BAD_BEHAVIOR_PLUGIN . '/index.php',
                      DB_count ($wp_bb_log));
    }
}
 

This is a replacement for the function of the same name in the plugin's functions.inc file.

Also, please not that Bad Behavior deletes logfile entries older than 7 days automatically.

bye, Dirk


 
Profile Email Website PM
Quote
ScurvyDawg
 June 13 2005 17:52 PM  
Forum Full Member
Full Member

Status: offline

Registered: 11/06/02
Posts: 523

does this download work for everyone else?

I cannot get it for some odd reason. I get an invalid archive. Would someone who can get it unpack it and email me the files to scurvydawgATgmail.com I would owe you one.

Thanks for everything.


 
Profile Email Website PM
Quote
Anonymous: mach
 June 13 2005 18:02 PM  


got it, repacked it, sent it


 
Quote
ScurvyDawg
 June 13 2005 19:09 PM  
Forum Full Member
Full Member

Status: offline

Registered: 11/06/02
Posts: 523

Quote by mach: got it, repacked it, sent it


Thank you thank you thank you thank you thank you.


 
Profile Email Website PM
Quote
Dirk
 June 15 2005 14:16 PM  
Forum Admin
Admin

Status: offline

Registered: 01/12/02
Posts: 12712

I've updated the plugin now to sync it with the release of Bad Behavior 1.1.1. It also includes the patch described above.

Looking at what it catched on my site, it really seems to help against spam - some of the blocked requests were most likely from our Bulgarian friends. Not to mention the occasional bot it stops in its tracks ...

bye, Dirk


 
Profile Email Website PM
Quote
ScurvyDawg
 June 15 2005 14:25 PM  
Forum Full Member
Full Member

Status: offline

Registered: 11/06/02
Posts: 523


FYI - Will not open in Winzip



Fantastic AMAZING awesome plugin though


 
Profile Email Website PM
Quote
Dirk
 June 19 2005 16:34 PM  
Forum Admin
Admin

Status: offline

Registered: 01/12/02
Posts: 12712

Bad Behavior 1.1.2 is out. As is the updated Geeklog plugin.

bye, Dirk


 
Profile Email Website PM
Quote
ScurvyDawg
 June 19 2005 20:17 PM  
Forum Full Member
Full Member

Status: offline

Registered: 11/06/02
Posts: 523

Fine force me to get yet another unpacking utility. I will get WinRar as this refuses to open in WinZip.

Dirk why the animosity towards WinZip friendly files?


 
Profile Email Website PM
Quote
r_f_o_t
 June 20 2005 00:55 AM  
Forum Full Member
Full Member

Status: offline

Registered: 07/30/03
Posts: 241

Quote by ScurvyDawgVery Happyirk why the animosity towards WinZip friendly files?


You could also look at it as WinZip's animosity towards gzipped files. (Or is it tarred files that throws WZ)

Other Windows utilities can unpack them properly. Just a random thought.

Chuck


Too many hands on my time.
 
Profile Email PM
Quote
ScurvyDawg
 June 20 2005 09:21 AM  
Forum Full Member
Full Member

Status: offline

Registered: 11/06/02
Posts: 523

Quote by r_f_o_t:
Quote by ScurvyDawgVery Happyirk why the animosity towards WinZip friendly files?


You could also look at it as WinZip's animosity towards gzipped files. (Or is it tarred files that throws WZ)

Other Windows utilities can unpack them properly. Just a random thought.

Chuck


Good point Chuck


 
Profile Email Website PM
Quote
DTrumbower
 June 20 2005 09:48 AM  
Forum Moderator
Moderator

Status: offline

Registered: 01/08/03
Posts: 507

Quote by ScurvyDawg: Fine force me to get yet another unpacking utility. I will get WinRar as this refuses to open in WinZip.

Dirk why the animosity towards WinZip friendly files?


I've never had a problem with WinZip. It uncompressed fine for me.

What version are you using?


 
Profile Email PM
Quote
ScurvyDawg
 June 20 2005 13:49 PM  
Forum Full Member
Full Member

Status: offline

Registered: 11/06/02
Posts: 523

8.1.SR1

I am at work and thats what we have installed. Most likely I have the same ver at home.

How about you?


 
Profile Email Website PM
Quote
DTrumbower
 June 20 2005 16:26 PM  
Forum Moderator
Moderator

Status: offline

Registered: 01/08/03
Posts: 507

Quote by ScurvyDawg: 8.1.SR1

How about you?


9.0 sr-1. But I'm sure I had a version 8 work too, unless version 9 has been out for two years.


 
Profile Email PM
Quote
Content generated in: 4.59 seconds
New Topic Post Reply



 All times are EDT. The time is now 03:26 AM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to post 
Filtered HTML Allowed 
Censored Content