Exclusions

In the Exclusions section, you can specify the list of files and folders to exclude from the anti-virus check performed by Dr.Web Agent Scanner.

info

Before adding any exclusions, make sure to check recommendations on virus scanning for 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 meant to help you improve the system performance in the presence of anti-virus software.

To edit lists of files and paths excluded from scan

1.In the Excluded paths and files line, specify a path to corresponding file or folder.

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.A direct path in the explicit form to the excluded object. Note that:

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

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

A backslash \ (or forward slash / in 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 Unix-like OS) means that all subfolders of the selected folder are excluded from scanning.

For Windows: C:\Windows instructs to skip scanning files of the C:\Windows folder and all its subfolders.

For Unix-like OS: /etc instructs to skip scanning files of the /etc folder and all its subfolders.

2.Masks of objects, excluded from the scan. The ? and the * symbols can be used to specify masks.

For Windows: C:\Windows\*\*.dll instructs to skip scanning all files with the dll extension in all subfolders of the C:\Windows folder.

For Unix-like OS: /etc/*/*.pub instructs to skip scanning all files with the pub extension in all subfolders of the /etc folder.

3.Environment variables set in the operating system as a part of path to objects to be excluded from the scan.

For Windows: %WINDIR%\SysWOW64\ instructs to skip scanning all files in the SysWOW64 subfolder of the C:\Windows folder.

For Unix-like OS: /home/*/network instructs to skip scanning all files in the network subfolder of the /home folder.

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

The syntax of regular expressions used for excluding paths from scanning is as follows:

qr{<expression>}<flags>

As a flag mostly the character i is used. It instructs "to ignore letter case difference".

Examples of specifying excluded paths through regular expressions

Regular expression

Meaning

qr{\\pagefile\.sys$}i

skip scanning Windows OS swap files

qr{\\notepad\.exe$}i

skip scanning notepad.exe files

qr{^C:}i

skip scanning disk C:

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

skip scanning WINNT folders on all disks

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

skip scanning disk C and WINNT folders on all disks

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

skip scanning the c:\dir1\dir2\file.ext file

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

skip scanning file.ext, if it is located in the c:\dir1\dir2 folder and its subfolders

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

skip scanning c:\dir1\dir2 and its subfolders

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

skip scanning the dir subfolder located in any folder, but scan its subfolders

qr{dir\\}i

skip scanning the dir subfolder located in any folder and its subfolders

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