melanie zrewidował ten Gist . Przejdź do rewizji
1 file changed, 21 insertions
no-ai--next.config.js(stworzono plik)
@@ -0,0 +1,21 @@ | |||
1 | + | const nextConfig = { | |
2 | + | async redirects() { | |
3 | + | return [ | |
4 | + | { | |
5 | + | source: '/(.*)', | |
6 | + | has: [ | |
7 | + | { | |
8 | + | type: 'header', | |
9 | + | key: 'User-Agent', | |
10 | + | value: | |
11 | + | '(.*(AdsBot-Google|Amazonbot|anthropic-ai|Applebot|ArcMobile|AwarioRssBot|AwarioSmartBot|Bytespider|CCBot|ChatGPT-User|Claude-Web|ClaudeBot|cohere-ai|DataForSeoBot|Diffbot|FacebookBot|FriendlyCrawler|Google-Extended|Googlebot-Image|Googlebot-Image|GoogleOther|GPTBot|ImagesiftBot|img2dataset|magpie-crawler|Meltwater|msnbot-media|omgili|omgilibot|peer39_crawler|PerplexityBot|PiplBot|Seekr|scoop.it|yandex|YouBot).*)', | |
12 | + | }, | |
13 | + | ], | |
14 | + | destination: 'https://hil-speed.hetzner.com/10GB.bin', | |
15 | + | permanent: false, | |
16 | + | }, | |
17 | + | ] | |
18 | + | }, | |
19 | + | } | |
20 | + | ||
21 | + | module.exports = nextConfig |
Nowsze
Starsze