CN106060063B - A kind of filter method and device for internet site front end logic entrance - Google Patents

A kind of filter method and device for internet site front end logic entrance 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
page elements
internet site
identity type
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.)
Urumqi Bangbangjun 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. 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 page elements Function when trigger;Then on client real-time monitoring internet site page elements click event, when user trigger the page When a certain function of element, 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, search mark Know and whether there is identity type corresponding with the function of page elements in typelib, and if it exists, sends and execute recalls information to clothes Business device, server calls execution function event corresponding with the identity type;
Step 3, the execution function event that client executing step 2 is called, and inform user.
2. a kind of filter method for internet site front end logic entrance according to claim 1, which is characterized in that The function of the page elements, identity type corresponding with the function of page elements be it is customized, identity type is stored in mark In typelib.
3. a kind of filter method for internet site front end logic entrance according to claim 2, which is characterized in that It is described to execute the execution function event that function event is internet site storage, the execution function event and identity type pair It answers, corresponding relationship is customized.
4. a kind of filter device for internet site front end logic entrance characterized by comprising
Event interception module: interception movement, the triggering item of interception movement are pre-configured with by the event interception module of client Part is the triggering when user triggers the function of page elements;Then on client real-time monitoring internet site page elements point Event is hit, 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 carries out Analysis, and by whether there is mark corresponding with the function of page elements in event analysis calling module Search Flags typelib Type, and if it exists, event analysis calling module, which is sent, executes recalls information to server, and server calls mould by event analysis Block 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 informs User.
5. a kind of filter device for internet site front end logic entrance according to claim 4, which is characterized in that The function of the page elements, identity type corresponding with the function of page elements be it is customized, identity type is stored in mark In typelib.
6. a kind of filter device for internet site front end logic entrance according to claim 5, which is characterized in that It is described to execute the execution function event that function event is internet site storage, the execution function event and identity type pair It answers, corresponding relationship is customized.
CN201610472906.2A 2016-06-24 2016-06-24 A kind of filter method and device for internet site front end logic entrance 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 filter method and device for internet site front end logic entrance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610472906.2A CN106060063B (en) 2016-06-24 2016-06-24 A kind of filter method and device for internet site front end logic entrance

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 filter method and device for internet site front end logic entrance

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
CN111142982A (en) * 2018-11-02 2020-05-12 鸿合科技股份有限公司 Event execution method and device and electronic equipment
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 framework
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 framework
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
US11798028B2 (en) Systems and methods for monitoring malicious software engaging in online advertising fraud or other form of deceit
US10452843B2 (en) Self-adaptive application programming interface level security monitoring
CN103856446B (en) A kind of login method, device and open platform system
DE112020001038T5 (en) DETECTION OF PHISHING CAMPAIGNS
CN107846426B (en) Method and device for tracking user track in page access
CN110427331A (en) The method for automatically generating performance test script based on interface testing tool
DE102008016197A1 (en) Identify an application user as the source of a database activity
CN102982283A (en) System and method for killing protected malicious computer process
CN102831218A (en) Method and device for determining data in thermodynamic chart
CN111552633A (en) Interface abnormal call testing method and device, computer equipment and storage medium
CN106656919B (en) A kind of session analytic method and system based on Telnet agreement
US9843490B2 (en) Methods and systems for analytic code injection
CN106060063B (en) A kind of filter method and device for internet site front end logic entrance
CN109241733A (en) Crawler Activity recognition method and device based on web access log
CN112416730A (en) User internet behavior analysis method and device, electronic equipment and storage medium
CN106559498A (en) Air control data collection platform and its collection method
CN104980421A (en) Method and system for processing batch requests
CN102364897A (en) Gateway-level on-line network message detection filtering method and apparatus thereof
CN108924159A (en) The verification method and device in a kind of message characteristic identification library
CN110825594A (en) Data reporting and issuing method, client and server
CN111988360A (en) Session management method in cloud platform, storage medium and electronic device
CN111723083A (en) User identity identification method and device, electronic equipment and storage medium
CN110442582A (en) Scene detection method, device, equipment and medium
CN104346460B (en) Carry out the method, apparatus and browser client of file download
CN108418809A (en) Chat data processing method, device, computer equipment and storage medium

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
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