bot
This commit is contained in:
+16
-9
@@ -1,4 +1,6 @@
|
||||
import { MetadataRoute } from 'next';
|
||||
import type { MetadataRoute } from 'next';
|
||||
|
||||
const PROTECTED = ['/admin/', '/api/'];
|
||||
|
||||
export default function robots(): MetadataRoute.Robots {
|
||||
return {
|
||||
@@ -6,18 +8,23 @@ export default function robots(): MetadataRoute.Robots {
|
||||
{
|
||||
userAgent: '*',
|
||||
allow: '/',
|
||||
disallow: ['/admin/', '/api/'],
|
||||
disallow: PROTECTED,
|
||||
},
|
||||
// Allow AI citation/search bots (they surface the site in AI answers)
|
||||
{ userAgent: 'OAI-SearchBot', allow: '/' },
|
||||
{ userAgent: 'PerplexityBot', allow: '/' },
|
||||
{ userAgent: 'anthropic-ai', allow: '/' },
|
||||
{ userAgent: 'ClaudeBot', allow: '/' },
|
||||
// Block training crawlers
|
||||
// AI arama / citation botları
|
||||
{ userAgent: 'OAI-SearchBot', allow: '/', disallow: PROTECTED },
|
||||
{ userAgent: 'ChatGPT-User', allow: '/', disallow: PROTECTED },
|
||||
{ userAgent: 'PerplexityBot', allow: '/', disallow: PROTECTED },
|
||||
{ userAgent: 'Perplexity-User', allow: '/', disallow: PROTECTED },
|
||||
{ userAgent: 'Claude-SearchBot', allow: '/', disallow: PROTECTED },
|
||||
{ userAgent: 'Claude-User', allow: '/', disallow: PROTECTED },
|
||||
// Training crawler'ları engelle
|
||||
{ userAgent: 'GPTBot', disallow: '/' },
|
||||
{ userAgent: 'ClaudeBot', disallow: '/' },
|
||||
{ userAgent: 'Google-Extended', disallow: '/' },
|
||||
{ userAgent: 'CCBot', disallow: '/' },
|
||||
{ userAgent: 'Bytespider', disallow: '/' }, // ByteDance/TikTok
|
||||
{ userAgent: 'Meta-ExternalAgent', disallow: '/' }, // Meta training
|
||||
],
|
||||
sitemap: 'https://kitebeachakyaka.com.tr/sitemap.xml',
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user