Settings are defined at the time of loading the Web Monitor as a parameter of the kaveLoadMonitor function. The settings can also be changed later by using the kaveSetMonitorSettings function.
The settings can be defined by one of the following data structures:
Structures KAV_WEB_MONITOR_SETTINGS and KAV_WEB_MONITOR_SETTINGS2 are obsolete and are left only for backwards compatibility.
KAV_WEB_MONITOR_SETTINGSDeprecated. The structure is left for backward compatibility only and contains the minimum of options supported by the Web Monitor at the time.
KAV_WEB_MONITOR_SETTINGS2Deprecated. The structure is left for backward compatibility. It adds the ability to specify custom webpage templates:
When the custom replacement page is not specified, one of the default built-in webpages is used to alert the user, who requested a malicious website or URL, that the access to the webpage has been denied or downloading of the file has been blocked.
KAV_WEB_MONITOR_SETTINGS3The structure is recommended for use and includes advanced settings to configure the Web Monitor. In addition to the settings supported by the KAV_WEB_MONITOR_SETTINGS2, the structure allows you to specify the scanning mode (see section "Scanning modes") and scanning timeout.
This data structure allows you to specify the path to custom web page template files used as replacement page. Replacement pages are returned by Web Monitor to the application requesting a malicious web site.
The following template files are available:
templ.html—shown when a user attempts to browse a malicious website or download an infected file.wmuf.html—shown when a user requests a malicious URL detected by the Web Malicious URL Filtering (WMUF) database.pup.html to be used as a replacement page when a user attempts to download a malicious file infected with a threat classified by one of the following detection types: KDT_ADWARE, KDT_PORNWARE, KDT_RISKWARE. For more information about supported detection types, see section "Detection types and severity".Do not remove the default web page template files from the /bin/loc/common directory. Missing template files cause KAV SDK initialization process to fail with KAV_E_MOD_NOT_FOUND error.
You can use placeholders when writing text messages in the template file for the web page. These placeholders will substitute for their values returned by the KAV Engine when the web page is displayed on the end-user computer.
The placeholders that can used in the template are described in the following table.
Placeholders for denial template
Placeholder |
Description |
|---|---|
|
The name of the first malicious object detected on the blocked web page. |
|
The URL address of the malicious object that has been blocked. |
|
A short representation of a long web address. For example, a short representation for a long URL such as:
may look as:
|
|
The time of the page access attempt. The time will be displayed in the current system settings format. Each template for the custom replacement web page requires specific template be used. Please make sure to use correct date placeholder.
|
If the Web Monitor settings are defined by means of the KAV_WEB_MONITOR_SETTINGS3 structure, the standard access denial page will be displayed.
For more information about the structures storing Web Monitor settings, see KAV_WEB_MONITOR_SETTINGS, KAV_WEB_MONITOR_SETTINGS2, and KAV_WEB_MONITOR_SETTINGS3.