Initial commit

This commit is contained in:
root
2026-05-09 17:28:23 +02:00
commit 9d73f82529
5575 changed files with 281989 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
<?php
declare(strict_types=1);
namespace App\Http\Middleware;
use App\Console\Commands\DDoSDetectionCommand;
use Closure;
use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\Response;
class DDoSTrackingMiddleware
{
public function handle(Request $request, Closure $next): Response
{
if ((bool) setting('alert_ddos_enabled', false)) {
$ip = $request->ip();
DDoSDetectionCommand::trackRequest($ip);
}
return $next($request);
}
}