Is Bitcoin Core JSON-RPC Safe to Expose to the Public Internet?
No. Bitcoin Core JSON-RPC is designed as a privileged interface for controlling a node and, when enabled, its wallets. Direct public exposure greatly increases the consequences of stolen credentials, configuration mistakes, or vulnerable client integrations.
Why is public RPC exposure dangerous?
RPC methods can reveal operational information and, for loaded wallets with signing capability, potentially authorize spending operations. HTTP Basic authentication is not transport encryption. IP allowlists and password checks are useful controls, but they do not turn an administrative interface into a public API.
What should a developer use instead?
Keep RPC on loopback or a trusted private connection. If external applications need Bitcoin data, build a narrow service that exposes only the necessary read-only or explicitly authorized operations. Use TLS for remote transport, validate every request, rate-limit clients, and never forward arbitrary RPC method names from untrusted users.
Primary references
Bitcoin Core JSON-RPC interface: https://github.com/bitcoin/bitcoin/blob/master/doc/JSON-RPC-interface.md
Bitcoin Core configuration examples: https://github.com/bitcoin/bitcoin/blob/master/share/examples/bitcoin.conf
