This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Wildcard Scanning Exclusions: filter files with certain extension under a directory

Hi,

I'm just trying to understand the following help:

https://docs.sophos.com/central/Customer/help/en-us/central/Customer/common/references/ExclusionVariablesWindows.html

I like to achieve, that for example all *.txt files under a certain directory like c:\temp (including all *.txt files in subdirectories) will be excluded.

I would write the rule like that:

c:\temp\**\*.txt

Is that ok?  I'm afraid that all directories named like *.txt including all files under the directory will be excluded additionally...

If I wanted to do that, I would write it the following way (with additional backslash "\")

c:\temp\**\*.txt\

What irritates me, ist the following description in the link:

C:\foo\*.txt

C:\foo\*.txt

All files or folders contained in C:\foo named *.txt.

It is written that all files OR folders will be excluded.

Regards



This thread was automatically locked due to age.
Parents
  • Hello Robin H,

    as Sophos User930 said: Test it. Isn't always as simple as one might think though.

    I think you're right regarding the trailing backslash. SEC (the on-premise management console) and the Endpoint UI discern File and Folder exclusions and add respectively require the backslash if it's not there. I'm not familiar with Central's Admin UI but the Endpoint AV component made this file-or-folder distinction.

    Christian

Reply
  • Hello Robin H,

    as Sophos User930 said: Test it. Isn't always as simple as one might think though.

    I think you're right regarding the trailing backslash. SEC (the on-premise management console) and the Endpoint UI discern File and Folder exclusions and add respectively require the backslash if it's not there. I'm not familiar with Central's Admin UI but the Endpoint AV component made this file-or-folder distinction.

    Christian

Children
No Data