Answer: Use permission rules to decide what Claude is allowed to run, read, and fetch, with `deny` rules holding in every permission mode, and turn on the sandbox with `/sandbox` in a session for an OS-level limit on filesystem or network access. For anything security-related you want both. Status: Check failed Entry: tool/claude-code/permissions-and-security/limit-access-permission-rules-sandbox Revision: 3 Digest: sha256:7d16b3b7648674ef (changes whenever the content changes) Timeline: Created: 2026-11-13T02:31:13Z Last changed: 2026-11-16T12:06:52Z Last verified: 2026-11-19T12:13:58Z Last attempt: 2026-11-20T12:18:15Z (failed) Next check: 2026-11-20T13:18:15Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Permission rules purpose | decide what Claude is allowed to run, read, and fetch | [1] | 2026-11-19 Deny rule scope | hold in every permission mode | [1] | 2026-11-19 Sandbox command | /sandbox | [1] | 2026-11-19 Sandbox platforms | macOS, Linux, and WSL2 | [1] | 2026-11-19 Sandbox rule pickup | picks up your `Read` deny rules and `WebFetch(domain:...)` rules | [1] | 2026-11-19 Recommendation | for anything security-related you want both | [1] | 2026-11-19 Strict sandbox mode location | **Overrides** tab | [1] | 2026-11-19 Sources: [1] Anthropic. "Best practices for Claude Code". https://code.claude.com/docs/en/best-practices.md Role: primary. Accessed: 2026-11-19T12:13:58Z Quote: "Permission rules](https://code.claude.com/docs/en/permissions.md) decide what Claude is allowed to run, read, and fetch." (Supports: Permission rules purpose) Quote: "`deny` rules hold in every permission mode" (Supports: Deny rule scope) Quote: "turn on the [sandbox](https://code.claude.com/docs/en/sandboxing.md) with `/sandbox` in a session." (Supports: Sandbox command) Quote: "It confines Claude's shell commands on macOS, Linux, and WSL2" (Supports: Sandbox platforms) Quote: "[picks up your `Read` deny rules and `WebFetch(domain:...)` rules](https://code.claude.com/docs/en/sandboxing#permission-rules) too" (Supports: Sandbox rule pickup) Quote: "so for anything security-related you want both." (Supports: Recommendation) Quote: "in the `/sandbox` **Overrides** tab, turns that retry off." (Supports: Strict sandbox mode location) Published: 2026-11-19T03:39:14Z Snapshot SHA-256: ff7e1495aa129c5ea64c331d382df5eaecc606000ed3f72c3376f71c48a56fa6 (captured 2026-11-18T12:13:57Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-19T12:13:58Z. No independent second source is configured for this entry Last successful check: 2026-11-19T12:13:58Z Last attempt: 2026-11-20T12:18:15Z (failed) Notes and limitations: Extracted automatically from a single official source (section "Limit access with permission rules and the sandbox"). Related: https://latestn.com/tool/claude-code/permissions-and-security/manage-site-permissions How do I manage site permissions for Claude Code's Chrome integration? https://latestn.com/tool/claude-code/permissions-and-security/mcp-security How does Claude Code handle security for MCP servers? https://latestn.com/tool/claude-code/permissions-and-security/official-marketplace-names Which marketplace names are official Anthropic marketplaces in Claude Code? https://latestn.com/tool/claude-code/permissions-and-security/iam-configuration What IAM permissions does Claude Code need on Google Cloud's Agent Platform? https://latestn.com/tool/claude-code/permissions-and-security/iam-permissions What IAM permissions are required for Claude Code on Amazon Bedrock? https://latestn.com/tool/claude-code/permissions-and-security/isolation-technologies What isolation technologies can I use to securely deploy Claude Code agents? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T12:18:15Z | check-failed | Extraction did not pass verification: answer does not contain any extracted value | — 2026-11-19T12:13:58Z | recovered | Check succeeded again | — 2026-11-18T12:13:59Z | check-failed | Extraction did not pass verification: answer does not contain any extracted value | — 2026-11-16T12:06:52Z | changed | Sandbox rule pickup: — → picks up your `Read` deny rules and `WebFetch(domain:...)` rules | [1] 2026-11-16T12:06:52Z | changed | Sandbox command: — → /sandbox | [1] 2026-11-16T12:06:52Z | changed | Deny rule scope: — → hold in every permission mode | [1] 2026-11-16T12:06:52Z | changed | Permission rules purpose: — → decide what Claude is allowed to run, read, and fetch | [1] 2026-11-16T12:06:52Z | changed | Strict sandbox mode location: Overrides → **Overrides** tab | [1] 2026-11-16T12:06:52Z | changed | Deny rules scope: hold in every permission mode → — | [1] 2026-11-13T12:08:10Z | changed | Deny rules scope: — → hold in every permission mode | [1] 2026-11-13T12:08:10Z | changed | Deny rule scope: hold in every permission mode → — | [1] 2026-11-13T02:31:13Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/permissions-and-security/limit-access-permission-rules-sandbox/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/permissions-and-security/limit-access-permission-rules-sandbox POST: https://latestn.com/dispute/tool/claude-code/permissions-and-security/limit-access-permission-rules-sandbox with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/permissions-and-security/limit-access-permission-rules-sandbox?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I limit Claude Code's access with permission rules and the sandbox? Revision 3, last verified 2026-11-19T12:13:58Z. https://latestn.com/tool/claude-code/permissions-and-security/limit-access-permission-rules-sandbox (accessed 2026-11-21T10:06:29Z). @misc{LatestN_tool_claude_code_permissions_and_security_limit_access_permission_rules_sandbox_r3, title = {How do I limit Claude Code's access with permission rules and the sandbox?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/permissions-and-security/limit-access-permission-rules-sandbox}}, note = {Revision 3; digest sha256:7d16b3b7648674ef; last verified 2026-11-19T12:13:58Z; accessed 2026-11-21T10:06:29Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/permissions-and-security/limit-access-permission-rules-sandbox