Exclusions

In the Exclusions section, you can specify a list of files and folders to be excluded from a remote anti-virus scan performed by Dr.Web Agent Scanner.

info

Exclusions can be specified only for a custom scan.

 

Before adding any exclusions, make sure to check out recommendations on using anti-virus software on computers running Windows OS. The information can be found at https://support.microsoft.com/en-us/topic/virus-scanning-recommendations-for-enterprise-computers-that-are-running-windows-or-windows-server-kb822158-c067a732-f24a-9079-d240-3733e39b40bc. This article is intended to help you improve system performance in the presence of anti-virus software.

To edit lists of files and paths excluded from scanning

1.Specify a path to a file or folder in the Excluded paths and files field.

2.To add a new line, click icon-item-add and specify a path in the new line.

3.To remove a path from the list, click icon-item-remove next to the corresponding line.

The list of paths excluded from the scan can contain the following elements:

1.Direct object path in the explicit form:

a backslash \ excludes the entire system disc in Windows OS,

a forward slash / excludes the entire root file system in a Unix-like OS,

a backslash \ (or forward slash / in a Unix-like OS) at the end of a path excludes the folder from scanning,

a path that does not end with a backslash \ (or forward slash / in a Unix-like OS) means that all subfolders of the selected folder are excluded from scanning.

Example for Windows: C:\Windows—do not scan files in the C:\Windows folder and all its subfolders.

Example for a Unix-like OS: /etc—do not scan files in the /etc folder and all its subfolders.

2.Masks for objects excluded from the scan. The ? and * characters can be used to specify masks.

Example for Windows: C:\Windows\*\*.dll—do not scan any files with the dll extension in all subfolders of the C:\Windows folder.

Example for a Unix-like OS: /etc/*/*.pub—do not scan any files with the pub extension in all subfolders of the /etc folder.

3.Environment variables set in the operating system as parts of paths to objects to be excluded from the scan.

Example for Windows: %WINDIR%\SysWOW64\—do not scan any files in the SysWOW64 subfolder of the C:\Windows folder.

Example for a Unix-like OS: /home/*/network—do not scan any files in the network subfolder of the /home folder.

4.Regular expression. Paths can be specified using regular expressions. Any file whose full name (with the path) corresponds to a regular expression is excluded from the scan.

Use the following regular expression syntax to specify excluded object paths:

qr{<expression>}<flags>

The most frequently specified flag is i: "ignore letter case difference".

Examples of specifying excluded paths using regular expressions

Regular expression

Value

qr{\\pagefile\.sys$}i

do not scan Windows OS swap files

qr{\\notepad\.exe$}i

do not scan notepad.exe files

qr{^C:}i

do not scan disk C:

qr{^.:\\WINNT\\}i

do not scan WINNT folders on all disks

qr{(^C:)|(^.:\\WINNT\\)}i

two previous cases combined

qr{^C:\\dir1\\dir2\\file\.ext$}i

do not scan c:\dir1\dir2\file.ext

qr{^C:\\dir1\\dir2\\(.+\\)?file\.ext$}i

do not scan file.ext if it is located in the c:\dir1\dir2 folder or its subfolders

qr{^C:\\dir1\\dir2\\}i

do not scan c:\dir1\dir2 and its subfolders

qr{dir\\[^\\]+}i

do not scan the dir subfolder located in any folder, but do scan its subfolders

qr{dir\\}i

do not scan the dir subfolder located in any folder and its subfolders

Regular expressions are briefly described in the Appendices document, in Appendix I. Regular Expressions Used in Dr.Web Enterprise Security Suite.