This commit is contained in:
David Bomba 2023-06-10 09:20:59 +10:00
parent 89168d08f0
commit 503eb2febe
2 changed files with 7 additions and 0 deletions

View File

@ -86,6 +86,10 @@ class RouteServiceProvider extends ServiceProvider
}
});
RateLimiter::for('honeypot', function (Request $request) {
return Limit::perMinute(2)->by($request->ip());
});
}
/**

View File

@ -141,6 +141,9 @@ Route::group(['middleware' => ['invite_db'], 'prefix' => 'client', 'as' => 'clie
Route::get('phantom/{entity}/{invitation_key}', [Phantom::class, 'displayInvitation'])->middleware(['invite_db', 'phantom_secret'])->name('phantom_view');
Route::get('.env', function () {
})->middleware('throttle:honeypot');
Route::fallback(function () {
if (Ninja::isSelfHost() && Account::first()?->set_react_as_default_ap) {