Answer: Use .cursorignore to block agent access to specific files. Status: Confirmed Entry: tool/cursor/permissions-and-security/block-agent-file-access Revision: 1 Digest: sha256:c24b9bcc4ea84a78 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:09:17Z Last changed: 2026-11-13T03:09:17Z Last verified: 2026-11-20T12:34:47Z Next check: 2026-11-21T12:34:47Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of method | .cursorignore | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/agent/security.md". https://cursor.com/docs/agent/security.md Role: primary. Accessed: 2026-11-20T12:34:47Z Quote: "Use [.cursorignore](https://cursor.com/docs/reference/ignore-file.md) to block agent access to specific files." (Supports: method) Snapshot SHA-256: d54ccd9897c20d5c08b235de8f3adbf1bcc30a95d072988de6a2b773abff9572 (captured 2026-11-13T03:09:17Z) 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]. On this check the text of [1] was unchanged since 2026-11-13T03:09:17Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:34:47Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:34:47Z Last attempt: 2026-11-20T12:34:47Z Notes and limitations: Extracted automatically from a single official source (section "First-party tool calls"). Related: https://latestn.com/tool/cursor/permissions-and-security/bridge-authentication How does authentication work for the Cursor SDK Bridge? https://latestn.com/tool/cursor/permissions-and-security/browser-authentication-isolation How does Cursor's browser tool handle authentication and isolation? https://latestn.com/tool/cursor/permissions-and-security/change-bot-access How do I change who has access to a Cursor Deployed Agent? https://latestn.com/tool/cursor/permissions-and-security/app-security-controls What security checks and controls does Cursor apply before publishing an app? https://latestn.com/tool/cursor/permissions-and-security/auto-allow-self-hosted-machines How do I enable automatic approval for self-hosted machines in Cursor cloud agents? https://latestn.com/tool/cursor/permissions-and-security/auto-approve-terminal-commands How do I make Cursor terminal commands run without approval? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:09:17Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/permissions-and-security/block-agent-file-access/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/cursor/permissions-and-security/block-agent-file-access POST: https://latestn.com/dispute/tool/cursor/permissions-and-security/block-agent-file-access with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/permissions-and-security/block-agent-file-access?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I stop Cursor agents from accessing certain files? Revision 1, last verified 2026-11-20T12:34:47Z. https://latestn.com/tool/cursor/permissions-and-security/block-agent-file-access (accessed 2026-11-21T10:01:21Z). @misc{LatestN_tool_cursor_permissions_and_security_block_agent_file_access_r1, title = {How do I stop Cursor agents from accessing certain files?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/permissions-and-security/block-agent-file-access}}, note = {Revision 1; digest sha256:c24b9bcc4ea84a78; last verified 2026-11-20T12:34:47Z; accessed 2026-11-21T10:01:21Z} } 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/cursor/permissions-and-security/block-agent-file-access