Concept Flow - Protected mode
Redis Server Starts
Check Protected Mode Setting
Bind to localhost
Accept only local
connections
Wait for Client Commands
When Redis starts, it checks if protected mode is on. If yes, it only accepts local connections to keep safe. If no, it accepts connections from anywhere.