CN106992972A - A kind of cut-in method and device - Google Patents

A kind of cut-in method and device Download PDF

Info

Publication number
CN106992972A
CN106992972A CN201710152378.7A CN201710152378A CN106992972A CN 106992972 A CN106992972 A CN 106992972A CN 201710152378 A CN201710152378 A CN 201710152378A CN 106992972 A CN106992972 A CN 106992972A
Authority
CN
China
Prior art keywords
client
server
interface
access
identifying information
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
CN201710152378.7A
Other languages
Chinese (zh)
Other versions
CN106992972B (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.)
MIGU Digital Media Co Ltd
Original Assignee
MIGU Digital Media 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 MIGU Digital Media Co Ltd filed Critical MIGU Digital Media Co Ltd
Priority to CN201710152378.7A priority Critical patent/CN106992972B/en
Publication of CN106992972A publication Critical patent/CN106992972A/en
Application granted granted Critical
Publication of CN106992972B publication Critical patent/CN106992972B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities

Abstract

The invention discloses a kind of cut-in method, methods described includes:Server is detected after the interface access that client is sent by server, extracts the unique identifying information in the interface;Obtain the access times information of the unique identifying information;The information of access times of the unique identifying information and the default access times information of server are contrasted, client access server is determined whether according to comparing result.The invention also discloses a kind of access device.

Description

A kind of cut-in method and device
Technical field
The present invention relates to internet information treatment technology, more particularly to a kind of cut-in method and device.
Background technology
At present, when carrying out popularization activity by internet web page to product, for example:Reward voucher hair is carried out by webpage Put, the activity such as prize is sent when, user can participate in popularization activity by the guiding page of popularization activity.Generally, it is specific to participate in Mode is:The Initiated Mechanism of popularization activity such as clicks on button in the triggering guiding page, and the client corresponding to user will be to clothes Business device sends service request, and server responds the service request and returns to popularization activity interface, for example:The unification of popularization activity webpage URLs (URL, Uniform Resource Locator), client participates in popularization activity by the Active Interface.Such as Shown in Fig. 5, (a) figure represents that user participates in popularization activity by triggering the button of popularization activity in Fig. 5, and (b) figure is represented to promote and lived Dynamic participated in finishes.
But, popularization activity can repeatedly be participated in by same Active Interface in the prior art, be so likely to pair The user for participating in popularization activity brings property safety equivalent risk, for example:User A is participated in after popularization activity by Active Interface, should Active Interface is compromised or is stolen, and other users is participated in popularization activity by the Active Interface, causes user A to obtain The reward obtained is got by other people, user A is suffered interests loss.
The content of the invention
In view of this, the embodiment of the present invention is expected to provide a kind of cut-in method and device, can limit popularization activity interface Access times, effectively prevent popularization activity interface stolen or leakage cause damage to user.
To reach above-mentioned purpose, the embodiments of the invention provide a kind of cut-in method, including:
Server is detected after the interface access that client is sent by server, extracts the unique identification in the interface Information;
Obtain the access times information of the unique identifying information;
The information of access times of the unique identifying information and the default access times information of server are contrasted, according to Comparing result determines whether client access server.
It is described that client access server is determined whether according to comparing result in the above method, including:
If the access times of the unique identifying information are less than the default access times, client is allowed to terminate Enter server;If the access times of the unique identifying information are more than or equal to the default access times, refusal visitor Family end access server.
In the above method, before the interface that the detection client is sent by server is accessed, methods described also includes:
Server provides interface guidance information to client, and interface guidance information access service is passed through when detecting client After device, the unique identifying information is added in interface by generation corresponding to the unique identifying information of the client, and by institute Interface is stated to send to client.
In the above method, the generation corresponds to the unique identifying information of the client, including:Server is generated and each The individual one-to-one unique identifying information of client, and initialize the access times information of each unique identifying information.
The above method also includes:
Allow client access server when, server by the increase of access times of the unique identifying information once.
The embodiment of the present invention additionally provides a kind of access device, including:
Detection module, for detecting whether there is the interface access server that client is sent by server;
Acquisition module, for extracting the unique identifying information in the interface, obtains having made for the unique identifying information Use number information;
Processing module, for by the information of access times of the unique identifying information and the default access times of server Information is contrasted, and client access server is determined whether according to comparing result.
In said apparatus, the processing module specifically for:
If the access times of the unique identifying information are less than the default access times, client is allowed to terminate Enter server;If the access times of the unique identifying information are more than or equal to the default access times, refusal visitor Family end access server.
In said apparatus, described device also includes:
Generation module, provides interface guidance information to client for server, is drawn when detecting client by interface Lead after information access server, unique identifying information of the generation corresponding to the client;
Sending module, for the unique identifying information to be added in interface, and the interface is sent to client.
In said apparatus, the generation module specifically for:
Generation and the one-to-one unique identifying information of each client, and initialize having made for each unique identifying information Use number information.
In said apparatus, the processing module is additionally operable to:When allowing client access server, server will be described unique The increase of access times of identification information is once.
Cut-in method and device provided in an embodiment of the present invention, server detect client and pass through connecing that server is sent After mouth access, the unique identifying information in the interface is extracted;Obtain the access times information of the unique identifying information;Will The information of access times of the unique identifying information is contrasted with the default access times information of server, true according to comparing result It is fixed whether to allow client access server;In this way, server can receive or refuse by obtaining the access times of interface Client access server, effectively prevents interface stolen or leakage causes damage to user, further, it is also possible in unique identification letter The identification information of user or client is added in breath, safety verification further is carried out to user or client, or in unique identification Information adds actual effect information, makes interface effective to user or client within the regular hour, further the safety of lifting interface Property.
Brief description of the drawings
Fig. 1 is the implementation process schematic diagram of cut-in method of the embodiment of the present invention;
Fig. 2 is interface boot flow schematic diagram in cut-in method of the embodiment of the present invention;
Fig. 3 is the implementation process schematic diagram of cut-in method of the embodiment of the present invention in actual applications;
Fig. 4 is the composition structural representation of access device of the embodiment of the present invention;
Fig. 5 is the schematic diagram that the popularization activity button that user is provided by clicking in client participates in popularization activity.
Embodiment
The characteristics of in order to the more detailed understanding embodiment of the present invention and technology contents, below to the embodiment of the present invention Realization be described in detail.
Fig. 1 is the implementation process schematic diagram of cut-in method of the embodiment of the present invention, as shown in figure 1, the embodiment of the present invention is accessed Method, comprises the following steps:
Step 101:Server is detected after the interface access that client is sent by server, is extracted in the interface Unique identifying information;
The interface can be application programming interface (API, Application Programming Interface) or to compile based on HTTP (HTTP, Hyper Text Transfer Protocol) Interface such as URL etc., server can by above-mentioned interface externally as user or client provide one group based on apply or hardware Routine, the routine, which can be realized, to be communicated between server and client-side program or by database realizing data sharing or passes through Send formatted file and realize server and user or client direct communication or data sharing;
Wherein, the interface can include unique identifying information, and the unique identifying information can use unique identifier (UUID, Universally Unique Identifier) or globally unique identifier (GUDI, Globally Unique Identifier) or according to using the userspersonal information of client generate;In order that the unique identifying information is in computer Two identical identification informations will not be generated in cluster or internet, nonrandom ginseng can be added in the unique identifying information Number such as time so that unique identifying information can possess unique trait;
When unique identifying information is generated according to userspersonal information, needed when user is by interface access server defeated Access customer personal information, server matches unique identifying information with the userspersonal information that user inputs, and verifies user identity; On the other hand, unique identifying information is generated by userspersonal information, it is possible to achieve same subscription access server is carried Limited for the number of times of same same interface, for example:In reward voucher such as gets at the popularization activity, prevent from repeatedly leading with user Take reward voucher;Wherein, the userspersonal information can be the account log-on message of the cell-phone number, mailbox, related software of user Deng.
Step 102:Obtain the access times information of the unique identifying information;
Here, the unique identifying information contains the access times information of the corresponding interface, whenever there is client After the interface access server, the increase of access times of the interface is once.
Step 103:By the information of access times of the unique identifying information and the default access times information of server Contrast, client access server is determined whether according to comparing result.
Specifically, described determine whether that client access server includes according to comparing result:If described unique The access times of identification information are less than the default access times, then allow client access server;If it is described only The access times of one identification information are more than the default access times, then refuse client access server;
Wherein, the default access times information of the server can be set according to the actual requirements, in practical application 1 is usually arranged as in scene;The access times of the unique identifying information are less than the default access times, before showing There is no client by the interface access server, judge the client access server for legal access, server allows this Client access server;The access times of the unique identifying information are more than the default access times, before showing Existing client judges the client access server for illegal access by the interface access server, and the interface is Stolen or leakage, server prevents the client access server;The embodiment of the present invention can connect to limit popularization activity accordingly The access times of mouth.
Fig. 2 is interface boot flow schematic diagram in cut-in method of the embodiment of the present invention, as shown in Fig. 2 the embodiment of the present invention Interface bootstrap technique in cut-in method, comprises the following steps:
Step 201:Server provides interface guidance information to client, and interface guidance information is passed through when detecting client After access server, unique identifying information of the generation corresponding to the client;
Wherein, the interface guidance information can be some pre-defined functions, and the function characterizes interface guiding Annexation between information and server interface, the interface guidance information includes server interface information and is connected to institute State the configuration information of server interface;In actual applications, the interface guidance information embodies mode and is:Include service Device interface message such as URL etc. short message, mail or client push information etc.;
Wherein, when generating unique identification information, the time for generating the unique identifying information can be remembered simultaneously Record, in this way, according to the time for extracting the unique identifying information in interface and can generate time of the unique identifying information and sentence Whether the disconnected unique identifying information fails, for example:Server can set interface effective time to be 5 minutes, if it is determined that this connects Mouth failure, then prevent the client of the interface access server by the failure;
Wherein, the generation corresponds to the unique identifying information of the client, including:Server is generated and each client One-to-one unique identifying information is held, and initializes the access times information of each unique identifying information;That is, every Individual unique identifying information only corresponds to a client, and in actual applications, the information of access times after initialization is usually noted For 0;
After the server allows client to access, the result after access can be shown to client, for example:User joins With whether popularization activity successful, the relevant information for being supplied to user after participation activity success etc..
Step 202:The unique identifying information is added in interface, and the interface is sent to client.
The interface can be API or the interface compiled based on HTTP such as URL etc., and server can be by above-mentioned Interface externally provides one group of routine based on application or hardware such as user or client, and the routine can realize server and use Communicate between family or client-side program or realize server by database realizing data sharing or by sending formatted file With user or client direct communication or data sharing;Above-mentioned interface can be carried out certainly according to the agreement supported, docking port Definitionization is compiled, and the information on services provided such as unique identifying information are added in interface;
Wherein, client, can be automatically by the interface access server, without inciting somebody to action after the interface is received Interface is shown, and can so reduce the probability that the interface is compromised or is stolen.
Fig. 3 is the implementation process schematic diagram of cut-in method of the embodiment of the present invention in actual applications, as shown in figure 3, this hair Bright embodiment is the schematic flow sheet that client participates in sweepstake by guide page, is comprised the following steps:
Step 301:Server is detected after the interface access that client is sent by server, is extracted in the interface Unique identifying information;
Wherein, before the step 301, in addition to:User triggering guide page in " prize drawing " button after, client to Server sends service access request, and server is received after the service access request, and generation corresponds to one of interface only One identification information, and it is 0 to initialize the access times of the unique identifying information, will include the unique identification information Interface (network address URL) is sent to client;Client is received after interface, according to the sweepstake business of URL access servers In.
Step 302:Obtain the access times information of the unique identifying information;
Server extracts the unique identifying information of interface, obtains the access times information of the interface.
Step 303:By the information of access times of the unique identifying information and the default access times information of server Contrast, such as access times are less than default access times, perform step 304;As access times are more than or equal to default make With number of times, step 305 is performed;
Wherein, when client is by interface access server, server is by unique identifying information described in interface Access times increase is once;
Step 304:Allow client access server.
Server judges client for legitimate client, it is allowed to which it is accessed in sweepstake business.
Step 305:Refuse client access server.
Server judges that client, for illegal client, prevents it from accessing in sweepstake business.
Fig. 4 is that access device of the embodiment of the present invention constitutes structural representation, and (a) is access device of the embodiment of the present invention, (b) For the interface guide device in cut-in method of the embodiment of the present invention, shown in access device of the embodiment of the present invention, such as Fig. 4 (a), bag Include:
Detection module 401, for detecting whether there is the interface access server that client is sent by server;
Acquisition module 402, for extracting the unique identifying information in the interface, has obtained the unique identifying information Access times information;
Processing module 403, for by the information of access times of the unique identifying information with server is default uses Number information is contrasted, and client access server is determined whether according to comparing result;
Wherein, the processing module 403 specifically for:If the access times of the unique identifying information are less than described Default access times, then allow client access server;If the access times of the unique identifying information be more than etc. In the default access times, then refuse client access server;Wherein, when allowing client access server, clothes Be engaged in device by the increase of access times of the unique identifying information once.
Interface guide device in cut-in method of the embodiment of the present invention, shown in such as Fig. 4 (b), including:
Generation module 404, provides interface guidance information to client for server, interface is passed through when detecting client After guidance information access server, unique identifying information of the generation corresponding to the client;
Sending module 405, for the unique identifying information to be added in interface, and the interface is sent to client End;
Wherein, the generation module 405, specifically for:Generation and the one-to-one unique identifying information of each client, And initialize the access times information of each unique identifying information.
In actual applications, the detection module 401, acquisition module 402, processing module 403, generation module 404 and hair Send module 405 can be by the central processing unit (CPU, Central Processing Unit) or microprocessor on server Device (MPU, Micro Processor Unit) or digital signal processor (DSP, Digital Signal Processor), Or field programmable gate array (FPGA, Field Programmable Gate Array) is realized.
It should be noted that:Each module realize function can refer to the associated description of cut-in method in earlier figures 1 and Fig. 2 and Understand, repeat no more here.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the shape of the embodiment in terms of the present invention can use hardware embodiment, software implementation or combine software and hardware Formula.Moreover, the present invention can be used can use storage in one or more computers for wherein including computer usable program code The form for the computer program product that medium is implemented on (including but is not limited to magnetic disk storage and optical memory etc.).
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (10)

1. a kind of cut-in method, it is characterised in that methods described includes:
Server is detected after the interface access that client is sent by server, extracts the unique identification letter in the interface Breath;
Obtain the access times information of the unique identifying information;
The information of access times of the unique identifying information and the default access times information of server are contrasted, according to contrast As a result client access server is determined whether.
2. according to the method described in claim 1, it is characterised in that described to determine whether that client terminates according to comparing result Enter server, including:
If the access times of the unique identifying information are less than the default access times, client is allowed to access clothes Business device;If the access times of the unique identifying information are more than or equal to the default access times, refuse client Access server.
3. according to the method described in claim 1, it is characterised in that the interface that the detection client is sent by server connects Before entering, methods described also includes:
Server provides interface guidance information to client, and interface guidance information access server is passed through when detecting client Afterwards, the unique identifying information is added in interface by generation corresponding to the unique identifying information of the client, and will be described Interface is sent to client.
4. method according to claim 3, it is characterised in that the unique identification that the generation corresponds to the client is believed Breath, including:Server is generated and the one-to-one unique identifying information of each client, and initializes each unique identifying information Access times information.
5. according to the method described in claim 1, it is characterised in that methods described also includes:
Allow client access server when, server by the increase of access times of the unique identifying information once.
6. a kind of access device, it is characterised in that described device includes:
Detection module, for detecting whether there is the interface access server that client is sent by server;
Acquisition module, for extracting the unique identifying information in the interface, obtains using for the unique identifying information secondary Number information;
Processing module, for by the information of access times of the unique identifying information and the default access times information of server Contrast, client access server is determined whether according to comparing result.
7. device according to claim 6, it is characterised in that the processing module specifically for:
If the access times of the unique identifying information are less than the default access times, client is allowed to access clothes Business device;If the access times of the unique identifying information are more than or equal to the default access times, refuse client Access server.
8. device according to claim 6, it is characterised in that described device also includes:
Generation module, interface guidance information is provided for server to client, is believed when detecting client and being guided by interface Cease after access server, unique identifying information of the generation corresponding to the client;
Sending module, for the unique identifying information to be added in interface, and the interface is sent to client.
9. device according to claim 8, it is characterised in that the generation module specifically for:
Generation and the one-to-one unique identifying information of each client, and it is secondary to initialize using for each unique identifying information Number information.
10. device according to claim 6, it is characterised in that the processing module is additionally operable to:Client is allowed to access clothes Be engaged in device when, server by the increase of access times of the unique identifying information once.
CN201710152378.7A 2017-03-15 2017-03-15 A kind of cut-in method and device Active CN106992972B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710152378.7A CN106992972B (en) 2017-03-15 2017-03-15 A kind of cut-in method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710152378.7A CN106992972B (en) 2017-03-15 2017-03-15 A kind of cut-in method and device

Publications (2)

Publication Number Publication Date
CN106992972A true CN106992972A (en) 2017-07-28
CN106992972B CN106992972B (en) 2018-09-04

Family

ID=59411572

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710152378.7A Active CN106992972B (en) 2017-03-15 2017-03-15 A kind of cut-in method and device

Country Status (1)

Country Link
CN (1) CN106992972B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101471801A (en) * 2007-12-28 2009-07-01 上海亿动信息技术有限公司 Advertisement delivery method and apparatus for preventing fault advertisement in wireless internet
CN101674293A (en) * 2008-09-11 2010-03-17 阿里巴巴集团控股有限公司 Method and system for processing abnormal request in distributed application
CN103139182A (en) * 2011-12-01 2013-06-05 北大方正集团有限公司 Method, client end, server and system allowing user to visit
US20130262165A1 (en) * 2012-03-27 2013-10-03 Alibaba Group Holding Limited Sending recommendation information associated with a business object
CN105282047A (en) * 2015-09-25 2016-01-27 小米科技有限责任公司 Access request processing method and device
CN105447715A (en) * 2015-11-03 2016-03-30 北京京东尚科信息技术有限公司 Method and apparatus for anti-theft electronic coupon sweeping by cooperating with third party

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101471801A (en) * 2007-12-28 2009-07-01 上海亿动信息技术有限公司 Advertisement delivery method and apparatus for preventing fault advertisement in wireless internet
CN101674293A (en) * 2008-09-11 2010-03-17 阿里巴巴集团控股有限公司 Method and system for processing abnormal request in distributed application
CN103139182A (en) * 2011-12-01 2013-06-05 北大方正集团有限公司 Method, client end, server and system allowing user to visit
US20130262165A1 (en) * 2012-03-27 2013-10-03 Alibaba Group Holding Limited Sending recommendation information associated with a business object
CN105282047A (en) * 2015-09-25 2016-01-27 小米科技有限责任公司 Access request processing method and device
CN105447715A (en) * 2015-11-03 2016-03-30 北京京东尚科信息技术有限公司 Method and apparatus for anti-theft electronic coupon sweeping by cooperating with third party

Also Published As

Publication number Publication date
CN106992972B (en) 2018-09-04

Similar Documents

Publication Publication Date Title
US11176573B2 (en) Authenticating users for accurate online audience measurement
US10657249B2 (en) Identifying fraudulent activities and the perpetrators thereof
US11190527B2 (en) Identity verification and login methods, apparatuses, and computer devices
CN110602052B (en) Micro-service processing method and server
CN103023918B (en) The mthods, systems and devices logged in are provided for multiple network services are unified
US8572756B2 (en) Captcha method and system
EP3044987B1 (en) Method and system for verifying an account operation
WO2018108059A1 (en) Method and device for processing template data, requesting for template data and presenting template data
CN107196950B (en) Verification method, verification device and server
CN104735066B (en) A kind of single-point logging method of object web page application, device and system
CN104580264B (en) Login method, entering device and login and Accreditation System
CN104580364B (en) A kind of method and apparatus of resource sharing
WO2016101635A1 (en) Method, apparatus and device for synchronizing login status, and computer storage medium
CN107104874B (en) Resource sharing method, device, terminal and computer readable storage medium
CN109257321B (en) Secure login method and device
CN110083783A (en) A kind of method, apparatus, storage medium and computer equipment for sharing link
US9934310B2 (en) Determining repeat website users via browser uniqueness tracking
US20170325089A1 (en) Method and system of user authentication and end to end encryption using device synchronization
TW201239655A (en) Determining machine behavior
CN106789855A (en) The method and device of user login validation
CN107733883B (en) Method and device for detecting account numbers registered in batches
US20210203668A1 (en) Systems and methods for malicious client detection through property analysis
CN107517180B (en) Login method and device
CN111935092B (en) Information interaction method and device based on third-party application and electronic equipment
CN105141642B (en) A kind of method and device preventing illegal user's behavior

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant