Author Topic: Bad Behavior for SMF 2.0 RC2 & RC3 Beta  (Read 3556 times)

0 Members and 1 Guest are viewing this topic.

Offline butchas

  • Elite Member
  • *
  • Posts: 631
  • Karma: 398
  • Illustrious key typer
    • East Coast Rolling Thunder car club
  • SMF Version: 2.0 RC5
Bad Behavior for SMF 2.0 RC2 & RC3 Beta
« on: March 16, 2010, 08:55:09 PM »
I have been working on a Bad Behavior port for SMF.  Though I have tested it the mod still needs further testing.  There may be new version coming every other day until it is fixed in stone. So if you try it please report any bugs here as detailed as possible and be prepared to uninstall and install a new version ASAP.

As far as I know there is nothing else out there for spam prevention that is more powerful than 'Bad Behavior' except for blatant GeoIP country blockiing of course...

In the past two(2) days the mod has been running on my forum it has reported:
Bad Behavior has blocked 55 access attempts in the last 7 days.

If the mod discovers a bad event it will give the offender this message:


This mod installs bad-behavior beta version 2.1.2 on to SMF 2.0 RC2.  Bad Behavior is a PHP-based solution for blocking link spam and the robots which deliver it.  The normal release of Bad Behavior core includes a http:BL search.  However, it has been turned off i this mod because httpBL mod does a fantastic job at that.  Therefore we advise that you install the hjttp:BL mod and this mod together to get all the features Bad Behavior offers.

The mod DOES NOT install a honeypot on your site.  Snoopy's http:BL mod does that.  But I have added code that will check for the http:BL mod and use the honey pot link provided to the other mod.

The mod includes plenty information in the help icons.  Just click on the ?'s in the admin section.

Installation is in two(2) parts:
1.  bad-behavior-install.zip --  This installs the current BB beta package.  Future versions will rely on the administrator getting updates directly from the BB site.  To upgrade:  You will first uninstall the mod and then install the updated package and then install the mod again.
2.  bad-behavior-mod.zip  -- This is the mod in it's current beta form.  This mod changes some BB files for SMF capability.

The mod has an enable button and by default it will be off.  As per the readme you should make sure your forums IP and path are in the "whitelist" before you enable the mod.  When you look at the file you will find it is pretty self-explanatory.  All questions can be answered at the BB site.






« Last Edit: March 16, 2010, 09:18:49 PM by butchas »
My mod, My site

Offline butchas

  • Elite Member
  • *
  • Posts: 631
  • Karma: 398
  • Illustrious key typer
    • East Coast Rolling Thunder car club
  • SMF Version: 2.0 RC5
Re: Bad Behavior for SMF 2.0 RC2 & RC3 Beta
« Reply #1 on: March 16, 2010, 08:57:14 PM »
I could not post all the images and mod in one post so here is the rest.

Please let me when you find bugs...   :great

This version has email to the admin messages.  It is a little buggy but the author of Bad Behavior wants me to remove it so I ceased further bug fixes on this option.  That is unless, the testing group demands it.

???
« Last Edit: March 17, 2010, 08:48:52 PM by butchas »
My mod, My site

Offline butchas

  • Elite Member
  • *
  • Posts: 631
  • Karma: 398
  • Illustrious key typer
    • East Coast Rolling Thunder car club
  • SMF Version: 2.0 RC5
Re: Bad Behavior for SMF 2.0 RC2 & RC3 Beta
« Reply #2 on: March 17, 2010, 11:43:30 AM »
It has been running three days now on my site...
Bad Behavior has blocked 75 access attempts in the last 7 days.

No major problems.  I am currently working on cleaning up the current ugly database interface.
 :cool
My mod, My site

Offline butchas

  • Elite Member
  • *
  • Posts: 631
  • Karma: 398
  • Illustrious key typer
    • East Coast Rolling Thunder car club
  • SMF Version: 2.0 RC5
Re: Bad Behavior for SMF 2.0 RC2 & RC3 Beta
« Reply #3 on: March 17, 2010, 11:56:01 AM »
FYI - I will like to note that during the first draft of the mod (last week) I saw the following error on start-up:
Strict Standards: bb2_install() [function.bb2-install]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in .../BadBehavior-SMF.php on line 202

Notice: Undefined index: logging in .../BadBehavior-SMF.php on line 202


This was because I had to set my local time zone.  Some do it in php.ini, I did mine in htaccess.  Once I added the following (thanks Nesa) the error went away:

:
#Set the timezone
SetEnv TZ America/New_York

Here are a list of locations:
http://www.php.net/manual/en/timezones.php
My mod, My site

Offline butchas

  • Elite Member
  • *
  • Posts: 631
  • Karma: 398
  • Illustrious key typer
    • East Coast Rolling Thunder car club
  • SMF Version: 2.0 RC5
Re: Bad Behavior for SMF 2.0 RC2 & RC3 Beta
« Reply #4 on: March 17, 2010, 08:48:26 PM »
Here is an update of the mod.  No bug fixes.  I just cleaned up the database so it is easier to read and use.  See the attached picture.  Now I can zoom in and read it!!! 
 :great

Just uninstall the old one and install this version.

Please do not forget to run the bad-behavior-install.zip file first on new installations.

I have both stop spam and httpbl mod installed.  This mod eliminates at least 25 more spammers per day from my site.
 :gtw
« Last Edit: March 21, 2010, 09:52:46 PM by butchas »
My mod, My site

Offline butchas

  • Elite Member
  • *
  • Posts: 631
  • Karma: 398
  • Illustrious key typer
    • East Coast Rolling Thunder car club
  • SMF Version: 2.0 RC5
Re: Bad Behavior for SMF 2.0 RC2 & RC3 Beta
« Reply #5 on: March 18, 2010, 09:10:21 AM »
For the past month I have had a problem with bots taking up my bandwidth.  Though I was informed not to make it a default I have been running STRICT mode and finally my bandwidth started to drop.

Bad Behavior has blocked 84 access attempts in the last 7 days.
My mod, My site

Offline bigguy

  • Site Owner
  • Administrator
  • *
  • Posts: 13215
  • Karma: 269
  • Gender: Male
  • Get'r Done
    • P.C. Tweakr
  • SMF Version: 2.0 Gold
Re: Bad Behavior for SMF 2.0 RC2 & RC3 Beta
« Reply #6 on: March 18, 2010, 09:46:45 AM »
How is the mod going, ok. ??? Is it safe to install on a board such as this. ???

Offline n4tec

  • | Web of Creativity |
  • Elite Member
  • *
  • Posts: 624
  • Karma: 545
    • GeT NOTICED
Re: Bad Behavior for SMF 2.0 RC2 & RC3 Beta
« Reply #7 on: March 18, 2010, 10:20:21 AM »
OFFTOPIC: i've seen there may be plugin like these for wordpress does it work in the same way? does anyone use that one?
Regards,

n4tec

3WG  | 10k |

Offline butchas

  • Elite Member
  • *
  • Posts: 631
  • Karma: 398
  • Illustrious key typer
    • East Coast Rolling Thunder car club
  • SMF Version: 2.0 RC5
Re: Bad Behavior for SMF 2.0 RC2 & RC3 Beta
« Reply #8 on: March 18, 2010, 11:12:42 AM »
How is the mod going, ok. ??? Is it safe to install on a board such as this. ???

Yes, It was tested at my test forum for over a week and has been running for several days at my online forum without any problems.

Please make sure that you have your local time zone set in htaccess/php.ini and you edit the whitelist before you enable/install the mod.

It is here because I am still making changes.  I completed the bulk of the hard core testing last week.  Now I am in the cleaning up phase.  This phase should take a few weeks.  This is where I make minor interface improvements, add features recommended by testers, speed up the code, correcting spelling in english and help files and many other minor changes.  It is not ready for translations because I have not cleaned up the text sections.  So please keep an eye out for improvements.  ;)

OFFTOPIC: i've seen there may be plugin like these for wordpress does it work in the same way?

Yes this mod does everything the wordpress version does except the Project Honey Pot lookup.  There is a mod for that called httpBL at SMF.

If an analytical requirement arises, I could always peek at their database.  As long as I can talk Snoopy into offering the required information. At this moment with the Bad Behavior beta this is not the case.  Currently Bad Behavior does the same thing with httpBL as the httpBL mod.

It was not easy to interface this mod.  I think I put at least 80+ hours into it so far.  I have been in communication with the author of Bad Behavior to insure that it is in the most part to his satisfaction.  Except he is prefers that I remove the email administrator notification.  :embrsd

does anyone use that one?

No but, I have reviewed every line of code in that platform and, many other platforms, to insure this mod gives you the best spam prevention that Bad Behavior offers.
« Last Edit: March 18, 2010, 11:26:05 AM by butchas »
My mod, My site

Offline butchas

  • Elite Member
  • *
  • Posts: 631
  • Karma: 398
  • Illustrious key typer
    • East Coast Rolling Thunder car club
  • SMF Version: 2.0 RC5
Re: Bad Behavior for SMF 2.0 RC2 & RC3 Beta
« Reply #9 on: March 18, 2010, 11:37:34 PM »
I expect to reach my first 100 tomorrow!

Bad Behavior has blocked 92 access attempts in the last 7 days.
 :righton
My mod, My site

Offline bigguy

  • Site Owner
  • Administrator
  • *
  • Posts: 13215
  • Karma: 269
  • Gender: Male
  • Get'r Done
    • P.C. Tweakr
  • SMF Version: 2.0 Gold
Re: Bad Behavior for SMF 2.0 RC2 & RC3 Beta
« Reply #10 on: March 19, 2010, 05:13:13 PM »
Ok, I will install this sometime this weekend and see how she goes. :)

Offline butchas

  • Elite Member
  • *
  • Posts: 631
  • Karma: 398
  • Illustrious key typer
    • East Coast Rolling Thunder car club
  • SMF Version: 2.0 RC5
Re: Bad Behavior for SMF 2.0 RC2 & RC3 Beta
« Reply #11 on: March 19, 2010, 08:53:27 PM »
I have been cleaning it up.  Nothing worth posting at this time.  I have been looking into export porting a csv file of the database for analysis.  Not sure if it is worth while or not.

Bad Behavior has blocked 103 access attempts in the last 7 days.
My mod, My site

Offline butchas

  • Elite Member
  • *
  • Posts: 631
  • Karma: 398
  • Illustrious key typer
    • East Coast Rolling Thunder car club
  • SMF Version: 2.0 RC5
Re: Bad Behavior for SMF 2.0 RC2 & RC3 Beta
« Reply #12 on: March 19, 2010, 11:23:38 PM »
Come to think of it you are the BigGuy after all.  So I here is the latest version.

The changes are:
1.  Broke out many text values from php into the english, error and help language files.
2.  Optimized the database search.  Eliminated an unnecessary extra loop.
3.  Move database valves into a $context variable per SMF normal practice.
4.  Add a URL look up for the URL's in the list.
5.  Minor changes in the code here and there for speed.

Nothing major.  She is running great.
« Last Edit: March 21, 2010, 09:41:11 PM by butchas »
My mod, My site

Offline bigguy

  • Site Owner
  • Administrator
  • *
  • Posts: 13215
  • Karma: 269
  • Gender: Male
  • Get'r Done
    • P.C. Tweakr
  • SMF Version: 2.0 Gold
Re: Bad Behavior for SMF 2.0 RC2 & RC3 Beta
« Reply #13 on: March 21, 2010, 11:37:30 AM »
I will install this sometime today and see how it goes. Seems we are getting some spammers here a little bit more than we used to.

Offline butchas

  • Elite Member
  • *
  • Posts: 631
  • Karma: 398
  • Illustrious key typer
    • East Coast Rolling Thunder car club
  • SMF Version: 2.0 RC5
Re: Bad Behavior for SMF 2.0 RC2 & RC3 Beta
« Reply #14 on: March 21, 2010, 09:40:22 PM »
Here are some more changes I made:
1.  Finally corrected GUI to comply with SMF standards:
   a.  Moved date & request URL ascending and descending sorts to title.
   b.  Broke out the log display all, allowed and denied in 3 options.
2.  Cleaned up some code.  More streamlined, faster and less memory usage.

We are now 95%+ complete.  Assuming no one reports any errors.
« Last Edit: March 23, 2010, 12:39:09 AM by butchas »
My mod, My site