Answer: Use a `.cursorignore` file, which works like `.gitignore` but controls what Cursor can access, excluding matching files from agent file reading and context selection. However, `.cursorignore` is not a security boundary; for true security, use file system permissions or encrypt sensitive data. Status: Confirmed Entry: tool/cursor/privacy-and-data/protect-sensitive-files Revision: 1 Digest: sha256:e1966051796491ab (changes whenever the content changes) Timeline: Created: 2026-11-13T03:10:33Z Last changed: 2026-11-13T03:10:33Z Last verified: 2026-11-20T12:37:36Z Next check: 2026-11-21T12:37:36Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of file | .cursorignore | [1] | 2026-11-20 excluded from | Agent file reading | [1] | 2026-11-20 security limitation | .cursorignore | [1] | 2026-11-20 true security | file system permissions or encrypt sensitive data | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/enterprise/llm-safety-and-controls.md". https://cursor.com/docs/enterprise/llm-safety-and-controls.md Role: primary. Accessed: 2026-11-20T12:37:36Z Quote: "The `.cursorignore` file works like `.gitignore` but controls what Cursor can access." (Supports: file) Quote: "Files matching patterns in `.cursorignore` are excluded from: - Agent file reading" (Supports: excluded from) Quote: "`.cursorignore` is not a security boundary." (Supports: security limitation) Quote: "For true security, use file system permissions or encrypt sensitive data." (Supports: true security) Snapshot SHA-256: 4a4d4bd68097abc882ba1dafe86fa37022f986b74b5520afe58b6dba0839f894 (captured 2026-11-13T03:10:32Z) 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:10:33Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:37:36Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:37:36Z Last attempt: 2026-11-20T12:37:36Z Notes and limitations: Extracted automatically from a single official source (section "Protecting sensitive files"). Related: https://latestn.com/tool/cursor/privacy-and-data/security-certifications Where can I find Cursor's security certifications and audit reports? https://latestn.com/tool/cursor/privacy-and-data/self-hosted-data-leaves-network What data leaves my network when using Cursor Self-Hosted Machines? https://latestn.com/tool/cursor/settings/automation-settings How do I configure the model and repositories for a Cursor automation? https://latestn.com/tool/cursor/privacy-and-data/phi-prerequisites What must I do before using Cursor with PHI? https://latestn.com/tool/cursor/privacy-and-data/privacy-mode-managed-hosting How does Privacy Mode affect Cursor managed hosting for Agent SDK deployments? https://latestn.com/tool/cursor/privacy-and-data/projects-privacy-mode Can I use Cursor Projects with Privacy Mode? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:10:33Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/privacy-and-data/protect-sensitive-files/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/privacy-and-data/protect-sensitive-files POST: https://latestn.com/dispute/tool/cursor/privacy-and-data/protect-sensitive-files with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/privacy-and-data/protect-sensitive-files?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I protect sensitive files from Cursor agents using .cursorignore? Revision 1, last verified 2026-11-20T12:37:36Z. https://latestn.com/tool/cursor/privacy-and-data/protect-sensitive-files (accessed 2026-11-21T09:58:01Z). @misc{LatestN_tool_cursor_privacy_and_data_protect_sensitive_files_r1, title = {How do I protect sensitive files from Cursor agents using .cursorignore?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/privacy-and-data/protect-sensitive-files}}, note = {Revision 1; digest sha256:e1966051796491ab; last verified 2026-11-20T12:37:36Z; accessed 2026-11-21T09:58:01Z} } 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/privacy-and-data/protect-sensitive-files