[go: up one dir, main page]

CN106060063B - A kind of filtering method and device for front-end logical entry of Internet website - Google Patents

A kind of filtering method and device for front-end logical entry of Internet website Download PDF

Info

Publication number
CN106060063B
CN106060063B CN201610472906.2A CN201610472906A CN106060063B CN 106060063 B CN106060063 B CN 106060063B CN 201610472906 A CN201610472906 A CN 201610472906A CN 106060063 B CN106060063 B CN 106060063B
Authority
CN
China
Prior art keywords
function
event
execution
client
page element
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610472906.2A
Other languages
Chinese (zh)
Other versions
CN106060063A (en
Inventor
杜伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Taizhou Gaogao Technology Co.,Ltd.
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201610472906.2A priority Critical patent/CN106060063B/en
Publication of CN106060063A publication Critical patent/CN106060063A/en
Application granted granted Critical
Publication of CN106060063B publication Critical patent/CN106060063B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • H04L63/0227Filtering policies

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to a kind of internet barrages, and field is broadcast live, and especially relates to a kind of filter method and device for internet site front end logic entrance.It include: step 1, the click event of page elements on client real-time monitoring internet site intercepts the trigger action when user triggers a certain function of page elements;Step 2, the corresponding identity type of a certain function for the page elements that client is triggered according to user is analyzed, and analysis result is sent to server, and server calls execution function event corresponding with the identity type based on the analysis results;Step 3, the execution function event that client executing step 2 is called, and inform user.Therefore, it the present invention has the advantage that being directed to some function of website, after completing core function logic in script edit, does not need all logic entrances binding event, in the redundancy and maintenance cost that greatly reduced code.

Description

A kind of filter method and device for internet site front end logic entrance
Technical field
The present invention relates to a kind of internet barrages, and field is broadcast live, and especially relates to one kind and enters for internet site front end logic The filter method and device of mouth.
Background technique
In front end development field, most of websites are directed to some functions (such as: logging in), complete in script edit After core function logic, need all logic entrance binding event, complicated scene even can be one time by logical overwrite, Guarantee the normal of overall logic.This mode greatly increases the redundancy and maintenance cost of code.
Summary of the invention
The present invention mainly solves technical problem present in the prior art;It provides one kind and is directed to some function of website Can, after completing core function logic in script edit, does not need all logic entrances binding event, greatly reduce The redundancy of code and a kind of filter method and device for internet site front end logic entrance of maintenance cost.
Above-mentioned technical problem of the invention is mainly to be addressed by following technical proposals:
A kind of filter method for internet site front end logic entrance characterized by comprising
Step 1, interception movement is pre-configured with by client, the trigger condition of interception movement is when user triggers the page It is triggered when the function of element;Then on client real-time monitoring internet site page elements click event, when user trigger When a certain function of page elements, starting interception acts and intercepts the trigger action;
Step 2, the corresponding identity type of a certain function for the page elements that client is triggered according to user is analyzed, and Analysis result is sent to server, server calls execution function event corresponding with the identity type based on the analysis results;
Step 3, the execution function event that client executing step 2 is called, and inform user.
Preferably, the function of the page elements, identity type corresponding with the function of page elements are customized, mark Type is stored in identity type library.
Preferably, described to execute the execution function event that function event is internet site storage, the execution function thing Part is corresponding with identity type, and corresponding relationship is customized.
Preferably, it in the step 2, is carried out according to the corresponding identity type of a certain function of the page elements of user's triggering The specific method of analysis is: whether there is identity type corresponding with the function of page elements in Search Flags typelib, if depositing It is sending and is executing recalls information to server.
A kind of filter device for internet site front end logic entrance, comprising:
Event interception module: interception movement is pre-configured with by client, the trigger condition of interception movement is to work as user It is triggered when triggering the function of page elements;Then on client real-time monitoring internet site page elements click event, when When user triggers a certain function of page elements, starting interception acts and intercepts the trigger action;
Event analysis calling module: the corresponding identity type of a certain function for the page elements that client is triggered according to user It is analyzed, and server is sent to for result is analyzed by event analysis calling module, server passes through based on the analysis results Event analysis calling module calls execution function event corresponding with the identity type;
Execution module: client executes the execution function event that event analysis calling module calls by execution module, and Inform user.
Preferably, the function of the page elements, identity type corresponding with the function of page elements are customized, mark Type is stored in identity type library.
Preferably, described to execute the execution function event that function event is internet site storage, the execution function thing Part is corresponding with identity type, and corresponding relationship is customized.
Preferably, what the corresponding identity type of a certain function for the page elements that client is triggered according to user was analyzed Specific method is: whether there is identity type corresponding with the function of page elements in Search Flags typelib, and if it exists, sends Recalls information is executed to server.
Therefore, the present invention has the advantage that being directed to some function of website, core function is completed in script edit After logic, do not need all logic entrances binding event, in the redundancy and maintenance cost that greatly reduced code.
Detailed description of the invention
Fig. 1 is the method flow schematic diagram of invention.
Fig. 2 is the flow diagram of case 1 in the embodiment of the present invention 1.
Fig. 3 is the flow diagram of case 2 in the embodiment of the present invention 1.
Fig. 4 is structural block diagram of the invention.
Specific embodiment
Below with reference to the embodiments and with reference to the accompanying drawing the technical solutions of the present invention will be further described.
A kind of filter method for internet site front end logic entrance, comprising:
Step 1, interception movement is pre-configured with by client, the trigger condition of interception movement is when user triggers the page It is triggered when the function of element;Then on client real-time monitoring internet site page elements click event, when user trigger When a certain function of page elements, starting interception acts and intercepts the trigger action;Wherein, the function and the page of page elements The corresponding identity type of the function of element be it is customized, identity type is stored in identity type library.
Step 2, the corresponding identity type of a certain function for the page elements that client is triggered according to user is analyzed, and Analysis result is sent to server, server calls execution function event corresponding with the identity type based on the analysis results; The execution function event that function event is internet site storage is executed, the execution function event is corresponding with identity type, right It should be related to be customized.Specific method is: whether there is mark corresponding with the function of page elements in Search Flags typelib Type, and if it exists, send and execute recalls information to server.
Step 3, the execution function event that client executing step 2 is called, and inform user.
A kind of filter device for internet site front end logic entrance, comprising:
Event interception module: interception movement is pre-configured with by client, the trigger condition of interception movement is to work as user It is triggered when triggering the function of page elements;Then on client real-time monitoring internet site page elements click event, when When user triggers a certain function of page elements, starting interception acts and intercepts the trigger action;Wherein, the function of page elements Can, identity type corresponding with the function of page elements be it is customized, identity type is stored in identity type library.
Event analysis calling module: the corresponding identity type of a certain function for the page elements that client is triggered according to user It is analyzed, and server is sent to for result is analyzed by event analysis calling module, server passes through based on the analysis results Event analysis calling module calls execution function event corresponding with the identity type;Function event is executed to deposit for internet site The execution function event of storage, the execution function event is corresponding with identity type, and corresponding relationship is customized.Specific method is: It whether there is identity type corresponding with the function of page elements in Search Flags typelib, and if it exists, send to execute and call letter It ceases to server.
Execution module: client executes the execution function event that event analysis calling module calls by execution module, and Inform user.
Embodiment 1:
The present invention provides a kind of filter method for internet site front end logic entrance, comprising:
Step 1, interception movement is pre-configured with by client, the trigger condition of interception movement is when user triggers the page It is triggered when the function of element;Then on client real-time monitoring internet site page elements click event, when user trigger When a certain function of page elements, starting interception acts and intercepts the trigger action;Wherein, the function and the page of page elements The corresponding identity type of the function of element be it is customized, identity type is stored in identity type library.
Step 2, the corresponding identity type of a certain function for the page elements that client is triggered according to user is analyzed, and Analysis result is sent to server, server calls execution function event corresponding with the identity type based on the analysis results; The execution function event that function event is internet site storage is executed, the execution function event is corresponding with identity type, right It should be related to be customized.Specific method is: whether there is mark corresponding with the function of page elements in Search Flags typelib Type, and if it exists, send and execute recalls information to server.
Step 3, the execution function event that client executing step 2 is called, and inform user.
Case 1
It is as shown in Figure 2:
Step 1, the page initializes, and client monitors all page elements comprising filtration types.Step 2, page elements " individual center " in initialization, design filtration types are " login ",
It represents before this function enters and needs to verify login.
Step 3, when the user clicks " individual center ", directly intercepted by client, and intercept information is sent to server, If user is not logged in, server pop-up login frame simultaneously guides user to log in, and individual center is entered after logining successfully;If user It has been logged in that, server guidance user is directly entered individual center.
Case 2
It is as shown in Figure 3:
Step 1, client passes through the extension of external business logic, monitors the click event of all hyperlink.
Step 2, when the hyperlink (web sites function) that a chained address is "/join " is clicked by user, client can be certainly Dynamic to intercept, if subscriber data is not perfect, server pop-up data fills in frame and guides user's perfect information;If data is Through perfect, server then guides user to be directly entered the registration page.
Embodiment 2
The present invention provides a kind of filter device for internet site front end logic entrance, in the embodiment 1 Filter method for internet site front end logic entrance corresponds, and is not repeating herein.
Specific embodiment described herein is only an example for the spirit of the invention.The neck of technology belonging to the present invention The technical staff in domain can make various modifications or additions to the described embodiments or replace by a similar method In generation, however, it does not deviate from the spirit of the invention or beyond the scope of the appended claims.

Claims (6)

1.一种用于互联网网站前端逻辑入口的过滤方法,其特征在于,包括:1. a filtering method for the front-end logic entrance of an Internet website, is characterized in that, comprising: 步骤1,通过客户端预先配置拦截动作,该拦截动作的触发条件是当用户触发页面元素的功能时触发;然后客户端实时监测互联网网站上页面元素的点击事件,当用户触发页面元素的某一功能时,启动拦截动作并拦截该触发动作;Step 1, pre-configure the interception action through the client, the triggering condition of the interception action is to trigger when the user triggers the function of the page element; then the client monitors the click event of the page element on the Internet website in real time, and when the user triggers a certain page element function, start the interception action and intercept the trigger action; 步骤2,客户端根据用户触发的页面元素的某一功能对应的标识类型进行分析,搜索标识类型库中是否存在与页面元素的功能对应的标识类型,若存在,发送执行调用信息给服务器,服务器调用与该标识类型对应的执行函数事件;Step 2, the client analyzes the identification type corresponding to a certain function of the page element triggered by the user, searches whether there is an identification type corresponding to the function of the page element in the identification type library, and if so, sends the execution call information to the server. Call the execution function event corresponding to the identified type; 步骤3,客户端执行步骤2调用的执行函数事件,并告知用户。In step 3, the client executes the execution function event called in step 2, and informs the user. 2.根据权利要求1所述的一种用于互联网网站前端逻辑入口的过滤方法,其特征在于,所述页面元素的功能、与页面元素的功能对应的标识类型为自定义,标识类型存储在标识类型库中。2. a kind of filtering method for the front-end logic entrance of Internet website according to claim 1, is characterized in that, the function of described page element, the identification type corresponding to the function of page element are self-defined, and the identification type is stored in Identifies the type library. 3.根据权利要求2所述的一种用于互联网网站前端逻辑入口的过滤方法,其特征在于,所述执行函数事件为互联网网站存储的执行函数事件,所述执行函数事件与标识类型对应,对应关系为自定义。3. a kind of filtering method for the front-end logic entrance of Internet website according to claim 2, it is characterized in that, described execution function event is the execution function event that Internet website stores, and described execution function event is corresponding with identification type, The corresponding relationship is custom. 4.一种用于互联网网站前端逻辑入口的过滤装置,其特征在于,包括:4. A filtering device for the front-end logical entrance of an Internet website, characterized in that, comprising: 事件拦截模块:通过客户端的事件拦截模块预先配置拦截动作,该拦截动作的触发条件是当用户触发页面元素的功能时触发;然后客户端实时监测互联网网站上页面元素的点击事件,当用户触发页面元素的某一功能时,启动拦截动作并拦截该触发动作;Event interception module: The interception action is pre-configured through the event interception module of the client. The triggering condition of the interception action is to trigger when the user triggers the function of the page element; then the client monitors the click event of the page element on the Internet website in real time, and when the user triggers the page When a function of the element is activated, the interception action is started and the trigger action is intercepted; 事件分析调用模块:客户端根据用户触发的页面元素的某一功能对应的标识类型进行分析,并通过事件分析调用模块搜索标识类型库中是否存在与页面元素的功能对应的标识类型,若存在,事件分析调用模块发送执行调用信息给服务器,服务器通过事件分析调用模块调用与该标识类型对应的执行函数事件;Event analysis calling module: The client analyzes the identification type corresponding to a certain function of the page element triggered by the user, and searches the identification type library through the event analysis calling module to see if there is an identification type corresponding to the function of the page element. The event analysis invocation module sends execution invocation information to the server, and the server invokes the execution function event corresponding to the identification type through the event analysis invocation module; 执行模块:客户端通过执行模块执行事件分析调用模块调用的执行函数事件,并告知用户。Execution module: The client analyzes the execution function event called by the calling module through the execution module execution event, and informs the user. 5.根据权利要求4所述的一种用于互联网网站前端逻辑入口的过滤装置,其特征在于,所述页面元素的功能、与页面元素的功能对应的标识类型为自定义,标识类型存储在标识类型库中。5. a kind of filtering device for the front-end logical entrance of Internet website according to claim 4, is characterized in that, the function of described page element, the identification type corresponding to the function of page element is self-definition, and the identification type is stored in Identifies the type library. 6.根据权利要求5所述的一种用于互联网网站前端逻辑入口的过滤装置,其特征在于,所述执行函数事件为互联网网站存储的执行函数事件,所述执行函数事件与标识类型对应,对应关系为自定义。6. a kind of filtering device for the front-end logic entrance of Internet website according to claim 5, is characterized in that, described execution function event is the execution function event of Internet website storage, and described execution function event is corresponding with identification type, The corresponding relationship is custom.
CN201610472906.2A 2016-06-24 2016-06-24 A kind of filtering method and device for front-end logical entry of Internet website Active CN106060063B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610472906.2A CN106060063B (en) 2016-06-24 2016-06-24 A kind of filtering method and device for front-end logical entry of Internet website

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610472906.2A CN106060063B (en) 2016-06-24 2016-06-24 A kind of filtering method and device for front-end logical entry of Internet website

Publications (2)

Publication Number Publication Date
CN106060063A CN106060063A (en) 2016-10-26
CN106060063B true CN106060063B (en) 2019-04-23

Family

ID=57166424

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610472906.2A Active CN106060063B (en) 2016-06-24 2016-06-24 A kind of filtering method and device for front-end logical entry of Internet website

Country Status (1)

Country Link
CN (1) CN106060063B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111142982B (en) * 2018-11-02 2024-11-26 鸿合科技股份有限公司 Event execution method and device, and electronic device
CN109783072A (en) * 2019-01-23 2019-05-21 深圳智链物联科技有限公司 Method for processing business, device, terminal device and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1639714A (en) * 2002-01-18 2005-07-13 伊迪蒂克公司 A highly redundant, high-reliability and high-performance platform logging/billing generation and collection subsystem
CN1318956C (en) * 2001-05-30 2007-05-30 Bea系统公司 System and method for software component plug-in program structure
CN101510881A (en) * 2009-03-30 2009-08-19 北京金山软件有限公司 Method and device for providing web page
CN103023906A (en) * 2012-12-20 2013-04-03 北京奇虎科技有限公司 Method and system aiming at remote procedure calling conventions to perform status tracking

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1318956C (en) * 2001-05-30 2007-05-30 Bea系统公司 System and method for software component plug-in program structure
CN1639714A (en) * 2002-01-18 2005-07-13 伊迪蒂克公司 A highly redundant, high-reliability and high-performance platform logging/billing generation and collection subsystem
CN101510881A (en) * 2009-03-30 2009-08-19 北京金山软件有限公司 Method and device for providing web page
CN103023906A (en) * 2012-12-20 2013-04-03 北京奇虎科技有限公司 Method and system aiming at remote procedure calling conventions to perform status tracking

Also Published As

Publication number Publication date
CN106060063A (en) 2016-10-26

Similar Documents

Publication Publication Date Title
US10795992B2 (en) Self-adaptive application programming interface level security monitoring
CN111752799B (en) Service link tracking method, device, equipment and storage medium
CN112073512B (en) Data processing method and device
CN103856446B (en) A kind of login method, device and open platform system
CN109842617A (en) Ad blocking method, apparatus and storage medium
CN104994104B (en) Server fingerprint mimicry and sensitive information mimicry method based on WEB security gateways
US20100229112A1 (en) Problem reporting system based on user interface interactions
CN109656792A (en) Applied performance analysis method, apparatus, computer equipment and storage medium based on network call log
CN107547310B (en) User behavior correlation analysis method and system based on bypass audit equipment
CN105872273A (en) Individual resource hiding communication method and system thereof
CN106060063B (en) A kind of filtering method and device for front-end logical entry of Internet website
CN110113358B (en) Method for identifying operation account of application system based on single sign-on
CN103269384A (en) Rich client abnormality processing method, processing device and processing system
CN111523074A (en) Acquisition system for dynamic page sensitive data of front-end rendering website
CN110825594A (en) Data reporting and issuing method, client and server
CN106559498A (en) Air control data collection platform and its collection method
US9843490B2 (en) Methods and systems for analytic code injection
CN105591747A (en) Auxiliary identity authentication method based on user network behavior characteristics
CN113672205B (en) Workflow framework based on business event driving
CN109347914A (en) A method and device for processing browser requests based on Python Flask and decorators
CN115643049A (en) Method for detecting mining action in real time based on encrypted flow analysis
CN111865978A (en) Method, device, device and medium for updating request identification of microservices
CN112099868A (en) A method and system for calling controls across browsers
CN105205073A (en) Network advertisement filtering method and system based on transmission layer
CN106411987B (en) File uploads monitoring method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240313

Address after: 830000, Room 17A, Building 17, Block A, Times Square Community, No. 59 Guangming Road, Tianshan District, Urumqi, Xinjiang Uygur Autonomous Region BD00244

Patentee after: Urumqi Bangbangjun Technology Co.,Ltd.

Country or region after: China

Address before: 430000 East Lake Development Zone, Wuhan City, Hubei Province, China Science and Technology Park Innovation Enterprise Base 2 A Unit 2

Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20241028

Address after: Room 210, Building C, Sanmen Decoration City, No.1 Xingye Street, Hairun Street, Sanmen County, Taizhou City, Zhejiang Province, China 318000

Patentee after: Taizhou Gaogao Technology Co.,Ltd.

Country or region after: China

Address before: 830000, Room 17A, Building 17, Block A, Times Square Community, No. 59 Guangming Road, Tianshan District, Urumqi, Xinjiang Uygur Autonomous Region BD00244

Patentee before: Urumqi Bangbangjun Technology Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right