Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 07:51 am EST

Geeklog Forums

Bad Behavior plugin for Geeklog

Page navigation


Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
 Quote

IO ERROR

Anonymous
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. Smile
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Michael released a security update for Bad Behavior. I've updated the Geeklog plugin accordingly (upgrading instructions are included).

bye, Dirk
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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. Smile

Feel free ...

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

bye, Dirk
 Quote

Status: offline

ScurvyDawg

Forum User
Full Member
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?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
embarrassed
Ouch, I just realised that I'd uploaded the wrong version anyway - it did not include the updated Bad Behavior files Embarassed

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

bye, Dirk
 Quote

Status: offline

ScurvyDawg

Forum User
Full Member
Registered: 11/06/02
Posts: 523

LOL

Thanks Dirk

You the man Big Celebration
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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):
Text 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
 Quote

Status: offline

ScurvyDawg

Forum User
Full Member
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.
 Quote

mach

Anonymous
got it, repacked it, sent it
 Quote

Status: offline

ScurvyDawg

Forum User
Full Member
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.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
 Quote

Status: offline

ScurvyDawg

Forum User
Full Member
Registered: 11/06/02
Posts: 523

FYI - Will not open in Winzip

Blah Blah Blah Blah ...

Fantastic AMAZING awesome plugin though
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Bad Behavior 1.1.2 is out. As is the updated Geeklog plugin.

bye, Dirk
 Quote

Status: offline

ScurvyDawg

Forum User
Full Member
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?
 Quote

Status: offline

r_f_o_t

Forum User
Full Member
Registered: 07/30/03
Posts: 241
Location:Illinois
Quote by ScurvyDawgBig Grinirk 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) Very Happy

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

Chuck
Too many hands on my time.
 Quote

Status: offline

ScurvyDawg

Forum User
Full Member
Registered: 11/06/02
Posts: 523
Quote by r_f_o_t:
Quote by ScurvyDawgBig Grinirk 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) Very Happy

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

Chuck


Good point Chuck
 Quote

Status: offline

DTrumbower

Forum User
Moderator
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?
 Quote

Status: offline

ScurvyDawg

Forum User
Full Member
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?
 Quote

Status: offline

DTrumbower

Forum User
Moderator
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.
 Quote

Page navigation

All times are EST. The time is now 07:51 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content