Skip to content

Security Settings ​

security

Security settings restrict login and MCP access. Click Save & restart after changing them.

  • Login IP Whitelist: IPv4/IPv6 CIDR ranges allowed to access login. Empty means all IPs are allowed.
  • MCP IP Whitelist: CIDR ranges allowed to access MCP. Empty means deny IP-based MCP access.

API tokens and MCP tokens are not in this section. Create and revoke them in Settings → Users & Access → API Tokens. See REST API.

config.json ​

Section: security

KeyDescriptionTypeWebUI fieldDefault
login_whitelistLogin IP whiteliststring arrayLogin IP Whitelist[]
login_tokensLegacy login API tokens, see the note belowstring arraynone[]
mcp_whitelistMCP IP whiteliststring arrayMCP IP Whitelist[]
mcp_tokensLegacy MCP API tokens, see the note belowstring arraynone[]
webauthn_rp_idPasskey RP IDstringconfig only""
webauthn_originPasskey originstringconfig only""

INFO

login_tokens and mcp_tokens are legacy 3.x keys. At startup, AB imports their tokens as API tokens (scope api and mcp) and then clears both keys.

AutoBangumi is released under the MIT License. (latest: v4.0.0)