CN106060063A - Filtering method and device for internet website front end logic entries - Google Patents

Filtering method and device for internet website front end logic entries Download PDF

Info

Publication number
CN106060063A
CN106060063A CN201610472906.2A CN201610472906A CN106060063A CN 106060063 A CN106060063 A CN 106060063A CN 201610472906 A CN201610472906 A CN 201610472906A CN 106060063 A CN106060063 A CN 106060063A
Authority
CN
China
Prior art keywords
function
event
page elements
identity type
user
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.)
Granted
Application number
CN201610472906.2A
Other languages
Chinese (zh)
Other versions
CN106060063B (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 invention relates to the field of internet bullet screen live broadcast, and especially relates to a filtering method and device for internet website front end logic entries. The method comprises the steps that 1, a client monitors a click event of a page element on the internet website in real time, and a triggering action is intercepted when a user triggers a certain function of the page element; 2, the client carries out analysis according to a identifier type corresponding to the certain function of the page element triggered by the user and sends an analysis result to a server, and the server calls a function performance event corresponding to the identifier type according to the analysis result; and 3, the client performs the function performance event called in the step 2 and informs the user. The method and the device have the advantages that for a certain function of a website, after core function logic is finished in a script compiling process, it is unnecessary to bind all logic entries with the event, the redundancy and the maintenance cost of the code are greatly reduced.

Description

A kind of filter method for internet site front end logic entrance and device
Technical field
The present invention relates to a kind of live field of barrage, the Internet, especially relate to one and enter for internet site front end logic The filter method of mouth and device.
Background technology
At front end development field, most of websites are directed to some function (such as: log in), complete in script edit After core function logic, need all of logic entrance is bound event, complicated scene even can by logical overwrite one time, Ensure the normal of overall logic.This mode greatly adds redundancy and the maintenance cost of code.
Summary of the invention
The present invention mainly solves the technical problem existing for prior art;Provide one and be directed to some merit of website Can, after script edit completes core function logic, it is not necessary to all of logic entrance is bound event, is greatly reducing The redundancy of code and a kind of of maintenance cost are for the filter method of internet site front end logic entrance and device.
The above-mentioned technical problem of the present invention is mainly addressed by following technical proposals:
A kind of filter method for internet site front end logic entrance, it is characterised in that including:
Step 1, is pre-configured with interception action by client, and the trigger condition of this interception action is when user triggers page elements Function time trigger;Then client monitors the click event of page elements on internet site in real time, when user triggers the page During a certain function of element, start interception action and also intercept this trigger action;
Step 2, the identity type that a certain function of the page elements that client triggers according to user is corresponding is analyzed, and will divide Analysis result is sent to server, and server calls the execution function event corresponding with this identity type according to analysis result;
Step 3, the execution function event that client executing step 2 is called, and inform user.
Preferably, the function of the described page elements identity type corresponding with the function of page elements is self-defined, mark Type is stored in identity type storehouse.
Preferably, described execution function event is the execution function event of internet site storage, described execution function thing Part is corresponding with identity type, and corresponding relation is self-defined.
Preferably, in described step 2, carry out according to the identity type that a certain function of the page elements of user's triggering is corresponding The concrete grammar analyzed is: whether there is the identity type corresponding with the function of page elements in Search Flags typelib, if depositing , send and perform recalls information to server.
A kind of defecator for internet site front end logic entrance, including:
Event interception module: be pre-configured with interception action by client, the trigger condition of this interception action is when user triggers Trigger during the function of page elements;Then client monitors the click event of page elements on internet site in real time, works as user When triggering a certain function of page elements, start interception action and intercept this trigger action;
Event analysis calling module: the identity type that a certain function of the page elements that client triggers according to user is corresponding is carried out Analyzing, and by event analysis calling module, analysis result is sent to server, server passes through event according to analysis result Analyze calling module and call the execution function event corresponding with this identity type;
Perform module: client performs, by performing module, the execution function event that event analysis calling module calls, and informs User.
Preferably, the function of the described page elements identity type corresponding with the function of page elements is self-defined, mark Type is stored in identity type storehouse.
Preferably, described execution function event is the execution function event of internet site storage, described execution function thing Part is corresponding with identity type, and corresponding relation is self-defined.
Preferably, identity type corresponding to a certain function of the page elements that client triggers according to user is analyzed Concrete grammar is: whether there is the identity type corresponding with the function of page elements in Search Flags typelib, if existing, sends Perform recalls information to server.
Therefore, present invention have the advantage that and be directed to some function of website, script edit completes core function After logic, it is not necessary to all of logic entrance is bound event, greatly reducing redundancy and the maintenance cost of code.
Accompanying drawing explanation
Fig. 1 is the method flow schematic diagram of invention.
Fig. 2 is the schematic flow sheet of case 1 in the embodiment of the present invention 1.
Fig. 3 is the schematic flow sheet of case 2 in the embodiment of the present invention 1.
Fig. 4 is the structured flowchart of the present invention.
Detailed description of the invention
Below by embodiment, and combine accompanying drawing, technical scheme is described in further detail.
A kind of filter method for internet site front end logic entrance, including:
Step 1, is pre-configured with interception action by client, and the trigger condition of this interception action is when user triggers page elements Function time trigger;Then client monitors the click event of page elements on internet site in real time, when user triggers the page During a certain function of element, start interception action and also intercept this trigger action;Wherein, the function of page elements and page elements Identity type corresponding to function be self-defined, identity type is stored in identity type storehouse.
Step 2, the identity type that a certain function of the page elements that client triggers according to user is corresponding is analyzed, and Analysis result is sent to server, and server calls the execution function event corresponding with this identity type according to analysis result; Performing the execution function event that function event is internet site storage, described execution function event is corresponding with identity type, right Should be related to for self-defined.Concrete grammar is: whether there is the mark corresponding with the function of page elements in Search Flags typelib Type, if existing, sending and performing recalls information to server.
Step 3, the execution function event that client executing step 2 is called, and inform user.
A kind of defecator for internet site front end logic entrance, including:
Event interception module: be pre-configured with interception action by client, the trigger condition of this interception action is when user triggers Trigger during the function of page elements;Then client monitors the click event of page elements on internet site in real time, works as user When triggering a certain function of page elements, start interception action and intercept this trigger action;Wherein, page elements function and The identity type that the function of page elements is corresponding is self-defined, and identity type is stored in identity type storehouse.
Event analysis calling module: the identity type that a certain function of the page elements that client triggers according to user is corresponding Being analyzed, and by event analysis calling module, analysis result is sent to server, server passes through according to analysis result Event analysis calling module calls the execution function event corresponding with this identity type;Performing function event is that internet site is deposited The execution function event of storage, described execution function event is corresponding with identity type, and corresponding relation is self-defined.Concrete grammar is: Whether Search Flags typelib exists the identity type corresponding with the function of page elements, if existing, sending execution and calling letter Breath is to server.
Perform module: client performs, by performing module, the execution function event that event analysis calling module calls, and Inform user.
Embodiment 1:
The present invention provides a kind of filter method for internet site front end logic entrance, including:
Step 1, is pre-configured with interception action by client, and the trigger condition of this interception action is when user triggers page elements Function time trigger;Then client monitors the click event of page elements on internet site in real time, when user triggers the page During a certain function of element, start interception action and also intercept this trigger action;Wherein, the function of page elements and page elements Identity type corresponding to function be self-defined, identity type is stored in identity type storehouse.
Step 2, the identity type that a certain function of the page elements that client triggers according to user is corresponding is analyzed, and Analysis result is sent to server, and server calls the execution function event corresponding with this identity type according to analysis result; Performing the execution function event that function event is internet site storage, described execution function event is corresponding with identity type, right Should be related to for self-defined.Concrete grammar is: whether there is the mark corresponding with the function of page elements in Search Flags typelib Type, if existing, sending and performing recalls information to server.
Step 3, the execution function event that client executing step 2 is called, and inform user.
Case 1
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 " is when initializing, and design filtration types is " login ",
Representing needs checking to log in before this function enters.
Step 3, when user click on " individual " center ", directly intercepted by client, and intercept information be sent to server, If user is not logged in, server ejects login frame and guides user to log in, and enters individual center after logining successfully;If user Logging in, server guides user to be directly entered individual center.
Case 2
As shown in Figure 3:
Step 1, the client extension by external business logic, monitor the click event of all hyperlink.
Step 2, when the hyperlink (web sites function) that chained address is "/join " is clicked on by user, client can be from Dynamic interception, if subscriber data is the most perfect, then server ejection data is filled 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 defecator for internet site front end logic entrance, with being used in described embodiment 1 The filter method one_to_one corresponding of internet site front end logic entrance, is not repeating at this.
Specific embodiment described herein is only to present invention spirit explanation for example.Technology neck belonging to the present invention Described specific embodiment can be made various amendment or supplements or use similar mode to replace by the technical staff in territory Generation, but without departing from the spirit of the present invention or surmount scope defined in appended claims.

Claims (8)

1. the filter method for internet site front end logic entrance, it is characterised in that including:
Step 1, is pre-configured with interception action by client, and the trigger condition of this interception action is when user triggers page elements Function time trigger;Then client monitors the click event of page elements on internet site in real time, when user triggers the page During a certain function of element, start interception action and also intercept this trigger action;
Step 2, the identity type that a certain function of the page elements that client triggers according to user is corresponding is analyzed, and will divide Analysis result is sent to server, and server calls the execution function event corresponding with this identity type according to analysis result;
Step 3, the execution function event that client executing step 2 is called, and inform user.
A kind of filter method for internet site front end logic entrance the most according to claim 1, it is characterised in that The function of the described page elements identity type corresponding with the function of page elements is self-defined, and identity type is stored in mark In typelib.
A kind of filter method for internet site front end logic entrance the most according to claim 2, it is characterised in that Described execution function event is the execution function event of internet site storage, described execution function event and identity type pair Should, corresponding relation is self-defined.
A kind of filter method for internet site front end logic entrance the most according to claim 3, it is characterised in that In described step 2, the concrete grammar being analyzed according to the identity type that a certain function of the page elements of user's triggering is corresponding It is: whether Search Flags typelib exists the identity type corresponding with the function of page elements, if existing, to send execution and call Information is to server.
5. the defecator for internet site front end logic entrance, it is characterised in that including:
Event interception module: be pre-configured with interception action by the event interception module of client, the triggering bar of this interception action Part is to trigger when user triggers the function of page elements;Then client monitors the point of page elements on internet site in real time Hit event, when user triggers a certain function of page elements, start interception action and intercept this trigger action;
Event analysis calling module: the identity type that a certain function of the page elements that client triggers according to user is corresponding is carried out Analyzing, and by event analysis calling module, analysis result is sent to server, server passes through event according to analysis result Analyze calling module and call the execution function event corresponding with this identity type;
Perform module: client performs, by performing module, the execution function event that event analysis calling module calls, and informs User.
A kind of defecator for internet site front end logic entrance the most according to claim 5, it is characterised in that The function of the described page elements identity type corresponding with the function of page elements is self-defined, and identity type is stored in mark In typelib.
A kind of defecator for internet site front end logic entrance the most according to claim 6, it is characterised in that Described execution function event is the execution function event of internet site storage, described execution function event and identity type pair Should, corresponding relation is self-defined.
A kind of defecator for internet site front end logic entrance the most according to claim 7, it is characterised in that The concrete grammar that identity type corresponding to a certain function of the page elements that client triggers according to user is analyzed is: search Whether identity type storehouse exists the identity type corresponding with the function of page elements, if exist, send perform recalls information to Server.
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 true CN106060063A (en) 2016-10-26
CN106060063B 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)

Cited By (2)

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

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

Cited By (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

Also Published As

Publication number Publication date
CN106060063B (en) 2019-04-23

Similar Documents

Publication Publication Date Title
CN105847717B (en) A kind of method, client and the server of barrage report
CN103856446B (en) A kind of login method, device and open platform system
CN102469435B (en) Method for raising terminal model identification accuracy of mobile terminal and apparatus thereof
CN107943838B (en) Method and system for automatically acquiring xpath generated crawler script
CN103368978B (en) Realize intelligent mobile terminal application leak and the method for communication security detection
CN105706045A (en) Semantics-oriented analysis of log message content
CN109656792A (en) Applied performance analysis method, apparatus, computer equipment and storage medium based on network call log
CN106230809B (en) A kind of mobile Internet public sentiment monitoring method and system based on URL
Sukumar et al. Review on modern Data Preprocessing techniques in Web usage mining (WUM)
CN105701009B (en) Security application test method in mobile terminal
CN102469460A (en) Method for identifying invalid international mobile equipment identity number and apparatus thereof
CN109062590A (en) A kind of method and system of game SDK online updating
CN104113598A (en) Three-layer auditing method for database
CN105022815A (en) Information interception method and device
CN106506514A (en) A kind of 4G mobile datas signaling plane and correlating method and the system of user plane
CN106060063A (en) Filtering method and device for internet website front end logic entries
CN110011860A (en) Android application and identification method based on network traffic analysis
CN102364897A (en) Gateway-level on-line network message detection filtering method and apparatus thereof
CN111740868A (en) Alarm data processing method and device and storage medium
CN104640138A (en) Method and device for locating problematic terminals
CN106559498A (en) Air control data collection platform and its collection method
CN112100603A (en) Website combined graph verification code defense method and system
CN108287874B (en) DB2 database management method and device
CN108509322B (en) Method for avoiding excessive return visit, electronic device and computer readable storage medium
CN105262720A (en) Web robot traffic identification 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