# ======================================== # Africa.com - robots.txt # News & Media Publisher # Hardened for security + SEO + AI search # Rules strictly limit access to Google, AI, and Social Bots # ======================================== # ---------------------------------------- # 1. GOOGLE SEARCH & GOOGLE AI # ---------------------------------------- User-agent: Googlebot Allow: / Allow: /feed/ Allow: /*/feed/ Allow: /wp-admin/admin-ajax.php # WordPress system paths blocked for Google Disallow: /wp-admin/ Disallow: /wp-login.php Disallow: /wp-includes/ Disallow: /wp-json/ Disallow: /xmlrpc.php Disallow: /wp-content/plugins/ Disallow: /wp-content/themes/ Disallow: /wp-content/cache/ Disallow: /wp-content/backup-db/ Disallow: /wp-content/backups/ Disallow: /wp-content/uploads/wp-import-export-lite/ Disallow: /readme.html Disallow: /license.txt Disallow: /wp-config-sample.php # Search & duplicate content blocked for Google Disallow: /?s= Disallow: /search/ Disallow: /*?*replytocom= Disallow: /*?*share= Disallow: /*?*print= Disallow: /*?*amp # Trackbacks and comment feeds blocked for Google Disallow: /trackback/ Disallow: /*/trackback/ Disallow: /comments/feed/ # Attachment & author archive pages blocked for Google Disallow: /*/attachment/* Disallow: /author/ User-agent: Googlebot-News Allow: / Allow: /feed/ Allow: /*/feed/ User-agent: Googlebot-Image Allow: / User-agent: Google-Extended Allow: / Allow: /feed/ Allow: /*/feed/ # ---------------------------------------- # 2. AI SEARCH & DISCOVERY BOTS # ---------------------------------------- User-agent: GPTBot Allow: / User-agent: ChatGPT-User Allow: / User-agent: OAI-SearchBot Allow: / User-agent: PerplexityBot Allow: / User-agent: anthropic-ai Allow: / User-agent: ClaudeBot Allow: / # ---------------------------------------- # 3. SOCIAL MEDIA BOT PREVIEWS (Prevents Blank Links) # ---------------------------------------- User-agent: facebot Allow: / User-agent: facebookexternalhit Allow: / User-agent: Twitterbot Allow: / User-agent: LinkedInBot Allow: / # ---------------------------------------- # 4. DEFAULT BLOCK - All other bots blocked # ---------------------------------------- User-agent: * Disallow: / # ---------------------------------------- # SITEMAPS # ---------------------------------------- Sitemap: https://africa.com Sitemap: https://africa.com Sitemap: https://africa.com