Self-hosted OSINT exposure checker — is your email, username, phone or password leaked? Keyless sources: breaches, infostealer logs, COMB credentials, HIBP k-anonymity, 200-platform username grid. Docker one-command install, no API keys, no AI, Apache-2.0.
PHP breach-checkcredential-exposuredata-breachdigital-footprintemail-osintfree-osinthaveibeenpwnedip-reputationleaked-credentialsleaked-dataosintosint-apiosint-toolsphone-lookupprivacy-toolspublic-datapwned-passwordsself-hostedusername-checkusername-osint
<?php
declare(strict_types=1);
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\Response;
/**
* Single-admin gate. The install has exactly one admin identity, defined by
* ADMIN_PASSWORD in .env (generated by install.sh on first boot). No users
* table, no roles - deliberately auditable.
*/
class EnsureAdmin
{
public function handle(Request $request, Closure $next): Response
{
if ($request->session()->get('admin_authenticated') === true) {
return $next($request);
}
if ($request->expectsJson() || $request->is('api/*')) {
return response()->json(['error' => 'Authentication required.'], 401);
}
return redirect()->route('login');
}
}