Complete the code to bind Redis to localhost only.
bind [1]Binding to 127.0.0.1 restricts Redis to listen only on the local machine, enhancing security.
Complete the code to enable protected mode in Redis.
protected-mode [1]Setting protected-mode to yes enables Redis's built-in security feature to prevent unauthorized access.
Fix the error in the bind configuration to restrict Redis to localhost.
bind [1]Redis requires an IP address for binding; 'localhost' is not valid here. Use 127.0.0.1 instead.
Fill both blanks to configure Redis to bind only to localhost and enable protected mode.
bind [1] protected-mode [2]
Binding to 127.0.0.1 restricts access to localhost, and setting protected-mode to yes enables security protections.
Fill all three blanks to configure Redis to bind localhost, enable protected mode, and disable external access.
bind [1] protected-mode [2] # external access: [3]
Binding to 127.0.0.1 and enabling protected mode secures Redis. Commenting external access as disabled clarifies the config intent.
