Protected mode helps keep your Redis server safe by limiting access to it. It stops strangers from connecting and changing your data.
Protected mode in Redis
protected-mode yes|no
Use yes to enable protected mode (default).
Use no to disable protected mode, but only if you know what you are doing.
protected-mode yes
protected-mode no
This example shows starting Redis with protected mode on. If you try to connect from another machine without a password, Redis will refuse the connection.
# Start Redis server with protected mode enabled (default) redis-server --protected-mode yes # Try to connect from another machine without authentication redis-cli -h <server-ip> ping
Protected mode is on by default to keep Redis safe.
If you disable protected mode, make sure to set a strong password and firewall rules.
Protected mode blocks connections from outside localhost unless a password is set or specific bind addresses are configured.
Protected mode helps protect your Redis server from unauthorized access.
It is enabled by default and should only be disabled with proper security measures.
Always use protected mode or other security settings when running Redis on a network.