Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Important
Security Advisory: React2Shell & two new vulnerabilities
Find out more

htmlLimitedBots

Last updated October 3, 2025

ThehtmlLimitedBots config allows you to specify a list of user agents that should receive blocking metadata instead ofstreaming metadata.

next.config.ts
importtype { NextConfig }from'next'constconfig:NextConfig= {  htmlLimitedBots: /MySpecialBot|MyAnotherSpecialBot|SimpleCrawler/,}exportdefault config

Default list

Next.js includes a default list of HTML limited bots, including:

  • Google crawlers (e.g. Mediapartners-Google, AdsBot-Google, Google-PageRenderer)
  • Bingbot
  • Twitterbot
  • Slackbot

See the full listhere.

Specifying ahtmlLimitedBots config will override the Next.js' default list. However, this is advanced behavior, and the default should be sufficient for most cases.

next.config.ts
constconfig:NextConfig= {  htmlLimitedBots: /MySpecialBot|MyAnotherSpecialBot|SimpleCrawler/,}exportdefault config

Disabling

To fully disable streaming metadata:

next.config.ts
importtype { NextConfig }from'next'constconfig:NextConfig= {  htmlLimitedBots: /.*/,}exportdefault config

Version History

VersionChanges
15.2.0htmlLimitedBots option introduced.

Was this helpful?

supported.

[8]ページ先頭

©2009-2025 Movatter.jp