ZennoLab

Automate everything

User Tools

Site Tools


en:traffic

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:traffic [2017/08/02 11:29] (current)
copper12 created
Line 1: Line 1:
 +====== Traffic monitor ======
 +
 +Traffic monitor is tool for traffic filtering. This tool allows to analyze traffic, browse the request data, block undesirable requests, thereby increasing speed and stability of the templates.
 +For request filtering the action "​Content policy"​ is using, which customizes the behaviour of traffic monitor and has three operating modes: "​Without limits",​ "White list", "Black list"​. ​
 +Filtering lists may contain domains and regular expressions for address. Content filtering policies are separated by instances, each instance can have own policy.
 +
 +===== Window "​Traffic"​ =====
 +
 +Window Traffic is intended for viewing and request analysis sended by browser or separated get and post requests. The Traffic Monitor window is enabled in the drop-down menu of Window - Traffic
 +
 +{{:​en:​1.png|}}
 +
 +Window interface is organized as table with columns: request status, request method, request address.
 +
 +{{:​en:​2.png|}}
 +
 +To the right of the table are the buttons: "​Settings of content policy",​ "Group by domain",​ "​Search bar", "Sort by default","​Autoscrolling",​ "Clear out".
 +
 +===== Working with Content Policy =====
 +
 +When you right-click on a line, in the table a context menu will open
 +
 +{{:​en:​context_menu.png|}}
 +
 +Context menu has adding items of domains and regular expressions,​ composed of query addresses, into black or white list. In this case, either a black or white list can be used at the same time. Also, the context menu has items for copying the address and data of the request.
 +
 +When you add data to the white list or blacklist, a Content Policy action is created, in which the current list of domains and regular expressions is generated.
 +
 +{{:​en:​content_policy.png|}}
 +
 +The "​Content Policy Settings"​ button, located in the right panel of the "​Traffic"​ window, opens a form that displays the current list of domains and regular expressions.
 +
 +{{:​en:​content_policy_settings.png|}}
 +
 +If you apply changes to this form, the Content Policy action will also be created, or updated if it is the last created.
 +
 +{{:​en:​white_list.png|}}
 +
 +Besides, in the "​Browser"​ form, a table with the current content policy has been added.
 +
 +{{:​en:​adding_of_table.png|}}
 +
 +With the content policy displayed above, the transition to ya.ru will look like this:
 +
 +{{:​en:​ya.ru.png|}}
 +
 +Requests with a red cross in status have been blocked in accordance with the current content policy.
 +
 +===== Use in C # code =====
 +
 +The content policy can be changed via C # code. For this, the method is implemented in ZennoLab.CommandCenter.Instance:​
 +<code sharp>
 +void SetContentPolicy(string policy, IEnumerable<​string>​ domains = null, IEnumerable<​string>​ regexs = null)
 +</​code>​
 +At first, method takes parameter, which reflects the mode of operation: "​DirectLoad",​ "​WhiteList",​ "​BlockList"​. The following options are optional, a list of domains and a list of regular expressions.
 +
 +
  
en/traffic.txt ยท Last modified: 2017/08/02 11:29 by copper12