feat(seo): sitemap.xml für öffentliche Seiten, robots referenziert sie
Zusätzlich Diagnose-Tools (tls-check.sh, proxy-check.sh) und Doku zum Zugriff aus Netzen mit FortiGuard-Webfilter.
This commit is contained in:
parent
06bca08b3b
commit
210e3b053d
5 changed files with 211 additions and 0 deletions
28
tools/proxy-check.sh
Executable file
28
tools/proxy-check.sh
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
#!/usr/bin/env bash
|
||||
# Vergleicht eine Proxy-/Zweitdomain mit der Live-Domain:
|
||||
# gleicher Inhalt, /login erreichbar, noindex gesetzt, keine absoluten Links.
|
||||
#
|
||||
# ./tools/proxy-check.sh [proxy-host] [ziel-host]
|
||||
set -euo pipefail
|
||||
|
||||
PROXY="${1:-drink-it-cold.programmschmiede.de}"
|
||||
TARGET="${2:-drinkitcold.de}"
|
||||
|
||||
title() { curl -sS --max-time 20 "https://$1/" 2>/dev/null | grep -o '<title>[^<]*</title>' | head -1; }
|
||||
code() { curl -sS --max-time 20 -o /dev/null -w '%{http_code}' "https://$1$2" 2>/dev/null; }
|
||||
|
||||
say() { printf '%-8s %s\n' "$*"; }
|
||||
|
||||
say "=" "Proxy: $PROXY Ziel: $TARGET"
|
||||
say "title" "$(title "$PROXY")"
|
||||
say "" "$(title "$TARGET")"
|
||||
[ "$(title "$PROXY")" = "$(title "$TARGET")" ] && say "OK" "Titel identisch" || say "WARN" "Titel abweichend"
|
||||
|
||||
for p in / /login /robots.txt /assets/css/app.css; do
|
||||
a=$(code "$PROXY" "$p"); b=$(code "$TARGET" "$p")
|
||||
say "code" "$p proxy=$a ziel=$b $([ "$a" = "$b" ] && echo OK || echo WARN)"
|
||||
done
|
||||
|
||||
say "noindex" "$(curl -sSI --max-time 20 "https://$PROXY/" 2>/dev/null | grep -i '^x-robots-tag' || echo 'FEHLT')"
|
||||
say "cookies" "$(curl -sSI --max-time 20 "https://$PROXY/login" 2>/dev/null | grep -ci '^set-cookie' || true) Set-Cookie-Header"
|
||||
say "host" "$(curl -sS --max-time 20 "https://$PROXY/" 2>/dev/null | grep -c 'https://drinkitcold\.de' || true) absolute Verweise auf $TARGET (canonical/og sind ok)"
|
||||
Loading…
Add table
Add a link
Reference in a new issue