# 53 / 5.000 Elastic defend allows all files in a directory

**URL:** <https://discuss.elastic.co/t/53-5-000-elastic-defend-allows-all-files-in-a-directory/373528>\
**Category:** Endpoint Security\
**Created:** [January 22, 2025, 4:43pm UTC](https://discuss.elastic.co/t/53-5-000-elastic-defend-allows-all-files-in-a-directory/373528 "2025-01-22T16:43:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArgoAdvisory](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@ArgoAdvisory](https://discuss.elastic.co/u/ArgoAdvisory)\
**Post date:** [January 22, 2025, 4:43pm UTC](https://discuss.elastic.co/t/53-5-000-elastic-defend-allows-all-files-in-a-directory/373528/1 "2025-01-22T16:43:25Z")

</div>

Good morning everyone.

I have installed Elastic Defend \ Endpoint Security on my Windows computer.

I would like **every** file in a specific folder:  
Example, C:\directory\*

not to be blocked.

I have already tried to put in the trust applications:  
Path matches C:\Directory\*

And in the rule exceptions:  
file.path matches C:\Directory\*

But it doesn't work. Any ideas?

---

<div class="post-metadata">

**Author:** ![gabriel.landau](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gabriel.landau/32/73401_2.png) [@gabriel.landau](https://discuss.elastic.co/u/gabriel.landau)\
**Post date:** [January 22, 2025, 5:40pm UTC](https://discuss.elastic.co/t/53-5-000-elastic-defend-allows-all-files-in-a-directory/373528/2 "2025-01-22T17:40:35Z")

</div>

Hi @ArgoAdvisory. You'll want two Endpoint (not Rule) Exceptions:

You can find this under `/app/security/exceptions/details/endpoint_list`

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/f/3fb4900768a016c6d87d5a404e5d72a1c4eee747.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 19, 2025, 5:41pm UTC](https://discuss.elastic.co/t/53-5-000-elastic-defend-allows-all-files-in-a-directory/373528/3 "2025-02-19T17:41:02Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
