Recent Topics

Bad Behavior for b2evolution

started by on May 04, 2012 – Last touched: Dec 26, 2013

May 04, 2012 08:21    

Bad Behavior is wonderful. I used it back when I was on WordPress and got Walter Cruz's plugin for b2evolution years ago. Bad Behavior is important because it catches spam bots before they're unable to rob your bandwidth. Walter Cruz hadn't updated it since (and his site seems not to even have the plugin on it anymore), so I kept updating it to keep it working with the latest b2evolution and Bad Behavior releases (I know, that's technically a violation of the GPL). Well, I finally put my changes on github, where anyone can get it.
https://github.com/keithbowes/bad_behaviour_plugin

May 08, 2012 06:21

It looks promising, thanks for sharing.
However the plugin needs serious structure changes to improve performance.

Dec 25, 2013 04:49

@sam2kb wrote earlier:

It looks promising, thanks for sharing.
However the plugin needs serious structure changes to improve performance.

Hmm. I came here to see if I could delete this post (it seems that I can't), as Walter Cruz has his own post about his, when I saw your response. What exactly is so harmful to performance? I took out the code for parsing the INI files and put the settings in a global variable that would only get filled once, but that still only took around a millisecond from the run time (7.2 milliseconds to 6.1 on my computer; doubtlessly it would be much faster either way running on my host, as my own computer isn't very fast), a small performance gain from an already suitably fast plugin. The other parts of the code are things I don't see how they could be faster, being copied more or less exactly from the reference generic plugin provided in the Bad Behavior distribution: calls the bb2_start() function that runs Bad Behavior and inserts information about the run time in the head and the number of accesses blocked in the last week at the bottom of the page.


Form is loading...

powered by b2evolution – This forum is powered by b2evolution CMS, a complete engine for your website.