mirror of
https://github.com/dyzulk/trustlab-api.git
synced 2026-01-26 05:15:35 +07:00
feat: Add initial API status page, fullscreen layout, robots.txt, and anti-crawler middleware configuration.
This commit is contained in:
@@ -18,6 +18,13 @@ return Application::configure(basePath: dirname(__DIR__))
|
|||||||
$middleware->alias([
|
$middleware->alias([
|
||||||
'admin' => \App\Http\Middleware\AdminMiddleware::class,
|
'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 {
|
->withExceptions(function (Exceptions $exceptions): void {
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
User-agent: *
|
User-agent: *
|
||||||
Disallow:
|
Disallow: /
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<!-- SEO Meta Tags -->
|
<!-- 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="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="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 -->
|
<!-- Open Graph / Facebook -->
|
||||||
<meta property="og:type" content="website">
|
<meta property="og:type" content="website">
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="absolute text-sm text-center text-gray-500 -translate-x-1/2 bottom-6 left-1/2 dark:text-gray-400">
|
<p class="absolute text-sm text-center text-gray-500 -translate-x-1/2 bottom-6 left-1/2 dark:text-gray-400">
|
||||||
© 2025 - {{ $currentYear }} | {{ config('app.name') }} All Rights Reserved
|
© 2025 - {{ $currentYear }} {{ config('app.name') }} All Rights Reserved
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
|||||||
Reference in New Issue
Block a user