diff --git a/bootstrap/app.php b/bootstrap/app.php index 0aacf5e..0d16623 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -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 { // diff --git a/public/robots.txt b/public/robots.txt index eb05362..1f53798 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1,2 +1,2 @@ User-agent: * -Disallow: +Disallow: / diff --git a/resources/views/layouts/fullscreen-layout.blade.php b/resources/views/layouts/fullscreen-layout.blade.php index 60a8fe2..6921b7b 100644 --- a/resources/views/layouts/fullscreen-layout.blade.php +++ b/resources/views/layouts/fullscreen-layout.blade.php @@ -11,7 +11,7 @@ - + diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index 470965a..c88c202 100644 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -33,7 +33,7 @@

- © 2025 - {{ $currentYear }} | {{ config('app.name') }} All Rights Reserved + © 2025 - {{ $currentYear }} {{ config('app.name') }} All Rights Reserved

@endsection