From 1a5618435e7aabea1129d63307114627d55bd0a7 Mon Sep 17 00:00:00 2001 From: Tobias Feigel Date: Mon, 22 Sep 2025 08:46:36 +0200 Subject: [PATCH] =?UTF-8?q?Anpassungen=20f=C3=BCr=20Scanner=20von=20LegalC?= =?UTF-8?q?ockpit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- robots.txt | 23 +++++++++++++++++++++++ site/config/config.php | 21 ++++++++++++++++++++- site/snippets/layout.php | 10 ++++++++++ 3 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 robots.txt diff --git a/robots.txt b/robots.txt new file mode 100644 index 0000000..f1c2773 --- /dev/null +++ b/robots.txt @@ -0,0 +1,23 @@ +User-agent: * +Allow: / + +# Spezielle Erlaubnis für DSGVO/Legal Scanner +User-agent: LegalCockpitBot +Allow: / + +User-agent: CookieBot +Allow: / + +User-agent: DataProtectionBot +Allow: / + +User-agent: GDPRBot +Allow: / + +# Sitemap (falls vorhanden) +# Sitemap: https://www.schachfreunde-badsteben.de/sitemap.xml + +# Wichtige Seiten explizit erlauben +Allow: /datenschutz +Allow: /impressum +Allow: /kontakt \ No newline at end of file diff --git a/site/config/config.php b/site/config/config.php index ab6e282..6add258 100644 --- a/site/config/config.php +++ b/site/config/config.php @@ -6,5 +6,24 @@ return [ 'vue' => [ 'compiler' => false ] - ], + ], + + // Bessere Scanner-Kompatibilität + 'cache' => [ + 'pages' => [ + 'active' => true + ] + ], + + // Headers für bessere Scanner-Kompatibilität + 'headers' => [ + 'X-Frame-Options' => 'SAMEORIGIN', + 'X-XSS-Protection' => '1; mode=block' + ], + + // Robots-freundliche Einstellungen + 'smartypants' => true, + 'markdown' => [ + 'extra' => true + ] ]; diff --git a/site/snippets/layout.php b/site/snippets/layout.php index a5f599b..c3fb347 100644 --- a/site/snippets/layout.php +++ b/site/snippets/layout.php @@ -10,6 +10,16 @@ + + + + + + + + + + <?= $site->title()->esc() ?> | <?= $page->title()->esc() ?>