Welcome to Geeklog Friday, October 20 2017 @ 05:36 pm EDT


Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/2002
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

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.

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/2002
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

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/2002
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.

Feel free ...

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

bye, Dirk

Status: offline

ScurvyDawg

Forum User
Full Member
Registered: 06/11/2002
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?

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/2002
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

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

bye, Dirk

Status: offline

ScurvyDawg

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

LOL

Thanks Dirk

You the man

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/2002
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):
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

Status: offline

ScurvyDawg

Forum User
Full Member
Registered: 06/11/2002
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.

mach

Anonymous
got it, repacked it, sent it

Status: offline

ScurvyDawg

Forum User
Full Member
Registered: 06/11/2002
Posts: 523
Quote by mach: got it, repacked it, sent it


Thank you thank you thank you thank you thank you.

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/2002
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

Status: offline

ScurvyDawg

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

FYI - Will not open in Winzip



Fantastic AMAZING awesome plugin though

Status: offline

Dirk

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

bye, Dirk

Status: offline

ScurvyDawg

Forum User
Full Member
Registered: 06/11/2002
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?

Status: offline

r_f_o_t

Forum User
Full Member
Registered: 30/07/2003
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)

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

Chuck
Too many hands on my time.

Status: offline

ScurvyDawg

Forum User
Full Member
Registered: 06/11/2002
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)

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

Chuck


Good point Chuck

Status: offline

DTrumbower

Forum User
Moderator
Registered: 08/01/2003
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?

Status: offline

ScurvyDawg

Forum User
Full Member
Registered: 06/11/2002
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?

Status: offline

DTrumbower

Forum User
Moderator
Registered: 08/01/2003
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.

All times are EDT. The time is now 05:36 pm.

  • 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