Contents
- Web Control
Web Control
The Kaspersky Security functionality described in this section is available only if the application is installed on a virtual machine with a Windows desktop operating system.
Web Control allows controlling actions by LAN users, by restricting or blocking access to web resources. A web resource is an individual web page or several web pages, or a website or several websites that have a common feature.
Web Control can monitor the web resources, which are accessed through secure connections.
Web Control provides the following features:
- Saving traffic.
Traffic is controlled by restricting or blocking downloads of multimedia files, or by restricting or blocking access to web resources that are unrelated to users' job responsibilities.
- Differentiation of access by content categories of web resources.
To save traffic and reduce potential losses from the misuse of employee time, you can restrict or block access to specified categories of web resources (for example, block access to sites that belong to the "News media" category).
- Centralized control of access to web resources.
When using Kaspersky Security Center, personal and group settings of access to web resources are available.
All restrictions and blocks that are applied to access to web resources are implemented as web resource access rules.
This section describes how to configure Web Control settings using the Administration Console and the Light Agent for Windows local interface. You can also configure the Web Control settings using the Web Console when creating or modifying the Light Agent for Windows policy settings (Application Settings → Endpoint control → Web Control).
About web resource access rules
A web resource access rule is a set of filters and actions that Kaspersky Security performs when the user visits web resources that are described in the rule during the time span that is indicated in the rule schedule. Filters allow you to precisely specify a pool of web resources to which access is controlled by the Web Control component.
The application provides the following filters:
- Filter by content. Web Control categorizes web resources by content and data type. You can control user access to web resources with content and data types of certain categories. When the users visit web resources that belong to the selected content category and / or data type category, Kaspersky Security performs the action that is specified in the rule.
- Filter by web resource addresses. You can control user access to all web resource addresses or to individual web resource addresses and / or groups of web resource addresses.
If filtering by content and filtering by web resource addresses are specified, and the specified web resource addresses and / or groups of web resource addresses belong to the selected content categories or data type categories, Kaspersky Security does not control access to all web resources in the selected content categories and / or data type categories. Instead, the application controls access only to the specified web resource addresses and / or groups of web resource addresses.
- Filter by names of users and user groups. You can specify the names of users and / or groups of users for which access to web resources is controlled according to the rule.
- Rule schedule. You can specify the rule schedule. The rule schedule determines the time span during which Kaspersky Security monitors access to web resources covered by the rule.
After Kaspersky Security is installed, the following web resource access rules are created by default:
- Scripts and stylesheets. The rule grants all users access at all times to web resources whose addresses contain the names of files with the css, js, or vbs extensions. For example: http://www.example.com/style.css, http://www.example.com/style.css?mode=normal.
- Default rule. The rule grants all users access to any web resources at any time.
Web resource content categories
To restrict access of virtual machine users to web resources, the web resource content categories listed below can be used.
The order of the listed categories does not reflect their relative significance or occurrence on the Internet. The names of the categories are conventional and used only for in Kaspersky applications and websites. The names do not necessarily correspond to the meanings assigned to them under applicable law. One web resource may belong to several categories at a time.
Weapons, explosives, pyrotechnics
Gambling, lotteries, sweepstakes
Online stores, banks, payment systems
Religions, religious associations
Page topEnabling and disabling Web Control
By default, Web Control is enabled. You can disable Web Control, if necessary.
To enable or disable Web Control in Kaspersky Security Center:
- Open Kaspersky Security Center Administration Console.
- In the Managed devices folder of the console tree, open the folder with the name of the administration group to which the relevant protected virtual machines belong.
- In the workspace, select the Policies tab.
- Select a Light Agent for Windows policy in the list of policies and open the Properties: <Policy name> by double-clicking.
- In the policy properties window, select the Web Control section in the list on the left.
- In the right part of the window, do one of the following:
- If you want to enable Web Control component, select the Web Control check box.
- If you want to disable Web Control component, clear the Web Control check box.
- Click the Apply button.
In the local interface of Light Agent for Windows, you can enable or disable a component in two ways:
- On the Protection and Control tab of the main application window.
- From the application settings window.
To enable or disable Web Control on the Protection and Control tab of the main application window:
- On the protected virtual machine, open the main application window.
- Select the Protection and Control tab.
- Open the Endpoint control section.
- Open the context menu of the Web Control item and perform one of the following actions:
- To enable Web Control, select Enable in the menu.
- To disable Web Control, select Disable in the menu.
If this menu item is unavailable, this means that you cannot enable or disable this component because the policy-defined setting is applied to protected virtual machines within the administration group.
To enable or disable Web Control from the application settings window:
- On the protected virtual machine, open the application settings window.
- In the left part of the window, in the Endpoint control section, select Web Control.
In the right part of the window, the Web Control component’s settings are displayed.
If component settings are unavailable, this means that you cannot enable or disable this component because the policy-defined setting is applied to protected virtual machines within the administration group.
- Do one of the following:
- If you want to enable Web Control component, select the Enable Web Control check box.
- If you want to disable Web Control component, clear the Enable Web Control check box.
- To save changes, click the Save button.
Actions with web resource access rules
You can perform the following actions to configure web resource access rules:
- Create a new rule.
- Edit a rule.
- Edit rule priority.
- Test a rule.
- Enable and disable a rule.
- Delete a rule.
Creating and editing a web resource access rule
To add or edit the web resource access rule in Kaspersky Security Center:
- Open Kaspersky Security Center Administration Console.
- In the Managed devices folder of the console tree, open the folder with the name of the administration group to which the relevant protected virtual machines belong.
- In the workspace, select the Policies tab.
- Select a Light Agent for Windows policy in the list of policies and open the Properties: <Policy name> by double-clicking.
- In the policy properties window, select the Web Control section in the list on the left.
- In the right part of the window, do one of the following:
- To create a new rule, click the Add button.
- If you want to edit the rule, select it in the list of rules and click the Edit button.
- In the Web resource access rule window that opens, in the Name field, enter or edit the name of the rule.
- From the Filter content drop-down list, select the required option:
- Any content.
- By content categories.
- By types of data.
- By content categories and types of data.
If an option other than Any content is selected, a section for selecting content categories and / or data type categories opens. Select the check boxes next to the names of the necessary content categories and/or data type categories.
Selecting the check box next to the name of a content category and/or data type category means that the application applies the rule to control access to web resources that belong to the selected content categories and/or data type categories.
- From the Apply to addresses drop-down list, select the required option:
- To all addresses.
- To individual addresses.
If the To individual addresses option is selected, a section opens where you create a list of web resources. You can create and edit the list of web resources by using the Add, Edit, and Delete buttons. To create a list of web resource addresses, you can also use web resource address masks.
After creating a list of web resource addresses, you can export it to file so you can later import this list from file.
- Select the Specify users and/or groups check box and click the Select button.
The standard Select Users or Groups window in Microsoft Windows opens.
- Define or edit the list of users and/or groups of users for whom access to the web resources described by the rule is allowed or restricted, and click OK.
- In the Action drop-down list, select the necessary item:
- Allow. If this value is selected, the application allows access to web resources that match the settings of the rule.
- Block. If this value is selected, the application blocks access to web resources that match the settings of the rule.
- Warn. If this value is selected, the application displays a message to warn that a web resource is unwanted when the user attempts to access web resources that match the settings of the rule. By using links from the warning message, the user can obtain access to the requested web resource.
- In the Rule schedule drop-down list that opens, select the name of the necessary schedule or create a new schedule that is based on the selected rule schedule. To do this, perform the following actions:
- Click the Settings button next to the Rule schedule drop-down list.
- To supplement the rule schedule with a time interval, during which the rule does not apply, in the Rule schedule window that opens, in the table that shows the rule schedule, click the table cells that correspond to the time and day of the week that you want to select.
The color of the cells turns gray.
- To substitute a time span during which the rule applies with a time span during which the rule does not apply, click the gray cells in the table which correspond to the time and day of the week that you want to select.
The color of the cells turns green.
- If you are creating a rule schedule that is based on the schedule of the Always rule that is created by default, click OK or Save as. If you are creating a rule schedule based on the schedule of a rule that was not created by default, click Save as.
- In the Rule schedule name window that opens, enter the name of the rule schedule or leave the default name.
- Click OK in the Rule schedule name window.
- In the Web resource access rule window, click OK.
- Click the Apply button.
To add or edit the web resource access rule in the local interface:
- On the protected virtual machine, open the application settings window.
- In the left part of the window, in the Endpoint control section, select Web Control.
In the right part of the window, the Web Control component’s settings are displayed.
If the settings in the local interface are not available, this means that the values of settings defined by the policy are used for all protected virtual machines of the administration group.
- Complete steps 6–14 of the previous instructions.
- To save changes, click the Save button.
Changing the priority web resource access rules
The priority of a rule is defined by its position in the Access rules sorted by priority table in the Web Control settings window. The first rule in the table has the highest priority.
If the web resource that the virtual machine user attempts to access matches the parameters of several rules, the application performs an action according to the rule with the highest priority.
You can raise or lower the priority of any web resource access rule except for the "Default rule", which always has the lowest priority and is located at the end of the list of rules.
To change the priority of a web resource access rule in Kaspersky Security Center:
- Open Kaspersky Security Center Administration Console.
- In the Managed devices folder of the console tree, open the folder with the name of the administration group to which the relevant protected virtual machines belong.
- In the workspace, select the Policies tab.
- Select a Light Agent for Windows policy in the list of policies and open the Properties: <Policy name> by double-clicking.
- In the policy properties window, select the Web Control section in the list on the left.
- In the right part of the window, in the Access rules sorted by priority table, select the rule whose priority you want to change, and use the Move up and Move down buttons to move the rule to the necessary position.
- Click the Apply button.
To change the priority of a web resource access rule in the local interface:
- On the protected virtual machine, open the application settings window.
- In the left part of the window, in the Endpoint control section, select Web Control.
In the right part of the window, the Web Control component’s settings are displayed.
If the settings in the local interface are not available, this means that the values of settings defined by the policy are used for all protected virtual machines of the administration group.
- In the Access rules sorted by priority table, select the rule whose priority you want to change, and use the Move up and Move down buttons to move the rule to the necessary position.
- To save changes, click the Save button.
Testing web resource access rules
In the local interface, you can check the consistency of rules by using the Rules diagnostics function.
To test the web resource access rules:
- On the protected virtual machine, open the application settings window.
- In the left part of the window, in the Endpoint control section, select Web Control.
In the right part of the window, the Web Control component’s settings are displayed.
- In the lower part of the window, click the Diagnostics button.
The Rules diagnostics window opens.
- Fill in the fields in the Conditions section:
- If you want to test the rules that the application uses to control access to a specific web resource, select the Specify address check box. Enter the address of the web resource in the field below.
- If you want to test the rules that the application uses to control access to web resources for specific users or groups of users, specify the user name or user group name. To do this, perform the following actions:
- Select the Specify users and/or groups check box and click the Select button.
The standard Select Users or Groups window in Microsoft Windows opens.
- In the Select Users or Groups window in Microsoft Windows, specify the relevant user or user group and click OK.
- Select the Specify users and/or groups check box and click the Select button.
- If you want to test the rules that the application uses to control access to web resources of specified content categories and/or data type categories, from the Filter content drop-down list, select the required option (By content categories, By types of data, or By content categories and types of data), and select check boxes next to the names of the relevant content categories and/or categories of data types.
- If you want to test the rules with account of the time and day of the week when an attempt is made to access the web resource(s) that are specified in the rule diagnostics conditions, select the Include time of access attempt check box. Specify the day of the week and time on the right.
- Click the Validate button.
A completed rule test is followed by a message with information about the action that is taken by the application, according to the first rule that is triggered on the attempt to access the specified web resource(s) (allow, block, or warn). All triggered rules are tested next.
Test completion is followed by a message on the right of the Validate button with information about the action that is taken by the application, according to the first rule that is triggered on the attempt to access the specified web resource(s). The first rule to be triggered is the one with a rank on the list of Web Control rules which is higher than that of other rules meeting the diagnostics conditions. The table in the lower part of the Rules diagnostics window lists the remaining triggered rules, specifying the action taken by the application. The rules are listed in the order of declining priority.
Page topEnabling and disabling a web resource access rule
All predefined web resource access rules have the Enabled status. If a web resource access rule is enabled, Web Control applies this rule.
A new web resource access rule also has the Enabled status after it is created.
You can disable any web resource access rule except the "Default rule". If a web resource access rule is disabled, Web Control temporarily stops applying this rule.
To enable or disable a web resource access rule in Kaspersky Security Center:
- Open Kaspersky Security Center Administration Console.
- In the Managed devices folder of the console tree, open the folder with the name of the administration group to which the relevant protected virtual machines belong.
- In the workspace, select the Policies tab.
- Select a Light Agent for Windows policy in the list of policies and open the Properties: <Policy name> by double-clicking.
- In the policy properties window, select the Web Control section in the list on the left.
- In list of rules in the right part of the window, select the rule that you want to enable or disable.
- In the Status column, open the context menu and select one of the following values:
- On if you want to enable use of the rule.
- Off if you want to disable use of the rule.
- Click the Apply button.
To enable or disable a web resource access rule in the local interface:
- On the protected virtual machine, open the application settings window.
- In the left part of the window, in the Endpoint control section, select Web Control.
In the right part of the window, the Web Control component’s settings are displayed.
If the settings in the local interface are not available, this means that the values of settings defined by the policy are used for all protected virtual machines of the administration group.
- Complete steps 6–7 of the previous instructions.
- To save changes, click the Save button.
Removing web resource access rules
To delete a web resource access rule using Kaspersky Security Center:
- Open Kaspersky Security Center Administration Console.
- In the Managed devices folder of the console tree, open the folder with the name of the administration group to which the relevant protected virtual machines belong.
- In the workspace, select the Policies tab.
- Select a Light Agent for Windows policy in the list of policies and open the Properties: <Policy name> by double-clicking.
- In the policy properties window, select the Web Control section in the list on the left.
- In the right part of the window, in the list of web resource access rules, select the rule that you want to delete, and click the Delete button.
The selected rule will be deleted from the list of rules.
You cannot delete a predefined Default rule.
- Click the Apply button.
To delete a web resource access rule in the local interface:
- On the protected virtual machine, open the application settings window.
- In the left part of the window, in the Endpoint control section, select Web Control.
In the right part of the window, the Web Control component’s settings are displayed.
If the settings in the local interface are not available, this means that the values of settings defined by the policy are used for all protected virtual machines of the administration group.
- In the list of web resource access rules, select the rule that you want to delete, and click the Delete button.
The selected rule will be deleted from the list of rules.
You cannot delete a predefined Default rule.
- To save changes, click the Save button.
Rules for creating masks for web resource addresses
Using a web resource address mask (hereinafter also referred to as simply "address mask") may be useful if you need to enter numerous similar web resource addresses when creating a web resource access rule. If crafted well, one address mask can replace a large number of web resource addresses.
When creating an address mask, adhere to the following rules:
- The
*
character replaces any sequence that contains zero or more characters.For example, if you enter the *abc* address mask, the access rule is applied to all web resource addresses that contain the sequence abc. Example: http://www.example.com/page_0-9abcdef.html.
The
?
character is treated as a question mark.To include the
*
character in the address mask, you need to enter the*
character twice. - The
www.
character sequence at the start of the address mask is interpreted as a*.
sequence.Example: the address mask www.example.com is treated as *.example.com.
- If an address mask does not start with the
*
character, the content of the address mask is equivalent to the same content with the*.
prefix. - A sequence of
*.
characters at the beginning of an address mask is interpreted as*.
or an empty string.Example: the address mask http://www.*.example.com covers the address of the web resource http://www2.example.com.
- If an address mask ends with a character other than
/
or*
, the content of the address mask is equivalent to the same content with the/*
postfix.Example: the address mask http://www.example.com covers such addresses as http://www.example.com/abc, where a, b, and c are any characters.
- If an address mask ends with the
/
character, the content of the address mask is equivalent to the same content with the /*.
postfix. - The character sequence
/*
at the end of an address mask is interpreted as/*
or an empty string. - Web resource addresses are verified against an address mask, taking into account the protocol (http or https):
- If the address mask contains no network protocol, this address mask covers addresses of web resources with any network protocol.
Example: the address mask example.com covers the web resource addresses http://example.com and https://example.com.
- If the address mask contains a network protocol, this address mask only covers web resource addresses with the same network protocol as that of the address mask.
Example: the address mask http://*.example.com covers the web resource address http://www.example.com but does not cover https://www.example.com.
- If the address mask contains no network protocol, this address mask covers addresses of web resources with any network protocol.
- An address mask that is in double quotes is treated without considering any additional replacements, except the
*
character if it has been initially included in the address mask. In other words, rules 5 and 7 do not apply to such address masks (see examples 14–18 in the table below). - The user name and password, connection port, and character case are not taken into account during comparison with the address mask of a web resource.
Examples of how to use rules for creating address masks
No.
Address mask
Address of web resource to verify
Does the address match the address mask?
Comment
1
*.example.com
http://www.123example.com
No
See rule 1.
2
*.example.com
http://www.123.example.com
Yes
See rule 1.
3
*example.com
http://www.123example.com
Yes
See rule 1.
4
*example.com
http://www.123.example.com
Yes
See rule 1.
5
http://www.*.example.com
http://www.123example.com
No
See rule 1.
6
www.example.com
http://www.example.com
Yes
See rules 2, 1.
7
www.example.com
https://www.example.com
Yes
See rules 2, 1.
8
http://www.*.example.com
http://123.example.com
Yes
See rules 2, 4, 1.
9
www.example.com
http://www.example.com/abc
Yes
See rules 2, 5, 1.
10
example.com
http://www.example.com
Yes
See rules 3, 1.
11
http://example.com/
http://example.com/abc
Yes
See rule 6.
12
http://example.com/*
http://example.com
Yes
See rule 7.
13
http://example.com
https://example.com
No
See rule 8.
14
"example.com"
http://www.example.com
No
See rule 9.
15
"http://www.example.com"
http://www.example.com/abc
No
See rule 9.
16
"*.example.com"
http://www.example.com
Yes
See rules 1, 9.
17
"http://www.example.com/*"
http://www.example.com/abc
Yes
See rules 1, 9.
18
"www.example.com"
http://www.example.com; https://www.example.com
Yes
See rules 9, 8.
19
www.example.com/abc/123
http://www.example.com/abc
No
An address mask contains more data than the address of a web resource.
Exporting and importing the list of web resource addresses
If you created a list of web resource addresses when creating a web resource access rule, you can export it to a TXT file. You can subsequently import the list from this file to avoid creating a new list of web resource addresses manually when configuring an access rule. The option of exporting and importing the list of web resource addresses may be useful if, for example, you create access rules with similar parameters.
To export a list of web resource addresses to a file in Kaspersky Security Center:
- Open Kaspersky Security Center Administration Console.
- In the Managed devices folder of the console tree, open the folder with the name of the administration group to which the relevant protected virtual machines belong.
- In the workspace, select the Policies tab.
- Select a Light Agent for Windows policy in the list of policies and open the Properties: <Policy name> by double-clicking.
- In the policy properties window, select the Web Control section in the list on the left.
- In the right part of the window, in the list of rules, select the rule whose list of web resource addresses you want to export to a file.
- Click the Edit button.
The Web resource access rule window opens.
A list of web resource addresses to which the rule applies appears under the Apply to addresses drop-down list.
- If you do not want to export the entire list of web resource addresses, but rather just a part of it, select the required web resource addresses.
- To the right of the field with the list of web resource addresses, click the
button.
The action confirmation window opens.
- Do one of the following:
- If you want to export only the selected items of the web resource address list, in the action confirmation window, click the Yes button.
- If you want to export all items of the list of web resource addresses, in the action confirmation window, click the No button.
The standard Save as window of Microsoft Office opens.
- Select the file to which you want to export the list of web resource addresses, and click the Save button.
To export a list of web resource addresses to a file in the local interface:
- On the protected virtual machine, open the application settings window.
- In the left part of the window, in the Endpoint control section, select Web Control.
In the right part of the window, the Web Control component’s settings are displayed.
- Complete steps 6–11 of the previous instructions.
If the settings in the local interface are not available, this means that the values of settings defined by the policy are used for all protected virtual machines of the administration group.
To import the list of web resource addresses from a file to a rule in Kaspersky Security Center:
- Open Kaspersky Security Center Administration Console.
- In the Managed devices folder of the console tree, open the folder with the name of the administration group to which the relevant protected virtual machines belong.
- In the workspace, select the Policies tab.
- Select a Light Agent for Windows policy in the list of policies and open the Properties: <Policy name> by double-clicking.
- In the policy properties window, select the Web Control section in the list on the left.
In the right part of the window,
- Do one of the following:
- To create a new rule, click the Add button.
- If you want to edit a rule, select it in the list of rules and click the Edit button.
The Web resource access rule window opens.
- If you are creating a new web resource access rule, select To individual addresses from the Apply to addresses drop-down list.
- To the right of the field with the list of web resource addresses, click the
button.
If you are creating a new rule, the standard Microsoft Windows Open file window opens.
If you are editing a rule, a window requesting your confirmation opens.
- If you are editing a web resource access rule, do one of the following actions in the action confirmation window:
- If you want to add imported items of the list of web resource addresses to the existing ones, click the Yes button.
- If you want to delete the existing items of the list of web resource addresses and to add the imported ones, click the No button.
The standard Open file window in Microsoft Windows opens.
- In the Open file window in Microsoft Windows, select a file with a list of web resource addresses to import and click the Open button.
The imported list of web resource addresses appears in the Web resource access rule window under the Apply to addresses drop-down list.
- In the Web resource access rule window, click OK.
- Click the Apply button.
To import the list of web resource addresses from a file to a rule in the local interface:
- On the protected virtual machine, open the application settings window.
- In the left part of the window, in the Endpoint control section, select Web Control.
In the right part of the window, the Web Control component’s settings are displayed.
If the settings in the local interface are not available, this means that the values of settings defined by the policy are used for all protected virtual machines of the administration group.
- Complete steps 6–11 of the previous instructions.
- To save changes, click the Save button.
Editing templates of Web Control messages
Depending on the action defined in the properties of web resource access rules, the application displays a message of one of the following types when a virtual machine user attempts to access web resources (the HTTP server response is replaced by an HTML page with the appropriate message):
- Warning message. This message warns the user that a website is potentially harmful and/or does not comply with the corporate policy. The application displays a warning message if the Warn option is selected from the Action drop-down list in the properties of the rule that describes this website.
If the user believes that the warning is mistaken, the user may click the link from the warning message to open a pre-generated complaint message and send it to the corporate LAN administrator.
- Message informing of blocking of a web resource. The application displays a message that informs that a web resource is blocked, if the Block option is selected from the Action drop-down list in the properties of the rule that describes this web resource.
If the user believes that the web resource was blocked by mistake, the user may click the link from the web resource blocking notification to open a pre-generated complaint message and send it to the corporate LAN administrator.
Special templates are provided for the warning message, web resource blocking notification, and complaint message sent to the corporate LAN administrator. You can modify their content.
To modify a Web Control message template in Kaspersky Security Center:
- Open Kaspersky Security Center Administration Console.
- In the Managed devices folder of the console tree, open the folder with the name of the administration group to which the relevant protected virtual machines belong.
- In the workspace, select the Policies tab.
- Select a Light Agent for Windows policy in the list of policies and open the Properties: <Policy name> by double-clicking.
- In the policy properties window, select the Web Control section in the list on the left.
- In the right part of the window, click the Templates button.
- In the Message templates window that opens, do one of the following:
- If you want to edit the template for the message that warns about a possibly dangerous website, select the Warning tab.
- If you want to edit the template of the message that informs the user that access to a website is blocked, select the Blocking tab.
- To modify the complaint template that is sent to the LAN administrator, select the Complaint tab.
- Edit the message template. To do this, use the Default and Variables buttons.
- Click OK in the Message templates window.
- Click the Apply button.
To modify a Web Control message template in the local interface:
- On the protected virtual machine, open the application settings window.
- In the left part of the window, in the Endpoint control section, select Web Control.
In the right part of the window, the Web Control component’s settings are displayed.
If the settings in the local interface are not available, this means that the values of settings defined by the policy are used for all protected virtual machines of the administration group.
- Complete steps 6–9 of the previous instructions.
- To save changes, click the Save button.