feat: Add initial API status page, fullscreen layout, robots.txt, and anti-crawler middleware configuration.

This commit is contained in:
dyzulk
2026-01-01 17:57:27 +07:00
parent 5ae3c5bde5
commit 025286101e
4 changed files with 10 additions and 3 deletions

View File

@@ -18,6 +18,13 @@ return Application::configure(basePath: dirname(__DIR__))
$middleware->alias([
'admin' => \App\Http\Middleware\AdminMiddleware::class,
]);
// Anti-crawler header
$middleware->append(function ($request, $next) {
$response = $next($request);
$response->headers->set('X-Robots-Tag', 'noindex, nofollow, noarchive');
return $response;
});
})
->withExceptions(function (Exceptions $exceptions): void {
//

View File

@@ -1,2 +1,2 @@
User-agent: *
Disallow:
Disallow: /

View File

@@ -11,7 +11,7 @@
<!-- SEO Meta Tags -->
<meta name="description" content="@yield('meta_description', 'Professional Certificate Authority and API Management System for modern developers. Issue SSL/TLS certificates and manage API keys with ease.')">
<meta name="keywords" content="@yield('meta_keywords', 'certificate authority, ssl manager, api key management, trustlab, security portal')">
<meta name="robots" content="@yield('robots', 'index, follow')">
<meta name="robots" content="@yield('robots', 'noindex, nofollow, noarchive')">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">

View File

@@ -33,7 +33,7 @@
</div>
<p class="absolute text-sm text-center text-gray-500 -translate-x-1/2 bottom-6 left-1/2 dark:text-gray-400">
&copy; 2025 - {{ $currentYear }} | {{ config('app.name') }} All Rights Reserved
&copy; 2025 - {{ $currentYear }} {{ config('app.name') }} All Rights Reserved
</p>
</div>
@endsection