# Sahha.ma — robots.txt # Le hub santé du Maroc : annuaire médecins, articles, téléconsultation, MRE # Contact : privacy@sahha.ma · https://sahha.ma/charte-qualite # ═══════════════════ Règles générales ═══════════════════ User-agent: * Disallow: /annuaire/index-complet Allow: / # Zones privées/auth Disallow: /admin/ Disallow: /api/ Disallow: /mon-compte/ Disallow: /espace-pro/dashboard/ Disallow: /espace-pro/leads/ # /api/og : endpoint image OG dynamique, référencé en meta og:image sur # des milliers de pages → Google l'indexe "à l'aveugle" (URL nue, sans # contenu) car bloqué par le Disallow /api/ générique ci-dessus et ne peut # donc jamais lire le header X-Robots-Tag: noindex déjà envoyé par la route # elle-même (audit GSC 2026-07-28, "Indexée malgré le blocage robots.txt"). # On autorise le crawl de ce sous-chemin précis pour que Google lise le # noindex et désindexe proprement — Allow plus spécifique gagne sur le # Disallow générique quel que soit l'ordre (spec robots.txt : longest match). Allow: /api/og # URLs paramétrées (évite crawl budget gaspillé) Disallow: /*?*utm_ Disallow: /*?filter= Disallow: /*?sort=* Disallow: /*?page=*&* # pages 2+ avec filtres — canonical vers page 1 Disallow: /recherche?q=*&ville=*&* # combinaisons complexes Disallow: /recherche?specialty=*&city=* # combinaisons spé×ville (Soft 404 GSC 06-02) Disallow: /recherche?specialty=* # specialty seul → canonical /{specialty} Disallow: /recherche?city=* # city seule → canonical /villes/{city} # Carte de recherche : noindex, follow, et recherche plein texte côté serveur # (2 000-4 000 crawls/jour de /recherche/carte?q=… mesurés le 2026-09-21). Disallow: /recherche/carte Disallow: /ar/recherche/carte Disallow: /en/recherche/carte # Autorise les pages paginées simples Allow: /recherche?page=*$ Allow: /recherche?q=*$ Allow: /recherche?ville=*$ # Sitemaps Sitemap: https://sahha.ma/sitemap.xml # llms.txt — guide structuré pour LLMs/AI crawlers (ChatGPT, Perplexity, # Claude, AI Overviews). Convention émergente https://llmstxt.org/. LLM: https://sahha.ma/llms.txt # Pages de recherche (/recherche, /recherche/carte, /live) : noindex et # recherche plein texte en mémoire sur 44 000 fiches à chaque requête. Aucune # valeur pour un assistant IA (les fiches et hubs sont indexés) ; les crawlers # IA les parcouraient ~4 000 fois/jour (2026-09-21). Bloquées ci-dessous par # groupe ; nginx renvoie 429 en attendant la relecture du robots.txt. # ═══════════════════ AI Crawlers (GEO — AI Overviews, ChatGPT, etc.) ═══════════════════ # OpenAI GPTBot — entraînement modèles # Fix GEO 2026-08-17 : Allow: / explicite ajouté — les fiches médecin # (/[spe]/[ville]/[nom], 40k+ pages, cœur du business) n'étaient couvertes # par AUCUNE règle Allow et ne passaient que par l'allow-par-défaut, # fragile si une règle Disallow générique est ajoutée un jour. Les Allow # spécifiques restent (documentation d'intention), le Disallow prime # toujours sur admin/api/mon-compte (règle la plus longue gagne). User-agent: GPTBot Disallow: /annuaire/index-complet Allow: / Allow: /articles/ Allow: /auteurs/ Allow: /pathologies/ Allow: /tools/ Allow: /mre/ Allow: /specialites/ Allow: /villes/ Allow: /medicaments/ Allow: /pharmacie-de-garde/ Allow: /cliniques/ Allow: /clinique/ Allow: /hopital/ Allow: /centre-medical/ Allow: /polyclinique/ Allow: /centre-dentaire/ Allow: /laboratoires/ Allow: /laboratoire/ Allow: /centre-radiologie/ Allow: /clinique-veterinaire/ Allow: /veterinaires/ Allow: /a-propos Allow: /charte-qualite Disallow: /admin/ Disallow: /recherche Disallow: /ar/recherche Disallow: /en/recherche Disallow: /live Disallow: /ar/live Disallow: /en/live Disallow: /api/ Disallow: /mon-compte/ # OpenAI OAI-SearchBot — ChatGPT Search temps réel (distinct de GPTBot) User-agent: OAI-SearchBot Disallow: /annuaire/index-complet Allow: / Disallow: /admin/ Disallow: /recherche Disallow: /ar/recherche Disallow: /en/recherche Disallow: /live Disallow: /ar/live Disallow: /en/live Disallow: /api/ Disallow: /mon-compte/ # OpenAI ChatGPT-User — actions utilisateur (browsing on-demand) User-agent: ChatGPT-User Disallow: /annuaire/index-complet Allow: / Disallow: /admin/ Disallow: /recherche Disallow: /ar/recherche Disallow: /en/recherche Disallow: /live Disallow: /ar/live Disallow: /en/live Disallow: /api/ Disallow: /mon-compte/ # Anthropic ClaudeBot — entraînement modèles # Allow: / explicite (même fix GEO 2026-08-17 que GPTBot ci-dessus). User-agent: ClaudeBot Disallow: /annuaire/index-complet Allow: / Allow: /articles/ Allow: /auteurs/ Allow: /pathologies/ Allow: /tools/ Allow: /mre/ Allow: /specialites/ Allow: /villes/ Allow: /medicaments/ Allow: /pharmacie-de-garde/ Allow: /cliniques/ Allow: /clinique/ Allow: /hopital/ Allow: /centre-medical/ Allow: /polyclinique/ Allow: /centre-dentaire/ Allow: /laboratoires/ Allow: /laboratoire/ Allow: /centre-radiologie/ Allow: /clinique-veterinaire/ Allow: /veterinaires/ Allow: /a-propos Disallow: /admin/ Disallow: /recherche Disallow: /ar/recherche Disallow: /en/recherche Disallow: /live Disallow: /ar/live Disallow: /en/live Disallow: /api/ Disallow: /mon-compte/ # Anthropic anthropic-ai (user-agent alternatif) User-agent: anthropic-ai Disallow: /annuaire/index-complet Allow: / Disallow: /admin/ Disallow: /recherche Disallow: /ar/recherche Disallow: /en/recherche Disallow: /live Disallow: /ar/live Disallow: /en/live Disallow: /api/ Disallow: /mon-compte/ # Anthropic Claude-Web (requêtes utilisateur) User-agent: Claude-Web Disallow: /annuaire/index-complet Allow: / Disallow: /admin/ Disallow: /recherche Disallow: /ar/recherche Disallow: /en/recherche Disallow: /live Disallow: /ar/live Disallow: /en/live Disallow: /api/ # Perplexity User-agent: PerplexityBot Disallow: /annuaire/index-complet Allow: / Disallow: /admin/ Disallow: /recherche Disallow: /ar/recherche Disallow: /en/recherche Disallow: /live Disallow: /ar/live Disallow: /en/live Disallow: /api/ Disallow: /mon-compte/ # Google AI Overviews / SGE User-agent: Google-Extended Disallow: /annuaire/index-complet Allow: / Disallow: /admin/ Disallow: /api/ # Common Crawl (alimente plusieurs LLMs) User-agent: CCBot Disallow: /annuaire/index-complet Allow: /articles/ Allow: /pathologies/ Allow: /tools/ Allow: /medicaments/ Allow: /pharmacie-de-garde/ # Facebook/Meta AI User-agent: FacebookBot Disallow: /annuaire/index-complet Allow: /articles/ Allow: /pathologies/ # Apple Intelligence User-agent: Applebot-Extended Disallow: /annuaire/index-complet Allow: / Disallow: /admin/ Disallow: /recherche Disallow: /ar/recherche Disallow: /en/recherche Disallow: /live Disallow: /ar/live Disallow: /en/live Disallow: /api/ Disallow: /mon-compte/ # Mistral AI User-agent: MistralAI-User Disallow: /annuaire/index-complet Allow: / Disallow: /admin/ Disallow: /recherche Disallow: /ar/recherche Disallow: /en/recherche Disallow: /live Disallow: /ar/live Disallow: /en/live Disallow: /api/ # ═══════════════════ Search engines standard ═══════════════════ # Google User-agent: Googlebot Disallow: /annuaire/index-complet Allow: / Allow: /api/og Disallow: /admin/ Disallow: /api/ Disallow: /mon-compte/ # Googlebot News (si on a des news) User-agent: Googlebot-News Disallow: /annuaire/index-complet Allow: /articles/ # Googlebot Images User-agent: Googlebot-Image Disallow: /annuaire/index-complet Allow: / Disallow: /admin/ # Bing User-agent: Bingbot Disallow: /annuaire/index-complet Allow: / Allow: /api/og Disallow: /admin/ Disallow: /api/ # DuckDuckGo User-agent: DuckDuckBot Disallow: /annuaire/index-complet Allow: / # ═══════════════════ Scrapers non autorisés ═══════════════════ # Anti-scraping compétiteur User-agent: AhrefsBot Disallow: /annuaire/index-complet Crawl-delay: 10 User-agent: SemrushBot Disallow: /annuaire/index-complet Crawl-delay: 10 User-agent: MJ12bot Disallow: /annuaire/index-complet Disallow: /