removed subnet auth middleware

This commit is contained in:
DigitalInfinity committed 2026-06-28 15:34:50 +02:00
1 parent b7932176ec
commit 64d0d75c4e
1 file changed
-19
-19
View File
@@ -1,19 +0,0 @@
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\Response;
class RestrictToSubnet
{
public function handle(Request $request, Closure $next, string $subnet = '192'): Response
{
if (!str_starts_with($request->ip(), $subnet) && !str_starts_with($request->ip(), "127")) {
abort(403);
}
return $next($request);
}
}