diff -NaurbB MT-3.34-en.old/lib/MT/App/Search.pm MT-3.34-en/lib/MT/App/Search.pm --- MT-3.34-en.old/lib/MT/App/Search.pm 2007-01-06 00:46:47.000000000 +0100 +++ MT-3.34-en/lib/MT/App/Search.pm 2007-02-03 18:51:52.000000000 +0100 @@ -133,7 +133,7 @@ "until your search is completed."); if ($tmpl eq 'feed') { $app->response_code(503); - $app->set_header('Retry-After' => $app->config('ThrottleSeconds')); + $app->set_header('Retry-After' => $app->config('SearchThrottleSeconds')); $app->send_http_header("text/plain"); $app->{no_print_body} = 1; } @@ -166,7 +166,7 @@ my $DB = tie my %db, 'DB_File', $file; if ($DB) { if (my $time = $db{$ip}) { - if ($time > time - $app->config('ThrottleSeconds')) { + if ($time > time - $app->config('SearchThrottleSeconds')) { return 0; } } @@ -187,7 +187,7 @@ 'mt-throttle.db'); if (tie my %db, 'DB_File', $file) { my $time = $db{$app->remote_ip}; - delete $db{$app->remote_ip} if ($time && $time < (time - $app->config('ThrottleSeconds'))); + delete $db{$app->remote_ip} if ($time && $time < (time - $app->config('SearchThrottleSeconds'))); untie %db; } } diff -NaurbB MT-3.34-en.old/lib/MT/ConfigMgr.pm MT-3.34-en/lib/MT/ConfigMgr.pm --- MT-3.34-en.old/lib/MT/ConfigMgr.pm 2007-01-19 02:30:30.000000000 +0100 +++ MT-3.34-en/lib/MT/ConfigMgr.pm 2007-02-03 18:42:47.000000000 +0100 @@ -136,6 +136,7 @@ ['DynamicComments', { Default => 0 }], ['SignOnPublicKey', { Default => '' }], ['ThrottleSeconds', { Default => 20 }], + ['SearchThrottleSeconds', { Default => 5 }], ['SearchThrottleIPWhitelist'], ['OneHourMaxPings', { Default => 10 }], ['OneDayMaxPings', { Default => 50 }],