| Dirk |
 |
May 26 2005 05:04 AM (Read 12372 times) |
|
|

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
|
| |
|
|
| 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.
|
| |
|
|
| Dirk |
 |
May 28 2005 05:12 AM |
|
|

Admin
 Status: offline
Registered: 01/12/02
Posts: 12712
|
|
| |
|
|
| Dirk |
 |
May 28 2005 12:02 PM |
|
|

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
|
| |
|
|
| ScurvyDawg |
 |
May 28 2005 16:02 PM |
|
|

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?
|
| |
|
|
| Dirk |
 |
May 28 2005 16:15 PM |
|
|

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
|
| |
|
|
| ScurvyDawg |
 |
May 28 2005 16:17 PM |
|
|

Full Member
 Status: offline
Registered: 11/06/02
Posts: 523
|
LOL
Thanks Dirk
You the man
|
| |
|
|
| Dirk |
 |
June 13 2005 17:03 PM |
|
|

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
|
| |
|
|
| ScurvyDawg |
 |
June 13 2005 17:52 PM |
|
|

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.
|
| |
|
|
| Anonymous: mach |
 |
June 13 2005 18:02 PM |
|
|
|
|
got it, repacked it, sent it
|
| |
|
|
| ScurvyDawg |
 |
June 13 2005 19:09 PM |
|
|

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.
|
| |
|
|
| Dirk |
 |
June 15 2005 14:16 PM |
|
|

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
|
| |
|
|
| ScurvyDawg |
 |
June 15 2005 14:25 PM |
|
|

Full Member
 Status: offline
Registered: 11/06/02
Posts: 523
|
FYI - Will not open in Winzip
Fantastic AMAZING awesome plugin though
|
| |
|
|
| Dirk |
 |
June 19 2005 16:34 PM |
|
|

Admin
 Status: offline
Registered: 01/12/02
Posts: 12712
|
|
| |
|
|
| ScurvyDawg |
 |
June 19 2005 20:17 PM |
|
|

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?
|
| |
|
|
| r_f_o_t |
 |
June 20 2005 00:55 AM |
|
|

Full Member
 Status: offline
Registered: 07/30/03
Posts: 241
|
Quote by ScurvyDawg  irk 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.
|
| |
|
|
| ScurvyDawg |
 |
June 20 2005 09:21 AM |
|
|

Full Member
 Status: offline
Registered: 11/06/02
Posts: 523
|
Quote by r_f_o_t: Quote by ScurvyDawg  irk 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
|
| |
|
|
| DTrumbower |
 |
June 20 2005 09:48 AM |
|
|

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?
|
| |
|
|
| ScurvyDawg |
 |
June 20 2005 13:49 PM |
|
|

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?
|
| |
|
|
| DTrumbower |
 |
June 20 2005 16:26 PM |
|
|

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.
|
| |
|
|