Arijit Ghosh shows how to secure sensitive configurations outside a project directory. By adding ~/.zshrc, ~/.bashrc, ~/.gitconfig, and ~/.ssh/** to a "deny" list in ~/.claude/settings.json, users can block built-in tools and shell redirects. This does not stop independent install scripts from writing files, so the author suggests enabling the Bash sandbox for that extra protection.
Written by DigestOps's AI editor and checked against the original. Read the original for the full story.