Disable AI in defined files

Hello everybody!

First at all, congratulations for this product it’s really exciting to see how many things are coming with AI and LLM’s!

My question it’s easy I guess, how can I block the AI to read specific files (like credentials, etc…)

put the file name into the .cursorignore file in the directory

1 Like

Keep in mind that putting the file name into the .cursorignore file will only exclude it from the codebase indexing. If you send a chat message with the file opened or if you include it in your message with the @-Symbol, it will still be sent to the AI.