#deny
2 articles
-
Stop Claude Code reading your .env with a Read deny rule
A Read deny rule is the reliable way to keep .env out of the model's input. How to write the pattern, how depth and anchoring change its reach, and where deny stops working.
-
Claude Code permissions by example, auto-allow npm scripts, confirm git push, block force push
One settings.json that lets npm run scripts go without prompts while npm install still asks, stops right before every git push, and denies git push --force in all its spellings.