Bad Behavior 2.0.4 Released

Bad Behavior 2.0.4 Released,最近 Bad Behavior 更新得比較密,這次有以下修正:

  • A bug affecting MediaWiki and ExpressionEngine users, and possibly others, caused database errors to be thrown when a POST request was received. This has been fixed.
  • A confusing entry in the generic code, which was causing PHP warnings for people who mistakenly used it without changing it, has been altered. The section of code, which users of the generic code are expected to change, referred to a variable which did not exist, and users who failed to change the code for their particular installation received warnings.
  • A part of the housekeeping code which optimizes Bad Behavior's log table has been rescheduled to run in only one of 1000 blocked requests. Under a heavy spam attack this was running much too frequently at its old schedule of one in 25 blocked requests, causing at least one shared hosting provider to complain.

5 Responses to “Bad Behavior 2.0.4 Released”

  1. 1409

    Bad Behavior 2.0.4不知道如何在那里设置不写数据库,help。
    Bad Behavior 1.2.4很方便,$wp_bb_logging = FALSE;$wp_bb_verbose_logging = FALSE;$wp_bb_logging_duration = 0;就行。

  2. 1348

    @億城雪:現在 admin panel 中沒有這樣的設定,除非直接修改 source code。

  3. 1354

    Bad Behavior 1.2.4我就是把源码改一下就成功了。
    Bad Behavior 2.0.4改了半天都不行,看来还是那个程序看不懂。有兴趣帮我看一下?

  4. 1332

    @億城雪:我看過 source code,如你想完全不寫 log 的話應該可以照以下這樣做,但要記著我完全沒有測試過的。:tongue1:

    1. 在 core.inc.php 中第 80-82 行改成 comment,即是由

    if ($settings['verbose'] || empty($package['user_agent'])) {
    bb2_db_query(bb2_insert($settings, $package, "00000000"));
    }

    改為

    //if ($settings['verbose'] || empty($package['user_agent'])) {
    // bb2_db_query(bb2_insert($settings, $package, "00000000"));
    //}

    2. 在 banned.inc.php 中第 45 行改成 comment,即是由

    bb2_db_query(bb2_insert($settings, $package, $key));

    改為

    //bb2_db_query(bb2_insert($settings, $package, $key));

  5. 1621

    好办法,我是改设置,你是直接注释insert。测试中。多谢!这也是解决问题的一种思路。

Leave a Reply