robots.txt öffnen: Allow alle, noindex stattdessen im HTML
Abruf- und Vorschaudienste brechen bei einem Disallow: / vor dem HTTP-Request ab (PERMISSION_DENIED). robots.txt erlaubt jetzt alles; die private App bleibt über lang="noindex, nofollow" (Meta-Tag und X-Robots-Tag) aus den Suchmaschinen.
This commit is contained in:
parent
87ccd36d0a
commit
c8ec53ebdd
2 changed files with 6 additions and 5 deletions
|
|
@ -25,6 +25,7 @@ $navActive = static function (string $area) use ($path): string {
|
|||
<meta name="theme-color" content="#196abc">
|
||||
<meta name="color-scheme" content="light">
|
||||
<meta name="csrf-token" content="<?= e(csrf_token()) ?>">
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
<meta name="sw-url" content="<?= e(url('/sw.js')) ?>">
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# Drink it cold – Terminplanung
|
||||
# Die App selbst ist nicht öffentlich; nur die Pflichtseiten dürfen
|
||||
# abgerufen werden (Links, Vorschauen, Suchmaschinen).
|
||||
# Bewusst offen: Abruf- und Vorschaudienste (Google, Slack, Messenger …)
|
||||
# brechen bei einem Disallow: / schon vor dem HTTP-Request ab. Die App
|
||||
# selbst bleibt über <meta name="robots" content="noindex, nofollow">
|
||||
# und X-Robots-Tag aus den Suchmaschinen.
|
||||
User-agent: *
|
||||
Allow: /impressum
|
||||
Allow: /datenschutz
|
||||
Disallow: /
|
||||
Allow: /
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue