CN106027472B - A kind of abnormality eliminating method of authentication ids information process request - Google Patents

A kind of abnormality eliminating method of authentication ids information process request Download PDF

Info

Publication number
CN106027472B
CN106027472B CN201610041617.7A CN201610041617A CN106027472B CN 106027472 B CN106027472 B CN 106027472B CN 201610041617 A CN201610041617 A CN 201610041617A CN 106027472 B CN106027472 B CN 106027472B
Authority
CN
China
Prior art keywords
sequence number
card reader
dispatch server
time interval
card
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
CN201610041617.7A
Other languages
Chinese (zh)
Other versions
CN106027472A (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.)
Tendyron Corp
Original Assignee
李明
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 李明 filed Critical 李明
Priority to CN201610041617.7A priority Critical patent/CN106027472B/en
Publication of CN106027472A publication Critical patent/CN106027472A/en
Application granted granted Critical
Publication of CN106027472B publication Critical patent/CN106027472B/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
    • H04L63/0245Filtering by information in the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • H04L63/1408Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic by monitoring network traffic
    • H04L63/1425Traffic logging, e.g. anomaly detection

Abstract

The present invention provides a kind of abnormality eliminating method of authentication ids information process request, dispatch server receives authentication ids information process request, blacklist is obtained, if identity card sequence number and card reader sequence number are not included in blacklist, visiting frequency are obtained and manages list;If before getting the visiting frequency control list moment apart from dispatch server in the first prefixed time interval, visiting frequency manages the deposit record for not including identity card sequence number in list, and before distance gets the visiting frequency control list moment in the second prefixed time interval, visiting frequency manages the deposit record for not including card reader sequence number in list, then obtains exception rules;If identity card sequence number and card reader sequence number do not meet exception rules, then authentication ids information process request is handled, it realizes triple dynamic authentications to identity card and card reader of ID card, improves the safety and reliability to the processing of authentication ids information process request.

Description

A kind of abnormality eliminating method of authentication ids information process request
Technical field
The present invention relates to a kind of electronic technology field more particularly to a kind of exceptions of authentication ids information process request Reason method.
Background technique
With China's rapid development of economy, people's lives have very big improvement, no matter obtain employment, engage in trade, travel, enter a higher school Etc., it requires to carry out authentication, and money, property, application welfare, medical treatment etc. are handled, it also needs progress identity and recognizes Card.Current No.2 residence card is designed using built-in intelligence chip, has the ability to realize identity Internet-based completely Certification, however released so far from 2004, application value is also mined far away, and in recent years, ticket sale system has started on a large scale Internet authentication and identification using identity-based card.
The Internet authentication technology of identity-based card is since in actual use, there are the feelings such as identity card loss, stolen Condition, there are harm and risk that the malice of my non-authorization of identity card uses;The transmission of network data also faces communication simultaneously A series of risk of typical network attacks such as monitoring, data tampering and data playback.Therefore, how to prevent on exit passageway It the attack of modes such as eavesdrops, distort or resets, screen the attacker of malice in real time, protection authentication module (SAM) becomes safely Need first technical problems to be solved.
Summary of the invention
One of present invention seek to address that the above problem/.
The main purpose of the present invention is to provide a kind of abnormality eliminating method of authentication ids information process request, for up to To above-mentioned purpose, technical solution of the present invention specifically includes the following steps:
A kind of abnormality eliminating method of authentication ids information process request, which comprises the following steps: S1: Dispatch server receives authentication ids information process request, and the authentication ids information includes: identity card serial number encryption Value and card reader sequence number, wherein the sequence number of the card reader Serial No. ID card information reading terminals;S2: the tune Degree server, which obtains, decrypts the identity card sequence number that the identity card serial number encryption value obtains;S3: the dispatch server obtains Take blacklist;S4: the dispatch server judges whether the identity card sequence number or the card reader sequence number are included in institute It states in blacklist, if the identity card sequence number or the card reader sequence number are included in the blacklist, termination Process thens follow the steps S5 if the identity card sequence number and the card reader sequence number are not included in the blacklist; S5: the dispatch server obtains visiting frequency and manages list;S6: the dispatch server judges apart from the dispatch service Device is got before the visiting frequency control list moment in the first prefixed time interval, in the visiting frequency control list Whether the deposit comprising the identity card sequence number records, or is getting the visiting frequency pipe apart from the dispatch server It whether include the card reader sequence in the visiting frequency control list before the control list moment in the second prefixed time interval Number deposit record, if the dispatch server judge to manage name getting the visiting frequency apart from the dispatch server It include the deposit of the identity card sequence number before single moment in the first prefixed time interval, in the visiting frequency control list Record, or the second prefixed time interval before getting the visiting frequency control list moment apart from the dispatch server Interior, the deposit comprising the card reader sequence number records in the visiting frequency control list, then termination process, if described Dispatch server judges that before getting the visiting frequency control list moment apart from the dispatch server, first is default In time interval, the deposit that the identity card sequence number is not included in the visiting frequency control list is recorded, and apart from institute It states dispatch server to get before the visiting frequency control list moment in the second prefixed time interval, the visiting frequency The deposit record for not including the card reader sequence number in list is managed, S7 is thened follow the steps;S7, the dispatch server obtain Exception rules;S8: the dispatch server judges whether the identity card sequence number or the card reader sequence number meet exception Rule, if the identity card sequence number or the card reader sequence number meet exception rules, termination process;If the body Part card sequence number and the card reader sequence number do not meet exception rules, then follow the steps S9;S9: the dispatch server pair The authentication ids information process request is handled.
Optionally, in the step S4, the dispatch server judges the identity card sequence number or the card reader sequence Whether row number is included in the blacklist, if the identity card sequence number or the card reader sequence number are included in the black name Dan Zhong, then termination process, including step S401 or step S402:S401: the dispatch server judges the identity Whether card sequence number is included in the blacklist, if the identity card sequence number is included in the blacklist, termination Manage process;If the identity card sequence number is not comprised in the blacklist, judge whether the card reader sequence number wraps It is contained in the blacklist, if the card reader sequence number is included in the blacklist, termination process;S402: institute It states dispatch server and judges whether the card reader sequence number is included in the blacklist, if the card reader sequence number includes In the blacklist, then termination process;If the card reader sequence number is not comprised in the blacklist, judge Whether the identity card sequence number is included in the blacklist, if the identity card sequence number is included in the blacklist, Then termination process.
Optionally, in the step S6, the dispatch server judge got apart from the dispatch server it is described Before the visiting frequency control list moment in the first prefixed time interval, whether comprising described in the visiting frequency control list The deposit of identity card sequence number records, or apart from the dispatch server get the visiting frequency control list moment it In preceding second prefixed time interval, whether the deposit comprising the card reader sequence number is remembered in the visiting frequency control list Record, if the dispatch server judges before getting the visiting frequency control list moment apart from the dispatch server In first prefixed time interval, the deposit comprising the identity card sequence number is recorded in the visiting frequency control list, or The visit before the visiting frequency control list moment in the second prefixed time interval is got apart from the dispatch server Ask that the deposit comprising the card reader sequence number records in frequency control list, then termination process, including step S601 or Person's step S602, S601: the dispatch server judges getting the visiting frequency control apart from the dispatch server It whether include the identity card sequence number in the visiting frequency control list before the list moment in the first prefixed time interval Deposit record, if before getting the visiting frequency control list moment apart from the dispatch server first it is default when Between in interval, the deposit comprising the identity card sequence number records in visiting frequency control list, then termination process; If before getting the visiting frequency control list moment apart from the dispatch server in the first prefixed time interval, institute The deposit record for not including the identity card sequence number in visiting frequency control list is stated, then is judged apart from the dispatch service Device is got before the visiting frequency control list moment in the second prefixed time interval, in the visiting frequency control list Whether the deposit comprising the card reader sequence number records, if getting the visiting frequency pipe apart from the dispatch server Before the control list moment in the second prefixed time interval, comprising the card reader sequence number in the visiting frequency control list Deposit records, then termination process;S602: the dispatch server judge got apart from the dispatch server it is described Before the visiting frequency control list moment in the second prefixed time interval, whether comprising described in the visiting frequency control list The deposit of card reader sequence number records, if apart from the dispatch server get the visiting frequency control list moment it In preceding second prefixed time interval, the deposit comprising the card reader sequence number is recorded in the visiting frequency control list, then Termination process;If second is default before getting the visiting frequency control list moment apart from the dispatch server In time interval, the deposit that the card reader sequence number is not included in visiting frequency control list is recorded, then judge away from The access before the visiting frequency control list moment in the first prefixed time interval is got from the dispatch server Frequency manages in list whether the deposit comprising the identity card sequence number records, if getting apart from the dispatch server Before the visiting frequency control list moment in the first prefixed time interval, comprising described in the visiting frequency control list The deposit of identity card sequence number records, then termination process.
Optionally, in the step S8, the dispatch server judges the identity card sequence number or the card reader sequence Whether row number meets exception rules, if the identity card sequence number or the card reader sequence number meet exception rules, terminates Process flow, including step S801 or step S802;S801: whether the dispatch server judges the identity card sequence number Meet exception rules, if the identity card sequence number meets exception rules, termination process;If the identity card sequence number Exception rules are not met, then judge whether the card reader sequence number meets exception rules, if the card reader sequence number meets Exception rules, then termination process;S802: the dispatch server judges whether the card reader sequence number meets abnormal rule Then, if the card reader sequence number meets exception rules, termination process;If the card reader sequence number does not meet exception Rule, then judge whether the identity card sequence number meets exception rules, if the identity card sequence number meets exception rules, Termination process.
Optionally, in the step S601 and/or step S602, if the step is apart from the dispatch server It gets before the visiting frequency control list moment in the first prefixed time interval, is wrapped in the visiting frequency control list Deposit containing the identity card sequence number records, then termination process, comprising steps of if obtaining apart from the dispatch server It gets before the visiting frequency control list moment in the first prefixed time interval, includes in the visiting frequency control list The deposit of the identity card sequence number records, then the dispatch server obtain got apart from the dispatch server it is described Before the visiting frequency control list moment in third prefixed time interval, identity card sequence described in the visiting frequency control list The deposit of row number records frequency of occurrence, if the deposit record frequency of occurrence of the identity card sequence number less than the first preset value, Return to the first prompt information and termination process;If the deposit record frequency of occurrence of the identity card sequence number is greater than or equal to The identity card sequence number is then stored in the blacklist by first preset value, returns to the error message and termination Process;If the step is second default before getting the visiting frequency control list moment apart from the dispatch server In time interval, the deposit comprising the card reader sequence number is recorded in the visiting frequency control list, then termination stream Journey, comprising steps of if second default before getting the visiting frequency control list moment apart from the dispatch server In time interval, the deposit comprising the card reader sequence number is recorded in the visiting frequency control list, then the scheduling clothes Business device obtains before getting the visiting frequency control list moment apart from the dispatch server between the 4th preset time Every interior, the deposit record frequency of occurrence of card reader sequence number described in the visiting frequency control list, if the card reader sequence The deposit record frequency of occurrence of row number then returns to the second prompt information and termination process less than the second preset value;If described The deposit record frequency of occurrence of card reader sequence number is greater than or equal to second preset value, then deposits the card reader sequence number Enter the blacklist, returns to the error message and termination process.
Optionally, in the step S801 and/or the step S802, if the step identity card sequence number symbol Exception rules are closed, then termination process, comprising steps of if the identity card sequence number meets exception rules, by the body Part card sequence number is stored in the visiting frequency and manages list, returns to first prompt information simultaneously termination process;The step If the rapid card reader sequence number meets exception rules, termination process, comprising steps of if the card reader sequence number accords with Exception rules are closed, then the card reader sequence number is stored in the visiting frequency and manages list, return to second prompt information And termination process.
Optionally, in the step S601, if getting the access apart from the dispatch server in the step It include the identity card sequence in the visiting frequency control list before the frequency control list moment in the first prefixed time interval After the deposit record of row number, further comprises the steps of: the dispatch server and judge getting institute apart from the dispatch server It states before the visiting frequency control list moment in the second prefixed time interval, whether includes institute in the visiting frequency control list The deposit record of card reader sequence number is stated, if getting the visiting frequency control list moment apart from the dispatch server Before in the second prefixed time interval, the deposit comprising the card reader sequence number is recorded in the visiting frequency control list, Then the dispatch server obtains the institute before getting the visiting frequency control list moment apart from the dispatch server It states in the 4th prefixed time interval, the deposit of card reader sequence number described in the visiting frequency control list records out occurrence Number, if the deposit record frequency of occurrence of the card reader sequence number is greater than or equal to second preset value, by the card reading Device sequence number is stored in the blacklist;In the step S602, if being got in the step apart from the dispatch server Before the visiting frequency control list moment in the second prefixed time interval, comprising described in the visiting frequency control list After the deposit record of card reader sequence number, further comprises the steps of: the dispatch server and judge apart from the dispatch server It gets before the visiting frequency control list moment in the first prefixed time interval, is in the visiting frequency control list The no deposit record comprising the identity card sequence number, if getting the visiting frequency control apart from the dispatch server Before the list moment in the first prefixed time interval, depositing comprising the identity card sequence number in the visiting frequency control list Enter record, then the dispatch server, which is obtained, is getting the visiting frequency control list moment apart from the dispatch server In foregoing description third prefixed time interval, the deposit of identity card sequence number described in the visiting frequency control list is recorded out Occurrence number will be described if the deposit record frequency of occurrence of the identity card sequence number is greater than or equal to first preset value Identity card sequence number is stored in the blacklist.
Optionally, in the step S801, if after the step identity card sequence number meets exception rules, also Comprising steps of judge whether the card reader sequence number meets exception rules, if the card reader sequence number meets exception rules, The visiting frequency then is written into the card reader sequence number and manages list;In the step S802, if described in the step After card reader sequence number meets exception rules, further comprises the steps of: and judges whether the identity card sequence number meets exception rules, If the identity card sequence number meets exception rules, the visiting frequency is written into the identity card sequence number and manages list.
Optionally, the authentication ids information further include: timestamp secret value and card reader count secret value;The step Rapid S2 further includes that the dispatch server obtains the decryption timestamp secret value and the card reader counts what secret value obtained Timestamp and card reader count value, wherein the timestamp is by generating the card reader of the authentication ids information process request The generation moment based on the authentication ids information process request generates;The card reader count value is based on by the card reader The history processing request number of times that the card reader is initiated generates;The dispatch server judges whether the identity card sequence number accords with Close exception rules, comprising: the dispatch server is based on the timestamp and receives the authentication ids information processing and ask At the time of asking, first time interval is generated, judges whether the first time interval is greater than the 5th prefixed time interval and is less than 6th prefixed time interval is preset if the first time interval is greater than the 5th prefixed time interval and is less than the described 6th Time interval then judges that the identity card sequence number is legal, otherwise, judges that the identity card sequence number meets exception rules;Or, The dispatch server is based on the timestamp and the card reader count value, judges to get institute apart from the dispatch server State before the visiting frequency control list moment in the 7th prefixed time interval, the dispatch server receive comprising the body Whether the request number of times of the authentication ids information process request of part card serial number encryption value is less than third preset value, if the tune The request number of times for the authentication ids information process request comprising the identity card serial number encryption value that degree server receives Less than the third preset value, then judge that the identity card sequence number is legal, otherwise, it is different to judge that the identity card sequence number meets It is conventional then;The dispatch server judges whether the card reader sequence number meets exception rules, comprising: the dispatch server At the time of based on the timestamp and receiving the authentication ids information process request, the first time interval is generated, Judge whether the first time interval is greater than the 8th prefixed time interval and is less than the 9th prefixed time interval, if The first time interval is greater than the 8th prefixed time interval and is less than the 9th prefixed time interval, then described in judgement Card reader sequence number is legal, otherwise, judges that the card reader sequence number meets exception rules;Or, the dispatch server is based on The timestamp and the card reader count value judge getting the visiting frequency control name apart from the dispatch server Before single moment in the tenth prefixed time interval, the identity comprising the card reader sequence number that the dispatch server receives Whether identification demonstrate,proves the request number of times of information process request less than the 4th preset value, if the dispatch server receive comprising institute The request number of times for stating the authentication ids information process request of card reader sequence number is less than the 4th preset value, then described in judgement Card reader sequence number is legal, otherwise, judges that the card reader sequence number meets exception rules;Or, the dispatch server is based on The card reader count value, judge in the authentication ids information process request continuously received with the card reader sequence Whether number matched card reader count value meets preset rules, if the card reader count value meets preset rules, sentences The card reader sequence number that breaks is legal, otherwise, judges that the card reader sequence number meets exception rules.
The method provided through the invention can be realized to the identity card generated based on abnormal identity card or abnormal card reader Authentication information processing request carries out effective abnormality processing, using identity card sequence number and/or card reader sequence number as crucial Value is managed, and is avoided because of other factors, the legitimate request as caused by the variation of IP address or the variation of card type can not obtain It must execute, by blacklist, can pass through in the processing request for preventing illegal identity card or illegal card reader initiation at the first time The dynamic that abnormality eliminating method of the invention can be realized blacklist updates, and enhances the dynamic and real-time of abnormality processing; Managing list by frequency can be realized to the abnormality processing for occurring abnormal identity card or card reader in a short time before, realize To freezing in short-term for Short Term Anomalous identity card or card reader, the security risk caused by the processing of illegal request is avoided, passes through this The abnormality eliminating method of invention can be realized frequency control list dynamic update, enhance abnormality processing dynamic and in real time Property;It can be realized the abnormal judgement to current identity card or card reader by exception rules, even if the body in this processing request Part card or card reader are not included in blacklist or within the scope of the control of frequency control list, equally can recognize that abnormal identity Card or card reader improve to realize to triple dynamic authentications of identity card and card reader to authentication ids information processing Request the safety and reliability of processing.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment Attached drawing be briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill in field, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is the abnormality eliminating method flow chart for the authentication ids information process request that the embodiment of the present invention 1 provides;
Fig. 2 is the abnormality processing system structural representation for the authentication ids information process request that the embodiment of the present invention 2 provides Figure.
Specific embodiment
With reference to the attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Based on this The embodiment of invention, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, belongs to protection scope of the present invention.
In the description of the present invention, it is to be understood that, term " center ", " longitudinal direction ", " transverse direction ", "upper", "lower", The orientation or positional relationship of the instructions such as "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outside" is It is based on the orientation or positional relationship shown in the drawings, is merely for convenience of description of the present invention and simplification of the description, rather than instruction or dark Show that signified device or element must have a particular orientation, be constructed and operated in a specific orientation, therefore should not be understood as pair Limitation of the invention.In addition, term " first ", " second " are used for description purposes only, it is not understood to indicate or imply opposite Importance or quantity or position.
In the description of the present invention, it should be noted that unless otherwise clearly defined and limited, term " installation ", " phase Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can To be mechanical connection, it is also possible to be electrically connected;It can be directly connected, can also can be indirectly connected through an intermediary Connection inside two elements.For the ordinary skill in the art, above-mentioned term can be understood at this with concrete condition Concrete meaning in invention.
The embodiment of the present invention is described in further detail below in conjunction with attached drawing.
Embodiment 1
The present embodiment provides a kind of authentication ids information process request processing methods, as shown in Figure 1, including following step It is rapid:
S1: dispatch server receives authentication ids information process request, and authentication ids information process request includes: body Part card serial number encryption value and card reader sequence number;
Identity card processing request is the processing request that card reader of ID card is initiated, and dispatch server judges that identity card processing is asked It asks to be divided according to preset rules for the idle security authentication module of identity card processing request distribution after legal processes request The security authentication module matched and the originating end of identity card processing request carry out data interaction, wherein identity card serial number encryption Value is that card reader of ID card obtains the identity card serial number encryption obtained from identity card, and card reader Serial No. identity card is read The sequence number of card device itself.
S2: dispatch server obtains the identity card sequence number that decryption identity card serial number encryption value obtains;
Operation is decrypted to the identity card serial number encryption value received, if card reader of ID card is calculated using symmetric cryptography Method encryption identity card sequence number is then solved the identity card serial number encryption value received using corresponding symmetrical decipherment algorithm Close operation;If card reader of ID card uses own private key encryption identity card sequence number, the identity card sequence number received is added Operation is decrypted using the public key of card reader of ID card in close value;Identity card serial number encryption value is decrypted the main body of operation It can be dispatch server itself, be also possible to external equipment or external chip.
S3: dispatch server obtains blacklist, executes step S401 or step S402;
Dispatch server can obtain blacklist from memory, can also obtain blacklist, blacklist from outside In include illegal identity card sequence number and illegal card reader sequence number;If in the authentication ids information process request received Comprising illegal identity card sequence number or illegal card reader sequence number, then the authentication ids information process request is in non- Method state can not normally be accepted by server.
S401: dispatch server judges whether identity card sequence number is included in blacklist, if identity card sequence number includes In blacklist, then termination process;
Have illegal identity card sequence number in blacklist, for example, the identity card being reported the loss sequence number, continuously occur it is different The sequence number etc. of the identity card occurred in the sequence number of normal identity card or short time in multiple areas, the processing meeting that it is requested Greater risk is brought, if dispatch server judges that identity card sequence number is included in blacklist, illustrates the identity card Serial No. Illegal identity demonstrate,proves sequence number, and server is disregarded, termination process.Optionally, server can return prompt information with User is prompted, which has been added into blacklist, carries out subsequent operation and Resolving probiems convenient for user;
Optionally, if identity card sequence number include in blacklist after, further comprise the steps of: dispatch server obtain access Frequency manages list, judges before getting the visiting frequency control list moment apart from dispatch server between the second preset time Every interior, visiting frequency manages in list whether the deposit comprising card reader sequence number records, if obtaining apart from dispatch server Before managing the list moment to visiting frequency in the second prefixed time interval, it includes card reader sequence in list that visiting frequency, which is managed, Number deposit record, then dispatch server obtains the before getting the visiting frequency control list moment apart from dispatch server In four prefixed time intervals, the deposit that visiting frequency manages card reader sequence number in list records frequency of occurrence, if card reader sequence The deposit record frequency of occurrence of row number is greater than or equal to the second preset value, then card reader sequence number is stored in blacklist;If scheduling Server judges in the second prefixed time interval, to visit before getting the visiting frequency control list moment apart from dispatch server It asks that the deposit for not including card reader sequence number in frequency control list records, then obtains exception rules, judge card reader sequence number Whether meet exception rules, if card reader sequence number meets exception rules, card reader sequence number write-access frequency is managed List;
If identity card sequence number is not comprised in blacklist, judge whether card reader sequence number is included in blacklist It is interior, if card reader sequence number is included in blacklist, termination process;
If identity card sequence number is not comprised in blacklist, the legitimacy of card reader sequence number is further judged, with Determine whether identity card sequence number and card reader sequence number are legal, has illegal card reader sequence number in blacklist, such as The sequence number for the card reader being reported the loss, the continuous sequence number for abnormal card reader occur, more than service life card reader sequence The sequence number etc. of row number or the card reader occurred in short-term in multiple areas, the processing requested it can bring greater risk, if adjusting Degree server judges that card reader sequence number is included in blacklist, illustrates that the card reader Serial No. illegal identity demonstrate,proves sequence number, Server is disregarded, termination process.Optionally, server can return to prompt information to prompt user, the card reader It has been added into blacklist, has carried out subsequent operation and Resolving probiems convenient for user;
Optionally, after step judges that identity card sequence number is not comprised in blacklist, scheduling clothes are further comprised the steps of: Device of being engaged in obtains visiting frequency and manages list, judge to get the before visiting frequency manages the list moment apart from dispatch server In one prefixed time interval, visiting frequency manages in list whether the deposit comprising identity card sequence number records, if adjusting in distance Degree server is got before the visiting frequency control list moment in the first prefixed time interval, is wrapped in visiting frequency control list The deposit of the sequence number containing identity card records, then dispatch server, which is obtained, is getting visiting frequency control name apart from dispatch server Before single moment in third prefixed time interval, the deposit of identity card sequence number records out occurrence in visiting frequency control list Identity card sequence number is stored in by number if the deposit record frequency of occurrence of identity card sequence number is greater than or equal to the first preset value Blacklist;If dispatch server judges that before getting the visiting frequency control list moment apart from dispatch server, first is default In time interval, visiting frequency manages the deposit record for not including identity card sequence number in list, then obtains exception rules, judge Whether identity card sequence number meets exception rules, if identity card sequence number meets exception rules, identity card sequence number is written Visiting frequency manages list;
S402: dispatch server judges whether card reader sequence number is included in blacklist, if card reader sequence number includes In blacklist, then termination process;
Have illegal card reader sequence number in blacklist, for example, the card reader being reported the loss sequence number, continuously occur it is different The sequence number of normal card reader, the card reader that occur more than the sequence number of the card reader of service life or in short-term in multiple areas Sequence number etc., the processing requested it can bring greater risk, if dispatch server judges that card reader sequence number is included in black name In list, illustrate that the card reader Serial No. illegal identity demonstrate,proves sequence number, server is disregarded, termination process.Optionally, Server can return to prompt information to prompt user, which has been added into blacklist, carry out subsequent operation convenient for user And Resolving probiems;
Optionally, if card reader sequence number include in blacklist after, further comprise the steps of: dispatch server obtain access Frequency manages list, judges before getting the visiting frequency control list moment apart from dispatch server between the first preset time Every interior, visiting frequency manages in list whether the deposit comprising identity card sequence number records, if obtaining apart from dispatch server Before managing the list moment to visiting frequency in the first prefixed time interval, it includes identity card sequence in list that visiting frequency, which is managed, Number deposit record, then dispatch server obtains the before getting the visiting frequency control list moment apart from dispatch server In three prefixed time intervals, the deposit that visiting frequency manages identity card sequence number in list records frequency of occurrence, if identity card sequence The deposit record frequency of occurrence of row number is greater than or equal to the first preset value, then identity card sequence number is stored in blacklist;If scheduling Server judges in the first prefixed time interval, to visit before getting the visiting frequency control list moment apart from dispatch server It asks that the deposit for not including identity card sequence number in frequency control list records, then obtains exception rules, judge identity card sequence number Whether meet exception rules, if identity card sequence number meets exception rules, identity card sequence number write-access frequency is managed List;
If card reader sequence number is not comprised in blacklist, judge whether identity card sequence number is included in blacklist It is interior, if identity card sequence number is included in blacklist, termination process;
If card reader sequence number is not comprised in blacklist, the legitimacy of identity card sequence number is further judged, with Determine whether identity card sequence number and card reader sequence number are legal, has illegal identity card sequence number in blacklist, such as The sequence number for the identity card being reported the loss continuously occurs in the sequence number or short time of abnormal identity card in multiple area appearance The sequence number etc. of identity card, the processing requested it can bring greater risk, if dispatch server judges identity card sequence number packet It is contained in blacklist, illustrates that the identity card Serial No. illegal identity demonstrate,proves sequence number, server is disregarded, termination stream Journey.Optionally, server can return to prompt information to prompt user, which has been added into blacklist, convenient for user into Row subsequent operation and Resolving probiems;
Optionally, after step judges that card reader sequence number is not comprised in blacklist, scheduling clothes are further comprised the steps of: Device of being engaged in obtains visiting frequency and manages list, judge to get the before visiting frequency manages the list moment apart from dispatch server In two prefixed time intervals, visiting frequency manages in list whether the deposit comprising card reader sequence number records, if adjusting in distance Degree server is got before the visiting frequency control list moment in the second prefixed time interval, is wrapped in visiting frequency control list The deposit of the sequence number containing card reader records, then dispatch server, which is obtained, is getting visiting frequency control name apart from dispatch server Before single moment in the 4th prefixed time interval, the deposit of card reader sequence number records out occurrence in visiting frequency control list Card reader sequence number is stored in by number if the deposit record frequency of occurrence of card reader sequence number is greater than or equal to the second preset value Blacklist;If dispatch server judges that before getting the visiting frequency control list moment apart from dispatch server, second is default In time interval, visiting frequency manages the deposit record for not including card reader sequence number in list, then obtains exception rules, judge Whether card reader sequence number meets exception rules, if card reader sequence number meets exception rules, card reader sequence number is written Visiting frequency manages list;
If dispatch server judges that identity card sequence number and card reader sequence number are not included in blacklist, step is executed Rapid S5;
If dispatch server judges that identity card sequence number and card reader sequence number are not included in blacklist, illustrate identity It demonstrate,proves sequence number and card reader sequence number is all legal, that is to say, that the authentication ids information process request is in legal shape State, need to further judge whether the authentication ids information process request is in by control state;
S5: dispatch server obtains visiting frequency and manages list, and executes step S601 or step S602;
Dispatch server can obtain visiting frequency control list from memory, can also obtain access from outside Frequency manages list, and it includes the identity card sequence number managed and the card reader sequence managed that visiting frequency, which is managed in list, Number;If including the identity card sequence number managed or the card reader managed in the authentication ids information process request received Sequence number could thaw after need to being frozen certain time length then the authentication ids information process request is in by control state, Currently can not normally it be accepted by server.
S601: dispatch server judges first before getting the visiting frequency control list moment apart from dispatch server In prefixed time interval, visiting frequency manages in list whether the deposit comprising identity card sequence number records, if dispatching in distance Server is got before the visiting frequency control list moment in the first prefixed time interval, includes in visiting frequency control list The deposit of identity card sequence number records, then termination process;
To avoid by Replay Attack, abnormal identity card sequence number and abnormal card reader sequence number can be frozen control centainly Duration, under control state, dispatch server is not handled the request that it is initiated, and dispatch server can first determine whether It is got before the visiting frequency control list moment in the first prefixed time interval apart from dispatch server, visiting frequency manages name Whether the deposit comprising identity card sequence number records in list, if when getting visiting frequency control list apart from dispatch server Before quarter in the first prefixed time interval, visiting frequency is managed the deposit in list comprising identity card sequence number and is recorded, and illustrates this Identity card sequence number is also in freezing control state, termination process;Wherein, the first prefixed time interval is preset value, can It is configured according to specific application scenarios, for example, can be set between the first preset time when card-reading terminal is automatic ticket taking machine It is divided into 1 minute, that is to say, that when finding that certain specific identity card sequence number is in frequency control list, at next 1 minute Within, processing operation is not carried out to the request initiated based on the identity card sequence number;Optionally, when discovery, certain specific identity demonstrate,proves sequence When row number is in frequency control list, returns to prompt information and prompt user's identity card abnormal state, please try again later;
Optionally, if step apart from dispatch server get visiting frequency control the list moment before first it is default when Between interval in, visiting frequency manage list in comprising identity card sequence number deposit record, then termination process, including step It is rapid: if before getting the visiting frequency control list moment apart from dispatch server in the first prefixed time interval, access frequency The deposit comprising identity card sequence number records in degree control list, then dispatch server acquisition is got apart from dispatch server Before the visiting frequency control list moment in third prefixed time interval, identity card sequence number is deposited in visiting frequency control list Enter to record frequency of occurrence, if the deposit record frequency of occurrence of identity card sequence number returns to the first prompt less than the first preset value Information and termination process;If the deposit record frequency of occurrence of identity card sequence number is greater than or equal to the first preset value, will Identity card sequence number is stored in blacklist, returns to error message and termination process;
In order to further ensure the integrality of abnormal data, it is ensured that processing safety is obtained when determining apart from dispatch server It gets before the visiting frequency control list moment in the first prefixed time interval, it includes identity card sequence in list that visiting frequency, which is managed, In the case where the deposit record of row number, it can further judge getting the visiting frequency control list moment apart from dispatch server Before in third prefixed time interval, visiting frequency manages the deposit in list comprising identity card sequence number and records number;One In section preset time, if dispatch server is repeatedly received based on a certain identity being specifically present in frequency control list When demonstrate,proving the processing request that sequence number is initiated, it is believed that blacklist is added in the identity card Serial No. illegal sequence number;Specifically, If dispatch server judges in the first prefixed time interval before receiving processing request, the body obtained according to processing request Part card sequence number was once written in frequency control list, then further judging that the third before receiving processing and requesting is pre- If in time interval, whether being once written to the number in frequency control list according to the identity card sequence number that processing request obtains Reach the first preset value, wherein third prefixed time interval and the first preset value are preset value, it can be set according to application scenarios, Such as: third prefixed time interval is 5 minutes, and the first preset value is 100 times, if that dispatch server judges receiving The processing initiated based on specific identity card sequence number is requested in first 5 minutes, is had received based on identity card sequence number initiation The number of request is handled less than 100 times, then returns to the first prompt information prompt user and tries simultaneously termination process again later;If The number for having received the processing request initiated based on the identity card sequence number is greater than or equal to 100 times, then by the identity card sequence Blacklist is written in row number, returns to error message prompt user's identity card and has been added into blacklist, and termination process;
Optionally, if step apart from dispatch server get visiting frequency control the list moment before first it is default when Between interval in, visiting frequency manage list in comprising identity card sequence number deposit record after, further comprise the steps of: dispatch service Device judges that before getting the visiting frequency control list moment apart from dispatch server in the second prefixed time interval, access is frequently Whether the deposit comprising card reader sequence number records in degree control list, if getting visiting frequency pipe apart from dispatch server Before the control list moment in the second prefixed time interval, visiting frequency is managed the deposit in list comprising card reader sequence number and is remembered Record, then dispatch server obtains the 4th preset time before getting the visiting frequency control list moment apart from dispatch server In interval, the deposit that visiting frequency manages card reader sequence number in list records frequency of occurrence, if the deposit of card reader sequence number It records frequency of occurrence and is greater than or equal to the second preset value, then card reader sequence number is stored in blacklist;
In order to further ensure the integrality of abnormal data, it is ensured that processing safety is obtained when determining apart from dispatch server It gets before the visiting frequency control list moment in the first prefixed time interval, it includes identity card sequence in list that visiting frequency, which is managed, In the case where the deposit record of row number, it can further judge that dispatch server judges getting access frequency apart from dispatch server Before the degree control list moment in the second prefixed time interval, whether it includes card reader sequence number that visiting frequency is managed in list Deposit records and judges before getting the visiting frequency control list moment apart from dispatch server between the 4th preset time Every interior, in visiting frequency control list comprising card reader sequence number deposit record number, in one section of preset time, if adjusted Degree server repeatedly receives the processing initiated based on a certain card reader sequence number being specifically present in frequency control list When request, it is believed that blacklist is added in the card reader Serial No. illegal sequence number;Specifically, if dispatch server judges It receives in the second prefixed time interval before processing is requested, was once written into according to the card reader sequence number that processing request obtains Into frequency control list, then further judge in the 4th prefixed time interval before receiving processing request, according to Whether the number that the card reader sequence number that processing request obtains once was written in frequency control list reaches the second preset value, In the 4th prefixed time interval and the second preset value be preset value, can be set according to application scenarios, such as: the 4th preset time Between be divided into 5 minutes, the second preset value be 100 times, if that dispatch server judge receiving be based on specific card reader sequence The processing that row number is initiated is requested in first 5 minutes, and the number for having received the processing request initiated based on the card reader sequence number is small In 100 times, then returns to the second prompt information prompt user and try simultaneously termination process again later;It is based on the reading if it has been received The number for the processing request that card device sequence number is initiated is greater than or equal to 100 times, then blacklist is written in the card reader sequence number, returned It returns error message prompt user's card reader and has been added into blacklist, and termination process;
If being visited in the first prefixed time interval before getting the visiting frequency control list moment apart from dispatch server It asks that the deposit for not including identity card sequence number in frequency control list records, then judges getting access apart from dispatch server Before the frequency control list moment in the second prefixed time interval, whether it includes card reader sequence number that visiting frequency is managed in list Deposit record, if apart from dispatch server get visiting frequency control the list moment before the second prefixed time interval Interior, visiting frequency is managed the deposit in list comprising card reader sequence number and is recorded, then termination process;
Optionally, if step apart from dispatch server get visiting frequency control the list moment before second it is default when Between interval in, visiting frequency manage list in comprising card reader sequence number deposit record, then termination process, including step It is rapid: if before getting the visiting frequency control list moment apart from dispatch server in the second prefixed time interval, access frequency The deposit comprising card reader sequence number records in degree control list, then dispatch server acquisition is got apart from dispatch server Before the visiting frequency control list moment in the 4th prefixed time interval, card reader sequence number is deposited in visiting frequency control list Enter to record frequency of occurrence, if the deposit record frequency of occurrence of card reader sequence number returns to the second prompt less than the second preset value Information and termination process;If the deposit record frequency of occurrence of card reader sequence number is greater than or equal to the second preset value, will Card reader sequence number is stored in blacklist, returns to error message and termination process;
In order to further ensure the integrality of abnormal data, it is ensured that processing safety is obtained when determining apart from dispatch server It gets before the visiting frequency control list moment in the first prefixed time interval, visiting frequency, which is managed, does not include identity card in list In the case where the deposit record of sequence number, it can further judge that dispatch server judges getting access apart from dispatch server Before the frequency control list moment in the second prefixed time interval, whether it includes card reader sequence number that visiting frequency is managed in list Deposit record and judge apart from dispatch server getting visiting frequency manage the list moment before the 4th preset time In interval, visiting frequency manages the deposit in list comprising card reader sequence number and records number, in one section of preset time, if Dispatch server repeatedly receives the place initiated based on a certain card reader sequence number being specifically present in frequency control list When reason request, it is believed that blacklist is added in the card reader Serial No. illegal sequence number;Specifically, if dispatch server judges In the second prefixed time interval before receiving processing request, once write according to the card reader sequence number that processing request obtains Enter into frequency control list, then further judging in the 4th prefixed time interval before receiving processing request, root Whether reach the second preset value according to the number that the card reader sequence number that processing request obtains once was written in frequency control list, Wherein the 4th prefixed time interval and the second preset value are preset value, can be set according to application scenarios, such as: the 4th it is default when Between between be divided into 5 minutes, the second preset value be 100 times, if that dispatch server judge receiving be based on specific card reader The processing that sequence number is initiated is requested in first 5 minutes, and the number for the processing request initiated based on the card reader sequence number is had received Less than 100 times, then returns to the second prompt information prompt user and try simultaneously termination process again later;Being based on if it has been received should The number for the processing request that card reader sequence number is initiated is greater than or equal to 100 times, then blacklist is written in the card reader sequence number, It returns to error message prompt user's card reader and has been added into blacklist, and termination process;
S602: dispatch server judges second before getting the visiting frequency control list moment apart from dispatch server In prefixed time interval, visiting frequency manages in list whether the deposit comprising card reader sequence number records, if dispatching in distance Server is got before the visiting frequency control list moment in the second prefixed time interval, includes in visiting frequency control list The deposit of card reader sequence number records, then termination process;
To avoid by Replay Attack, abnormal identity card sequence number and abnormal card reader sequence number can be frozen control centainly Duration, under control state, dispatch server is not handled the request that it is initiated, and dispatch server can first determine whether It is got before the visiting frequency control list moment in the first prefixed time interval apart from dispatch server, visiting frequency manages name Whether the deposit comprising card reader sequence number records in list, if when getting visiting frequency control list apart from dispatch server Before quarter in the first prefixed time interval, visiting frequency is managed the deposit in list comprising card reader sequence number and is recorded, and illustrates this Card reader sequence number is also in freezing control state, termination process;Wherein, the first prefixed time interval is preset value, can It is configured according to specific application scenarios, for example, can be set between the first preset time when card-reading terminal is automatic ticket taking machine It is divided into 1 minute, that is to say, that when finding that certain specific card reader sequence number is in frequency control list, at next 1 minute Within, processing operation is not carried out to the request initiated based on the card reader sequence number;Optionally, when certain specific card reader sequence of discovery When row number is in frequency control list, prompt information prompt user's Card reader status exception is returned, is please tried again later;
Optionally, if step apart from dispatch server get visiting frequency control the list moment before second it is default when Between interval in, visiting frequency manage list in comprising card reader sequence number deposit record, then termination process, including step It is rapid: if before getting the visiting frequency control list moment apart from dispatch server in the second prefixed time interval, access frequency The deposit comprising card reader sequence number records in degree control list, then dispatch server acquisition is got apart from dispatch server Before the visiting frequency control list moment in the 4th prefixed time interval, card reader sequence number is deposited in visiting frequency control list Enter to record frequency of occurrence, if the deposit record frequency of occurrence of card reader sequence number returns to the second prompt less than the second preset value Information and termination process;If the deposit record frequency of occurrence of card reader sequence number is greater than or equal to the second preset value, will Card reader sequence number is stored in blacklist, returns to error message and termination process;
In order to further ensure the integrality of abnormal data, it is ensured that processing safety is obtained when determining apart from dispatch server It gets before the visiting frequency control list moment in the second prefixed time interval, it includes card reader sequence in list that visiting frequency, which is managed, In the case where the deposit record of row number, it can further judge getting the visiting frequency control list moment apart from dispatch server Before in the 4th prefixed time interval, visiting frequency manages the deposit in list comprising card reader sequence number and records number;One In section preset time, if dispatch server is repeatedly received based on a certain card reading being specifically present in frequency control list When the processing request that device sequence number is initiated, it is believed that blacklist is added in the card reader Serial No. illegal sequence number;Specifically, If dispatch server judges in the second prefixed time interval before receiving processing request, the reading obtained according to processing request Card device sequence number was once written in frequency control list, then further judging receiving the before handling request the 4th in advance If in time interval, whether being once written to the number in frequency control list according to the card reader sequence number that processing request obtains Reach the second preset value, wherein the 4th prefixed time interval and the second preset value are preset value, can be set according to application scenarios, Such as: the 4th prefixed time interval is 5 minutes, and the second preset value is 100 times, if that dispatch server judges receiving The processing initiated based on specific card reader sequence number is requested in first 5 minutes, is had received based on card reader sequence number initiation The number of request is handled less than 100 times, then returns to the second prompt information prompt user and tries simultaneously termination process again later;If The number for having received the processing request initiated based on the card reader sequence number is greater than or equal to 100 times, then by the card reader sequence Blacklist is written in row number, returns to error message prompt user's card reader and has been added into blacklist, and termination process;
Optionally, if step apart from dispatch server get visiting frequency control the list moment before second it is default when Between interval in, visiting frequency manage list in comprising card reader sequence number deposit record after, further comprise the steps of: dispatch service Device judges that before getting the visiting frequency control list moment apart from dispatch server in the first prefixed time interval, access is frequently Whether the deposit comprising identity card sequence number records in degree control list, if getting visiting frequency pipe apart from dispatch server Before the control list moment in the first prefixed time interval, visiting frequency is managed the deposit in list comprising identity card sequence number and is remembered Record, then dispatch server obtains the third preset time before getting the visiting frequency control list moment apart from dispatch server In interval, the deposit that visiting frequency manages identity card sequence number in list records frequency of occurrence, if the deposit of identity card sequence number It records frequency of occurrence and is greater than or equal to the first preset value, then identity card sequence number is stored in blacklist;
In order to further ensure the integrality of abnormal data, it is ensured that processing safety is obtained when determining apart from dispatch server It gets before the visiting frequency control list moment in the second prefixed time interval, it includes card reader sequence in list that visiting frequency, which is managed, In the case where the deposit record of row number, it can further judge that dispatch server judges getting access frequency apart from dispatch server Before the degree control list moment in the first prefixed time interval, whether it includes identity card sequence number that visiting frequency is managed in list Deposit records and judges before getting the visiting frequency control list moment apart from dispatch server between third preset time Every interior, in visiting frequency control list comprising identity card sequence number deposit record number, in one section of preset time, if adjusted Degree server repeatedly receives the processing initiated based on a certain identity card sequence number being specifically present in frequency control list When request, it is believed that blacklist is added in the identity card Serial No. illegal sequence number;Specifically, if dispatch server judges It receives in the first prefixed time interval before processing is requested, was once written into according to the identity card sequence number that processing request obtains Into frequency control list, then further judge in the third prefixed time interval before receiving processing request, according to Whether the number that the identity card sequence number that processing request obtains once was written in frequency control list reaches the first preset value, Middle third prefixed time interval and the first preset value are preset value, can be set according to application scenarios, such as: third preset time Between be divided into 5 minutes, the first preset value be 100 times, if that dispatch server judge receiving based on specific identity card sequence The processing that row number is initiated is requested in first 5 minutes, and the number for having received the processing request initiated based on the identity card sequence number is small In 100 times, then returns to the first prompt information prompt user and try simultaneously termination process again later;It is based on the body if it has been received The identity card sequence number is then written blacklist, returned by the number for the processing request that part card sequence number is initiated more than or equal to 100 times It returns error message prompt user's identity card and has been added into blacklist, and termination process;
If being visited in the second prefixed time interval before getting the visiting frequency control list moment apart from dispatch server It asks that the deposit for not including card reader sequence number in frequency control list records, then judges getting access apart from dispatch server Before the frequency control list moment in the first prefixed time interval, whether it includes identity card sequence number that visiting frequency is managed in list Deposit record, if apart from dispatch server get visiting frequency control the list moment before the first prefixed time interval Interior, visiting frequency is managed the deposit in list comprising identity card sequence number and is recorded, then termination process;
Optionally, if step apart from dispatch server get visiting frequency control the list moment before first it is default when Between interval in, visiting frequency manage list in comprising identity card sequence number deposit record, then termination process, including step It is rapid: if before getting the visiting frequency control list moment apart from dispatch server in the first prefixed time interval, access frequency The deposit comprising identity card sequence number records in degree control list, then dispatch server acquisition is got apart from dispatch server Before the visiting frequency control list moment in third prefixed time interval, identity card sequence number is deposited in visiting frequency control list Enter to record frequency of occurrence, if the deposit record frequency of occurrence of identity card sequence number returns to the first prompt less than the first preset value Information and termination process;If the deposit record frequency of occurrence of identity card sequence number is greater than or equal to the first preset value, will Identity card sequence number is stored in blacklist, returns to error message and termination process;
In order to further ensure the integrality of abnormal data, it is ensured that processing safety is obtained when determining apart from dispatch server It gets before the visiting frequency control list moment in the second prefixed time interval, visiting frequency, which is managed, does not include card reader in list In the case where the deposit record of sequence number, it can further judge that dispatch server judges getting access apart from dispatch server Before the frequency control list moment in the first prefixed time interval, whether it includes identity card sequence number that visiting frequency is managed in list Deposit record and judge apart from dispatch server getting visiting frequency manage the list moment before third preset time In interval, visiting frequency manages the deposit in list comprising identity card sequence number and records number, in one section of preset time, if Dispatch server repeatedly receives the place initiated based on a certain identity card sequence number being specifically present in frequency control list When reason request, it is believed that blacklist is added in the identity card Serial No. illegal sequence number;Specifically, if dispatch server judges In the first prefixed time interval before receiving processing request, once write according to the identity card sequence number that processing request obtains Enter into frequency control list, then further judging in the third prefixed time interval before receiving processing request, root Whether reach the first preset value according to the number that the identity card sequence number that processing request obtains once was written in frequency control list, Wherein third prefixed time interval and the first preset value are preset value, can be set according to application scenarios, such as: when third is preset Between between be divided into 5 minutes, the first preset value be 100 times, if that dispatch server judge receiving based on specific identity card The processing that sequence number is initiated is requested in first 5 minutes, and the number for the processing request initiated based on the identity card sequence number is had received Less than 100 times, then returns to the first prompt information prompt user and try simultaneously termination process again later;Being based on if it has been received should The number for the processing request that identity card sequence number is initiated is greater than or equal to 100 times, then blacklist is written in the identity card sequence number, It returns to error message prompt user's identity card and has been added into blacklist, and termination process;
If dispatch server judges that before getting the visiting frequency control list moment apart from dispatch server, first is pre- If in time interval, visiting frequency manages in list whether the deposit comprising identity card sequence number records, and judges to adjust in distance Degree server is got before the visiting frequency control list moment in the second prefixed time interval, is in visiting frequency control list The no deposit record comprising card reader sequence number, if dispatch server judges getting visiting frequency pipe apart from dispatch server Before the control list moment in the first prefixed time interval, visiting frequency manages the deposit note for not including identity card sequence number in list It records and before getting the visiting frequency control list moment apart from dispatch server in the second prefixed time interval, visiting frequency The deposit record for not including card reader sequence number in list is managed, S7 is thened follow the steps;
When dispatch server judges that before getting the visiting frequency control list moment apart from dispatch server, first is pre- If in time interval, visiting frequency manages the deposit record for not including identity card sequence number in list and apart from dispatch server It gets before the visiting frequency control list moment in the second prefixed time interval, visiting frequency, which is managed, does not include card reading in list When the deposit record of device sequence number, the identity card sequence number and the card reader sequence number can be determined in the first prefixed time interval With do not occurred abnormality in the second prefixed time interval, further judge the identity card sequence number or the card reader sequence Whether row number is in abnormality in this request;
S7, dispatch server obtains exception rules, and executes step S801 or step S802;
S801: dispatch server judges whether identity card sequence number meets exception rules, if identity card sequence number meet it is different It is conventional then, then termination process;
Exception rules can store in dispatch server memory, can also obtain from external equipment, scheduling clothes Business device can judge whether identity card sequence number or card reader sequence number in this request are in abnormal shape according to exception rules State;
Optionally, authentication ids information process request further include: timestamp secret value and card reader count secret value;Step Rapid S2 further includes that dispatch server obtains decryption time stamp secret value and card reader counts timestamp and card reading that secret value obtains Device count value, wherein timestamp demonstrate,proves authentication information by the card reader identity-based of generation authentication ids information process request The generation moment of reason request generates;Card reader count value is raw by the history processing request number of times that card reader is initiated based on card reader At;
Dispatch server judges whether identity card sequence number meets exception rules and one of following manner or more can be used Kind:
Mode one: it at the time of dispatch server is based on timestamp and receives authentication ids information process request, generates First time interval judges whether first time interval is greater than the 5th prefixed time interval and less than the 6th prefixed time interval, If first time interval is greater than the 5th prefixed time interval and less than the 6th prefixed time interval, judge that identity card sequence number closes Otherwise method judges that identity card sequence number meets exception rules;
It include the generation moment of authentication ids information process request in timestamp, dispatch server receives processing and asks When asking, it can be somebody's turn to do according at the time of receiving processing request with timestamp acquisition first time interval, first time interval representative Processing request all indicates that this time is asked if first time interval is too short or too long from the time for being received intermediate experience is generated to It asks and occurs exception in transmission process, for the security and reliability for guaranteeing processing, judge to wrap in authentication ids information process request The identity card sequence number contained is abnormal, and the zone of reasonableness of first time interval is preset value, can set according to specific application scenarios, Such as: the 5th prefixed time interval is 1 second, and the 6th prefixed time interval is 60 seconds, then when first time interval was less than 1 second Or when being greater than 60 seconds, it is possible to determine that this time the identity card sequence number in authentication ids information process request meets abnormal rule Then;
Mode two: dispatch server is based on timestamp and card reader count value, judges to obtain apart from dispatch server and visit Ask that dispatch server received adds comprising identity card sequence number before the frequency control list moment in the 7th prefixed time interval Whether the request number of times of the authentication ids information process request of close value is less than third preset value, if what dispatch server received The request number of times of authentication ids information process request comprising identity card serial number encryption value is less than third preset value, then judges Identity card sequence number is legal, otherwise, judges that identity card sequence number meets exception rules;
When the authentication ids information process request generated based on a certain specific identity card sequence number is multiple in a short time When appearance, it is possible to determine that the identity card sequence number meets exception rules, and the 7th prefixed time interval and third preset value are pre- If value, can set according to concrete application scene, for example, the 7th prefixed time interval is 5 minutes, third preset value is 100 times, that Dispatch server reads this and handles the timestamp in requesting and based at the 100th time before identity card sequence number generation Timestamp in reason request, judges that the time interval between two timestamps whether less than 5 minutes, if it is less than 5 minutes, is then sentenced The fixed identity card sequence number meets exception rules;
Optionally, dispatch server judges whether card reader sequence number meets one of exception rules following manner or more Kind:
Mode one: it at the time of dispatch server is based on timestamp and receives authentication ids information process request, generates First time interval judges whether first time interval is greater than the 8th prefixed time interval and less than the 9th prefixed time interval, If first time interval is greater than the 8th prefixed time interval and less than the 9th prefixed time interval, judge that card reader sequence number closes Otherwise method judges that card reader sequence number meets exception rules;
It include the generation moment of authentication ids information process request in timestamp, dispatch server receives processing and asks When asking, it can be somebody's turn to do according at the time of receiving processing request with timestamp acquisition first time interval, first time interval representative Processing request all indicates that this time is asked if first time interval is too short or too long from the time for being received intermediate experience is generated to It asks and occurs exception in transmission process, for the security and reliability for guaranteeing processing, judge to wrap in authentication ids information process request The card reader sequence number contained is abnormal, and the zone of reasonableness of first time interval is preset value, can set according to specific application scenarios, Such as: the 8th prefixed time interval is 1 second, and the 9th prefixed time interval is 60 seconds, then when first time interval was less than 1 second Or when being greater than 60 seconds, it is possible to determine that this time the card reader sequence number in authentication ids information process request meets abnormal rule Then;
Mode two: dispatch server is based on timestamp and card reader count value, judges to get apart from dispatch server Before the visiting frequency control list moment in the tenth prefixed time interval, what dispatch server received includes card reader sequence number Authentication ids information process request request number of times whether less than the 4th preset value, if dispatch server receive include The request number of times of the authentication ids information process request of card reader sequence number then judges card reader sequence less than the 4th preset value It is number legal, otherwise, judge that card reader sequence number meets exception rules;
When the authentication ids information process request generated based on a certain specific card reader sequence number is multiple in a short time When appearance, it is possible to determine that the card reader sequence number meets exception rules, and the tenth prefixed time interval and the 4th preset value are pre- If value, can set according to concrete application scene, for example, the tenth prefixed time interval is 5 minutes, the 4th preset value is 100 times, that Dispatch server reads this and handles the timestamp in requesting and based at the 100th time before card reader sequence number generation Timestamp in reason request, judges that the time interval between two timestamps whether less than 5 minutes, if it is less than 5 minutes, is then sentenced The fixed card reader sequence number meets exception rules;
Mode three: dispatch server is based on card reader count value, judges the authentication ids information processing continuously received Whether meet preset rules with the card reader count value of card reader sequence numbers match in request, if card reader count value meet it is default Rule then judges that card reader sequence number is legal, otherwise, judges that card reader sequence number meets exception rules;
When card reader initiates authentication ids information process request, card reader count value can be become according to preset rules Change, for example, every initiation single treatment is requested, card reader count value adds one;After dispatch server receives processing request, extracts and read Card device sequence number and card reader count value judge that the card reader in last time processing request corresponding with the card reader sequence number counts Whether value and this card reader count value meet preset rules, if not meeting preset rules, it is abnormal to illustrate that the card reader exists, Its card reader sequence number meets exception rules;
Optionally, if step identity card sequence number meets exception rules, termination process, comprising steps of if identity Card sequence number meets exception rules, then identity card sequence number deposit visiting frequency is managed list, return to the first prompt information simultaneously Termination process;
In order to further ensure the integrality of abnormal data, the dynamic and intelligence of processing are promoted, it is ensured that processing safety, In the case where determining that identity card sequence number meets exception rules, identity card sequence number write-in frequency further can be managed into name Single, return information prompt user's identity card please tries again later in the presence of abnormal, and termination process, to realize that frequency is managed The dynamic change of list promotes the intelligence of authentication ids information process request treatment process;
Optionally, if further comprising the steps of: after step identity card sequence number meets exception rules and judging card reader sequence number Whether meet exception rules, if card reader sequence number meets exception rules, card reader sequence number write-access frequency is managed List;
In order to further ensure the integrality of abnormal data, the dynamic and intelligence of processing are promoted, it is ensured that processing safety, In the case where determining that identity card sequence number meets exception rules, it can further judge whether card reader sequence number meets abnormal rule Then, if card reader sequence number meets exception rules, card reader sequence number write-access frequency control list return information is mentioned Show that user's card reader is please tried again later in the presence of abnormal, and termination process, to realize that the dynamic of frequency control list becomes Change, promotes the intelligence of authentication ids information process request treatment process;
If identity card sequence number does not meet exception rules, judge whether card reader sequence number meets exception rules, if reading Card device sequence number meets exception rules, then termination process;
Optionally, if step card reader sequence number meets exception rules, termination process, comprising steps of if card reading Device sequence number meets exception rules, then card reader sequence number deposit visiting frequency is managed list, return to the second prompt information simultaneously Termination process;
In order to further ensure the integrality of abnormal data, the dynamic and intelligence of processing are promoted, it is ensured that processing safety, In the case where determining that identity card sequence number does not meet exception rules, it can further judge whether card reader sequence number meets exception Card reader sequence number write-access frequency is managed list return information if card reader sequence number meets exception rules by rule Prompt user's card reader is please tried again later in the presence of abnormal, and termination process, to realize the dynamic of frequency control list Variation promotes the intelligence of authentication ids information process request treatment process;
S802: dispatch server judges whether card reader sequence number meets exception rules, if card reader sequence number meet it is different It is conventional then, then termination process;
With S801 correspondingly, dispatch server can also first be sentenced to whether card reader sequence number meets exception rules It is disconnected,
Optionally, if step card reader sequence number meets exception rules, termination process, comprising steps of if card reading Device sequence number meets exception rules, then card reader sequence number deposit visiting frequency is managed list, return to the second prompt information simultaneously Termination process;
In order to further ensure the integrality of abnormal data, the dynamic and intelligence of processing are promoted, it is ensured that processing safety, In the case where determining that card reader sequence number meets exception rules, card reader sequence number write-in frequency further can be managed into name Single, return information prompt user's card reader is please tried again later in the presence of abnormal, and termination process, to realize that frequency is managed The dynamic change of list promotes the intelligence of authentication ids information process request treatment process;
Optionally, if further comprising the steps of: after step card reader sequence number meets exception rules and judging identity card sequence number Whether meet exception rules, if identity card sequence number meets exception rules, identity card sequence number write-access frequency is managed List;
In order to further ensure the integrality of abnormal data, the dynamic and intelligence of processing are promoted, it is ensured that processing safety, In the case where determining that card reader sequence number meets exception rules, it can further judge whether identity card sequence number meets abnormal rule Then, if identity card sequence number meets exception rules, identity card sequence number write-access frequency control list return information is mentioned Show that user's identity card please tries again later in the presence of abnormal, and termination process, to realize that the dynamic of frequency control list becomes Change, promotes the intelligence of authentication ids information process request treatment process;
If card reader sequence number does not meet exception rules, judge whether identity card sequence number meets exception rules, if body Part card sequence number meets exception rules, then termination process;
Optionally, if step identity card sequence number meets exception rules, termination process, comprising steps of if identity Card sequence number meets exception rules, then identity card sequence number deposit visiting frequency is managed list, return to the first prompt information simultaneously Termination process;
In order to further ensure the integrality of abnormal data, the dynamic and intelligence of processing are promoted, it is ensured that processing safety, In the case where determining that card reader sequence number does not meet exception rules, it can further judge whether identity card sequence number meets exception Identity card sequence number write-access frequency is managed list return information if identity card sequence number meets exception rules by rule Prompt user's identity card please tries again later in the presence of abnormal, and termination process, to realize the dynamic of frequency control list Variation promotes the intelligence of authentication ids information process request treatment process;
If dispatch server judges that identity card sequence number and card reader sequence number do not meet exception rules, then follow the steps S9;
S9: dispatch server handles authentication ids information process request;
When dispatch server judges identity card sequence number and card reader sequence number does not meet exception rules, then illustrate body Part card sequence number and card reader sequence number do not appear in blacklist, and between the preset time before receiving processing request It is not appeared in frequency control list every interior, while not meeting exception rules, that is to say, that identity card sequence number and card reading at this time Device sequence number is legal, at this point, dispatch server is to the identity based on the identity card sequence number and card reader sequence number generation Identification demonstrate,proves information process request and carries out processing operation.
The method provided through the embodiment of the present invention can be realized to being generated based on abnormal identity card or abnormal card reader Authentication ids information process request carries out effective abnormality processing, is made using identity card sequence number and/or card reader sequence number It is managed, is avoided because of other factors, the legitimate request as caused by the variation of IP address or the variation of card type for key value It can not be executed, by blacklist, can be asked in the processing for preventing illegal identity card or illegal card reader initiation at the first time Ask, abnormality eliminating method through the invention can be realized blacklist dynamic update, enhance abnormality processing dynamic and Real-time;Managing list by frequency can be realized to the exception for occurring abnormal identity card or card reader in a short time before Reason is realized and is freezed in short-term to Short Term Anomalous identity card or card reader, avoids the security risk caused by the processing of illegal request, The dynamic that abnormality eliminating method through the invention can be realized frequency control list updates, and enhances the dynamic of abnormality processing And real-time;It can be realized the abnormal judgement to current identity card or card reader by exception rules, even if this processing request In identity card or card reader be not included in blacklist or the control of frequency control list within the scope of, equally can recognize that different Normal identity card or card reader improve and believe authentication ids to realize triple dynamic authentications to identity card and card reader The safety and reliability of breath processing request processing.
Embodiment 2:
The present embodiment provides a kind of authentication ids information process request abnormality processing systems, as shown in Fig. 2, including scheduling Server 201 and card reader of ID card 202:
Wherein, card reader of ID card 202 are asked for generating authentication ids information process request, and by identity card processing It asks and is sent to dispatch server 201;Wherein, authentication ids information process request includes: identity card serial number encryption value and reading Card device sequence number;
Dispatch server 201 obtains decryption identity and demonstrate,proves serial number encryption for receiving authentication ids information process request The identity card sequence number that value obtains;
Dispatch server 201 is also used to obtain blacklist, judges whether identity card sequence number is included in blacklist, if Identity card sequence number is included in blacklist, then termination process;
Dispatch server 201 can obtain blacklist from memory, can also obtain blacklist, black name from outside It include illegal identity card sequence number and illegal card reader sequence number in list;If the authentication ids information process request received In include illegal identity card sequence number or illegal card reader sequence number, then the authentication ids information process request is in Illegal state can not normally be accepted by server.
Dispatch server 201 is also used to obtain blacklist, and judges whether card reader sequence number is included in blacklist, If card reader sequence number is included in blacklist, termination process;
Dispatch server 201 is also used to judging that identity card sequence number and card reader sequence number be not included in blacklist It when interior, obtain visiting frequency and manages list, and judge getting the visiting frequency control list moment apart from dispatch server 201 Before in the first prefixed time interval, visiting frequency manages in list whether the deposit comprising identity card sequence number records, if It is got before the visiting frequency control list moment in the first prefixed time interval apart from dispatch server 201, visiting frequency pipe It controls the deposit in list comprising identity card sequence number to record, then termination process;
If dispatch server 201 judges that identity card sequence number and card reader sequence number are not included in blacklist, explanation Identity card sequence number and card reader sequence number are all legal, that is to say, that the authentication ids information process request, which is in, to be closed Method state, need to further judge whether the authentication ids information process request is in by control state;
Dispatch server 201 can obtain visiting frequency control list from memory, can also obtain from outside Visiting frequency manages list, and it includes the identity card sequence number managed and the card reader managed that visiting frequency, which is managed in list, Sequence number;If including the identity card sequence number managed or the reading managed in the authentication ids information process request received Card device sequence number need to be frozen ability after certain time length then the authentication ids information process request is in by control state It thaws, currently can not normally be accepted by server.
To avoid by Replay Attack, abnormal identity card sequence number and abnormal card reader sequence number can be frozen control centainly Duration, under control state, dispatch server 201 is not handled the request that it is initiated, and dispatch server 201 can be first Judge access before getting the visiting frequency control list moment apart from dispatch server 201 in first prefixed time interval Frequency manages in list whether the deposit comprising identity card sequence number records, if getting access apart from dispatch server 201 Before the frequency control list moment in the first prefixed time interval, depositing comprising identity card sequence number in visiting frequency control list Enter record, illustrates the identity card sequence number also in freezing control state, termination process;Wherein, between the first preset time It is divided into preset value, can be configured according to specific application scenarios, for example, can be set when card-reading terminal is automatic ticket taking machine First prefixed time interval is 1 minute, that is to say, that when finding that certain specific identity card sequence number is in frequency control list, Within next 1 minute, processing operation is not carried out to the request initiated based on the identity card sequence number;Optionally, work as hair When existing certain specific identity card sequence number is in frequency control list, returns to prompt information and prompts user's identity card abnormal state, Please try again later;
If first prefixed time interval before getting the visiting frequency control list moment apart from dispatch server 201 Interior, visiting frequency manages the deposit record for not including identity card sequence number in list, then judges to obtain apart from dispatch server 201 It gets before the visiting frequency control list moment in the second prefixed time interval, whether it includes card reading that visiting frequency is managed in list The deposit of device sequence number records, if second pre- before getting the visiting frequency control list moment apart from dispatch server 201 If in time interval, visiting frequency is managed the deposit in list comprising card reader sequence number and is recorded, then termination process;
Dispatch server 201 is also used to judging that identity card sequence number and card reader sequence number be not included in blacklist It when interior, obtain visiting frequency and manages list, and judge getting the visiting frequency control list moment apart from dispatch server 201 Before in the second prefixed time interval, visiting frequency manages in list whether the deposit comprising card reader sequence number records, if It is got before the visiting frequency control list moment in the second prefixed time interval apart from dispatch server 201, visiting frequency pipe It controls the deposit in list comprising card reader sequence number to record, then termination process;
To avoid by Replay Attack, abnormal identity card sequence number and abnormal card reader sequence number can be frozen control centainly Duration, under control state, dispatch server 201 is not handled the request that it is initiated, and dispatch server 201 can be first Judge access before getting the visiting frequency control list moment apart from dispatch server 201 in first prefixed time interval Frequency manages in list whether the deposit comprising card reader sequence number records, if getting access apart from dispatch server 201 Before the frequency control list moment in the first prefixed time interval, depositing comprising card reader sequence number in visiting frequency control list Enter record, illustrates the card reader sequence number also in freezing control state, termination process;Wherein, between the first preset time It is divided into preset value, can be configured according to specific application scenarios, for example, can be set when card-reading terminal is automatic ticket taking machine First prefixed time interval is 1 minute, that is to say, that when finding that certain specific card reader sequence number is in frequency control list, Within next 1 minute, processing operation is not carried out to the request initiated based on the card reader sequence number;Optionally, work as hair When certain existing specific card reader sequence number is in frequency control list, prompt information prompt user's Card reader status exception is returned, Please try again later;
If second prefixed time interval before getting the visiting frequency control list moment apart from dispatch server 201 Interior, visiting frequency manages the deposit record for not including card reader sequence number in list, then judges to obtain apart from dispatch server 201 It gets before the visiting frequency control list moment in the first prefixed time interval, whether it includes identity that visiting frequency is managed in list The deposit record of sequence number is demonstrate,proved, if first pre- before getting the visiting frequency control list moment apart from dispatch server 201 If in time interval, visiting frequency is managed the deposit in list comprising identity card sequence number and is recorded, then termination process;
Dispatch server 201 is also used to judging to get the visiting frequency control list moment apart from dispatch server 201 Before in the first prefixed time interval, visiting frequency manages the deposit record for not including identity card sequence number in list and in distance Dispatch server 201 is got before the visiting frequency control list moment in the second prefixed time interval, and visiting frequency manages name When deposit in list not comprising card reader sequence number records, exception rules are obtained, and it is different to judge whether identity card sequence number meets It is conventional then, if identity card sequence number meets exception rules, termination process;
Exception rules can store in 201 memory of dispatch server, can also obtain from external equipment, scheduling Server 201 can judge whether identity card sequence number or card reader sequence number in this request are in different according to exception rules Normal state;
If identity card sequence number does not meet exception rules, judge whether card reader sequence number meets exception rules, if reading Card device sequence number meets exception rules, then termination process;
When dispatch server 201 judges before getting the visiting frequency control list moment apart from dispatch server 201 In first prefixed time interval, visiting frequency is managed the deposit record for not including identity card sequence number in list and is dispatched in distance Server 201 is got before the visiting frequency control list moment in the second prefixed time interval, and visiting frequency is managed in list When deposit not comprising card reader sequence number records, it can determine that the identity card sequence number and the card reader sequence number are pre- first If time interval and not occurring abnormality in the second prefixed time interval, further judge the identity card sequence number or Whether the card reader sequence number is in abnormality in this request;
Dispatch server 201 is also used to judging to get the visiting frequency control list moment apart from dispatch server 201 Before in the first prefixed time interval, visiting frequency manages the deposit record for not including identity card sequence number in list and in distance Dispatch server 201 is got before the visiting frequency control list moment in the second prefixed time interval, and visiting frequency manages name When deposit in list not comprising card reader sequence number records, exception rules are obtained, and it is different to judge whether card reader sequence number meets It is conventional then, if card reader sequence number meets exception rules, termination process;If card reader sequence number does not meet abnormal rule Then, then judge whether identity card sequence number meets exception rules, if identity card sequence number meets exception rules, termination stream Journey;
Dispatch server 201 is also used to judging that identity card sequence number and card reader sequence number do not meet exception rules When, authentication ids information process request is handled.
Optionally, dispatch server 201 are also used to getting visiting frequency control list apart from dispatch server 201 Before moment in the first prefixed time interval, if the deposit comprising identity card sequence number records in visiting frequency control list, Obtain access before getting the visiting frequency control list moment apart from dispatch server 201 in third prefixed time interval The deposit that frequency manages identity card sequence number in list records frequency of occurrence, if the deposit of identity card sequence number records frequency of occurrence Less than the first preset value, then the first prompt information and termination process are returned;Occur if the deposit of identity card sequence number records Number is greater than or equal to the first preset value, then identity card sequence number is stored in blacklist, returns to error message and termination stream Journey;
In order to further ensure the integrality of abnormal data, it is ensured that processing safety, when determining apart from dispatch server 201 It gets before the visiting frequency control list moment in the first prefixed time interval, it includes identity card in list that visiting frequency, which is managed, In the case where the deposit record of sequence number, it can further judge getting visiting frequency control name apart from dispatch server 201 Before single moment in third prefixed time interval, visiting frequency manages the deposit record in list comprising identity card sequence number Number;In one section of preset time, specifically it is present in frequency control name based on a certain if received for dispatch server more than 201 times When the processing request that the identity card sequence number in list is initiated, it is believed that black name is added in the identity card Serial No. illegal sequence number It is single;Specifically, if dispatch server 201 judges in the first prefixed time interval before receiving processing request, according to place The identity card sequence number that reason request obtains once was written in frequency control list, then further judging to ask receiving processing In third prefixed time interval before asking, frequency control name was once written to according to the identity card sequence number that processing request obtains Whether the number in list reaches the first preset value, and wherein third prefixed time interval and the first preset value are preset value, can root It is set according to application scenarios, such as: third prefixed time interval is 5 minutes, and the first preset value is 100 times, if that scheduling clothes Business device 201 judge receiving based on specific identity card sequence number initiate processing request preceding 5 minutes in, have received be based on be somebody's turn to do The number for the processing request that identity card sequence number is initiated then returns to the first prompt information prompt user and tries again later less than 100 times And termination process;The number for the processing request initiated if it has been received based on the identity card sequence number is greater than or equal to 100 times, then blacklist is written into the identity card sequence number, returns to error message prompt user's identity card and be added into black name It is single, and termination process;
Optionally, dispatch server 201 are also used to getting visiting frequency control list apart from dispatch server 201 Before moment in the second prefixed time interval, when visiting frequency manages the deposit record in list comprising card reader sequence number, obtain It takes before getting the visiting frequency control list moment apart from dispatch server 201 in the 4th prefixed time interval, access frequency The deposit of card reader sequence number records frequency of occurrence in degree control list, if the deposit record frequency of occurrence of card reader sequence number is small In the second preset value, then the second prompt information and termination process are returned;If the deposit of card reader sequence number records out occurrence Number is greater than or equal to the second preset value, then card reader sequence number is stored in blacklist, returns to error message and termination process.
In order to further ensure the integrality of abnormal data, it is ensured that processing safety, when determining apart from dispatch server 201 It gets before the visiting frequency control list moment in the first prefixed time interval, it includes identity card in list that visiting frequency, which is managed, In the case where the deposit record of sequence number, it can further judge that dispatch server 201 judges to obtain apart from dispatch server 201 Before managing the list moment to visiting frequency in the second prefixed time interval, whether it includes card reader that visiting frequency is managed in list The deposit of sequence number records and judges the 4th before getting the visiting frequency control list moment apart from dispatch server 201 In prefixed time interval, visiting frequency manages the deposit in list comprising card reader sequence number and records number, when one section default In, if received for dispatch server more than 201 times based on a certain card reader sequence being specifically present in frequency control list When the processing request that row number is initiated, it is believed that blacklist is added in the card reader Serial No. illegal sequence number;Specifically, it dispatches If server 201 judges in the second prefixed time interval before receiving processing request, the reading obtained according to processing request Card device sequence number was once written in frequency control list, then further judging receiving the before handling request the 4th in advance If in time interval, whether being once written to the number in frequency control list according to the card reader sequence number that processing request obtains Reach the second preset value, wherein the 4th prefixed time interval and the second preset value are preset value, can be set according to application scenarios, Such as: the 4th prefixed time interval is 5 minutes, and the second preset value is 100 times, if that dispatch server 201 judges connecing The processing initiated based on specific card reader sequence number is received to request to have received and send out based on the card reader sequence number in first 5 minutes The number of the processing request risen then returns to the second prompt information prompt user and tries simultaneously termination process again later less than 100 times; The number for the processing request initiated if it has been received based on the card reader sequence number is greater than or equal to 100 times, then by the card reading Blacklist is written in device sequence number, returns to error message prompt user's card reader and has been added into blacklist, and termination process;
Optionally, dispatch server 201 are also used to when identity card sequence number meets exception rules, then by identity card sequence Row number is stored in visiting frequency and manages list, returns to the first prompt information and termination process;Meet in card reader sequence number different It is conventional then when, then card reader sequence number deposit visiting frequency is managed into list, returns to the second prompt information and termination process;
Optionally, authentication ids information process request further include: timestamp secret value and card reader count secret value;It adjusts Server 201 is spent, is also used to obtain decryption time stamp secret value and card reader counts the timestamp and card reader that secret value obtains Count value, wherein timestamp demonstrate,proves information processing by the card reader identity-based identification of generation authentication ids information process request The generation moment of request generates;Card reader count value is generated by the history processing request number of times that card reader is initiated based on card reader;
Dispatch server 201, it is raw at the time of being also used to based on timestamp and receive authentication ids information process request At first time interval, judge whether first time interval is greater than the 5th prefixed time interval and less than between the 6th preset time Every if first time interval judges identity card sequence greater than the 5th prefixed time interval and less than the 6th prefixed time interval It is number legal, otherwise, judge that identity card sequence number meets exception rules;
Dispatch server 201 is also used to judge to obtain apart from dispatch server 201 based on timestamp and card reader count value Get before the visiting frequency control list moment in the 7th prefixed time interval, dispatch server 201 receive comprising identity Whether the request number of times for demonstrate,proving the authentication ids information process request of serial number encryption value is less than third preset value, if dispatch service The request number of times for the authentication ids information process request comprising identity card serial number encryption value that device 201 receives is less than third Preset value then judges that identity card sequence number is legal, otherwise, judges that identity card sequence number meets exception rules;
Dispatch server 201, it is raw at the time of being also used to based on timestamp and receive authentication ids information process request At first time interval, judge whether first time interval is greater than the 8th prefixed time interval and less than between the 9th preset time Every if first time interval judges card reader sequence greater than the 8th prefixed time interval and less than the 9th prefixed time interval It is number legal, otherwise, judge that card reader sequence number meets exception rules;
Dispatch server 201 is also used to judge based on timestamp and card reader count value apart from dispatch server 201 Get before the visiting frequency control list moment in the tenth prefixed time interval, dispatch server 201 receive comprising reading Whether the request number of times of the authentication ids information process request of card device sequence number is less than the 4th preset value, if dispatch server The request number of times of the 201 authentication ids information process requests comprising card reader sequence number received less than the 4th preset value, Then judge that card reader sequence number is legal, otherwise, judges that card reader sequence number meets exception rules;
Dispatch server 201 is also used to judge at the authentication ids information continuously received based on card reader count value Whether meet preset rules with the card reader count value of card reader sequence numbers match in reason request, if card reader count value meet it is pre- If regular, then judge that card reader sequence number is legal, otherwise, judges that card reader sequence number meets exception rules.
It optionally, also include certificate server 203, wherein the identity identification that dispatch server 201 is also used to receive Card information process request is sent to certificate server 203;Certificate server 203 is asked for extracting authentication ids information processing Identity card serial number encryption value, timestamp secret value and/or card reader in asking count secret value, to identity card serial number encryption Value, timestamp secret value and/or card reader count secret value and are decrypted operation, acquisition identity card sequence number, timestamp and/or Card reader count value, and identity card sequence number, timestamp and/or card reader count value are sent to dispatch server 201;
Operation is decrypted to secret value independently of dispatch server 201 in certificate server 203, on the one hand can reduce tune It spends the operation pressure of server 201 and is on the other hand able to ascend the safety of verification process.
It optionally, also include database server 204, wherein database server 204, for storing blacklist and frequency Degree control list;Dispatch server 201 is also used to generate blacklist in request blacklist or frequency control list and obtain It takes request or frequency to manage list acquisition request, and is sent to database server 204;Database server 204, is also used to When receiving blacklist acquisition request or frequency control list acquisition request, blacklist or frequency are managed by name according to request type Singly it is sent to dispatch server 201;Dispatch server 201 is also used to carrying out write-in behaviour to blacklist or frequency control list After work, updated blacklist or frequency control list are generated, and updated blacklist or frequency control list are sent to Database server 204;Database server 204 is also used to receive and store updated blacklist or frequency control list;
Blacklist and frequency control list can store in independent database server 204, promote the safety of data Property, while alleviating the data processing pressure of dispatch server 201, database server 204 manages list to blacklist and frequency Storage can be stored for ciphertext, avoid malicious access and being distorted.
The system provided through the embodiment of the present invention can be realized to being generated based on abnormal identity card or abnormal card reader Authentication ids information process request carries out effective abnormality processing, is made using identity card sequence number and/or card reader sequence number It is managed, is avoided because of other factors, the legitimate request as caused by the variation of IP address or the variation of card type for key value It can not be executed, by blacklist, can be asked in the processing for preventing illegal identity card or illegal card reader initiation at the first time Ask, abnormality eliminating method through the invention can be realized blacklist dynamic update, enhance abnormality processing dynamic and Real-time;Managing list by frequency can be realized to the exception for occurring abnormal identity card or card reader in a short time before Reason is realized and is freezed in short-term to Short Term Anomalous identity card or card reader, avoids the security risk caused by the processing of illegal request, The dynamic that abnormality eliminating method through the invention can be realized frequency control list updates, and enhances the dynamic of abnormality processing And real-time;It can be realized the abnormal judgement to current identity card or card reader by exception rules, even if this processing request In identity card or card reader be not included in blacklist or the control of frequency control list within the scope of, equally can recognize that different Normal identity card or card reader improve and believe authentication ids to realize triple dynamic authentications to identity card and card reader The safety and reliability of breath processing request processing.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example Property, it is not considered as limiting the invention, those skilled in the art are not departing from the principle of the present invention and objective In the case where can make changes, modifications, alterations, and variations to the above described embodiments within the scope of the invention.The scope of the present invention By appended claims and its equivalent limit.

Claims (16)

1. a kind of abnormality eliminating method of authentication ids information process request, which comprises the following steps:
S1: dispatch server receives authentication ids information process request, and the authentication ids information includes: identity card sequence Number secret value and card reader sequence number, wherein the sequence number of the card reader Serial No. ID card information reading terminals;
S2: the dispatch server, which obtains, decrypts the identity card sequence number that the identity card serial number encryption value obtains;
S3: the dispatch server obtains blacklist;
S4: the dispatch server judges whether the identity card sequence number or the card reader sequence number are included in the black name Dan Zhong, if the identity card sequence number or the card reader sequence number are included in the blacklist, termination process, if The identity card sequence number and the card reader sequence number are not included in the blacklist, then follow the steps S5;
S5: the dispatch server obtains visiting frequency and manages list;
S6: the dispatch server judge apart from the dispatch server get the visiting frequency control list moment it In preceding first prefixed time interval, whether the deposit comprising the identity card sequence number is remembered in the visiting frequency control list Record, or the second prefixed time interval before getting the visiting frequency control list moment apart from the dispatch server Interior, whether the deposit comprising the card reader sequence number records in the visiting frequency control list, if the dispatch server Judge before getting the visiting frequency control list moment apart from the dispatch server in the first prefixed time interval, The deposit comprising the identity card sequence number records in the visiting frequency control list, or obtains apart from the dispatch server It gets before the visiting frequency control list moment in the second prefixed time interval, includes in the visiting frequency control list The deposit of the card reader sequence number records, then termination process, if the dispatch server judges apart from the scheduling Server is got before the visiting frequency control list moment in the first prefixed time interval, and the visiting frequency manages name Deposit in list not comprising the identity card sequence number records, and is getting the visiting frequency apart from the dispatch server Before the control list moment in the second prefixed time interval, the card reader sequence is not included in the visiting frequency control list Number deposit record, then follow the steps S7;
S7, the dispatch server obtain exception rules;
S8: the dispatch server judges whether the identity card sequence number or the card reader sequence number meet exception rules, If the identity card sequence number or the card reader sequence number meet exception rules, termination process;If the identity card Sequence number and the card reader sequence number do not meet exception rules, then follow the steps S9;
S9: the dispatch server handles the authentication ids information process request.
2. the method according to claim 1, wherein in the step S4, described in the dispatch server judgement Whether identity card sequence number or the card reader sequence number are included in the blacklist, if the identity card sequence number or described Card reader sequence number is included in the blacklist, then termination process, including step S401 or step S402:
S401: the dispatch server judges whether the identity card sequence number is included in the blacklist,
If the identity card sequence number is included in the blacklist, termination process;
If the identity card sequence number is not comprised in the blacklist, judge whether the card reader sequence number is included in In the blacklist, if the card reader sequence number is included in the blacklist, termination process;
S402: the dispatch server judges whether the card reader sequence number is included in the blacklist,
If the card reader sequence number is included in the blacklist, termination process;
If the card reader sequence number is not comprised in the blacklist, judge whether the identity card sequence number is included in In the blacklist, if the identity card sequence number is included in the blacklist, termination process.
3. method according to claim 1 or 2, which is characterized in that in the step S6, the dispatch server judges The visit before the visiting frequency control list moment in the first prefixed time interval is got apart from the dispatch server Ask whether the deposit comprising the identity card sequence number records in frequency control list, or is obtained apart from the dispatch server Before managing the list moment to the visiting frequency in the second prefixed time interval, whether wrapped in the visiting frequency control list Deposit record containing the card reader sequence number, if the dispatch server judges getting institute apart from the dispatch server It states before the visiting frequency control list moment in the first prefixed time interval, includes the body in the visiting frequency control list The deposit record of part card sequence number, or before getting the visiting frequency control list moment apart from the dispatch server In second prefixed time interval, the deposit comprising the card reader sequence number is recorded in the visiting frequency control list, then eventually Only process flow, including step S601 or step S602,
S601: the dispatch server judges getting the visiting frequency control list moment apart from the dispatch server Before in the first prefixed time interval, whether the deposit comprising the identity card sequence number is remembered in the visiting frequency control list Record,
If the first prefixed time interval before getting the visiting frequency control list moment apart from the dispatch server Interior, the deposit comprising the identity card sequence number records in the visiting frequency control list, then termination process;
If the first prefixed time interval before getting the visiting frequency control list moment apart from the dispatch server Interior, the deposit that the identity card sequence number is not included in the visiting frequency control list records, then judges apart from the tune Degree server gets the visiting frequency control before the visiting frequency control list moment in the second prefixed time interval Whether the deposit comprising the card reader sequence number records in list, if getting the access apart from the dispatch server It include the card reader sequence in the visiting frequency control list before the frequency control list moment in the second prefixed time interval The deposit of row number records, then termination process;
S602: the dispatch server judges getting the visiting frequency control list moment apart from the dispatch server Before in the second prefixed time interval, whether the deposit comprising the card reader sequence number is remembered in the visiting frequency control list Record,
If the second prefixed time interval before getting the visiting frequency control list moment apart from the dispatch server Interior, the deposit comprising the card reader sequence number records in the visiting frequency control list, then termination process;
If the second prefixed time interval before getting the visiting frequency control list moment apart from the dispatch server Interior, the deposit that the card reader sequence number is not included in the visiting frequency control list records, then judges apart from the tune Degree server gets the visiting frequency control before the visiting frequency control list moment in the first prefixed time interval Whether the deposit comprising the identity card sequence number records in list, if getting the access apart from the dispatch server It include the identity card sequence in the visiting frequency control list before the frequency control list moment in the first prefixed time interval The deposit of row number records, then termination process.
4. method according to claim 1 or 2, which is characterized in that in the step S8, the dispatch server judges institute It states identity card sequence number or whether the card reader sequence number meets exception rules, if the identity card sequence number or the card reading Device sequence number meets exception rules, then termination process, including step S801 or step S802;
S801: the dispatch server judges whether the identity card sequence number meets exception rules,
If the identity card sequence number meets exception rules, termination process;
If the identity card sequence number does not meet exception rules, judge whether the card reader sequence number meets exception rules, If the card reader sequence number meets exception rules, termination process;
S802: the dispatch server judges whether the card reader sequence number meets exception rules,
If the card reader sequence number meets exception rules, termination process;
If the card reader sequence number does not meet exception rules, judge whether the identity card sequence number meets exception rules, If the identity card sequence number meets exception rules, termination process.
5. according to the method described in claim 3, it is characterized in that, in the step S8, described in the dispatch server judgement Whether identity card sequence number or the card reader sequence number meet exception rules, if the identity card sequence number or the card reader Sequence number meets exception rules, then termination process, including step S801 or step S802;
S801: the dispatch server judges whether the identity card sequence number meets exception rules,
If the identity card sequence number meets exception rules, termination process;
If the identity card sequence number does not meet exception rules, judge whether the card reader sequence number meets exception rules, If the card reader sequence number meets exception rules, termination process;
S802: the dispatch server judges whether the card reader sequence number meets exception rules,
If the card reader sequence number meets exception rules, termination process;
If the card reader sequence number does not meet exception rules, judge whether the identity card sequence number meets exception rules, If the identity card sequence number meets exception rules, termination process.
6. according to the method described in claim 3, it is characterized in that, in the step S601 and/or step S602,
If the step is first default before getting the visiting frequency control list moment apart from the dispatch server In time interval, the deposit comprising the identity card sequence number is recorded in the visiting frequency control list, then termination stream Journey, comprising steps of if first default before getting the visiting frequency control list moment apart from the dispatch server In time interval, the deposit comprising the identity card sequence number is recorded in the visiting frequency control list, then the scheduling clothes Business device obtains before getting the visiting frequency control list moment apart from the dispatch server between third preset time Every interior, the deposit record frequency of occurrence of identity card sequence number described in the visiting frequency control list, if the identity card sequence The deposit record frequency of occurrence of row number then returns to the first prompt information and termination process less than the first preset value;If described The deposit record frequency of occurrence of identity card sequence number is greater than or equal to first preset value, then deposits the identity card sequence number Enter the blacklist, returns to error message and termination process;
If the step is second default before getting the visiting frequency control list moment apart from the dispatch server In time interval, the deposit comprising the card reader sequence number is recorded in the visiting frequency control list, then termination stream Journey, comprising steps of if second default before getting the visiting frequency control list moment apart from the dispatch server In time interval, the deposit comprising the card reader sequence number is recorded in the visiting frequency control list, then the scheduling clothes Business device obtains before getting the visiting frequency control list moment apart from the dispatch server between the 4th preset time Every interior, the deposit record frequency of occurrence of card reader sequence number described in the visiting frequency control list, if the card reader sequence The deposit record frequency of occurrence of row number then returns to the second prompt information and termination process less than the second preset value;If described The deposit record frequency of occurrence of card reader sequence number is greater than or equal to second preset value, then deposits the card reader sequence number Enter the blacklist, returns to error message and termination process.
7. according to the method described in claim 4, it is characterized in that, in the step S801 and/or the step S802,
If the step identity card sequence number meets exception rules, termination process, comprising steps of if the identity Card sequence number meets exception rules, then the identity card sequence number is stored in the visiting frequency and manages list, returns to first and mentions Show information and termination process;
If the step card reader sequence number meets exception rules, termination process, comprising steps of if the card reading Device sequence number meets exception rules, then the card reader sequence number is stored in the visiting frequency and manages list, returns to second and mentions Show information and termination process.
8. according to the method described in claim 5, it is characterized in that, in the step S801 and/or the step S802,
If the step identity card sequence number meets exception rules, termination process, comprising steps of if the identity Card sequence number meets exception rules, then the identity card sequence number is stored in the visiting frequency and manages list, returns to first and mentions Show information and termination process;
If the step card reader sequence number meets exception rules, termination process, comprising steps of if the card reading Device sequence number meets exception rules, then the card reader sequence number is stored in the visiting frequency and manages list, returns to second and mentions Show information and termination process.
9. according to the method described in claim 3, it is characterized in that,
In the step S601, if getting the visiting frequency control list apart from the dispatch server in the step Before moment in the first prefixed time interval, the deposit comprising the identity card sequence number is remembered in the visiting frequency control list After record, further comprises the steps of: the dispatch server and judge getting the visiting frequency pipe apart from the dispatch server It whether include the card reader sequence in the visiting frequency control list before the control list moment in the second prefixed time interval Number deposit record, if second default before getting the visiting frequency control list moment apart from the dispatch server In time interval, the deposit comprising the card reader sequence number is recorded in the visiting frequency control list, then the scheduling clothes Business device obtains before getting the visiting frequency control list moment apart from the dispatch server between the 4th preset time Every interior, the deposit record frequency of occurrence of card reader sequence number described in the visiting frequency control list, if the card reader sequence The deposit record frequency of occurrence of row number is greater than or equal to second preset value, then is stored in the card reader sequence number described black List;
In the step S602, if getting the visiting frequency control list apart from the dispatch server in the step Before moment in the second prefixed time interval, the deposit comprising the card reader sequence number is remembered in the visiting frequency control list After record, further comprises the steps of: the dispatch server and judge getting the visiting frequency pipe apart from the dispatch server It whether include the identity card sequence in the visiting frequency control list before the control list moment in the first prefixed time interval Number deposit record, if first default before getting the visiting frequency control list moment apart from the dispatch server In time interval, the deposit comprising the identity card sequence number is recorded in the visiting frequency control list, then the scheduling clothes Business device obtains before getting the visiting frequency control list moment apart from the dispatch server between third preset time Every interior, the deposit record frequency of occurrence of identity card sequence number described in the visiting frequency control list, if the identity card sequence The deposit record frequency of occurrence of row number is greater than or equal to first preset value, then is stored in the identity card sequence number described black List.
10. according to the method described in claim 4, it is characterized in that,
In the step S801, if further comprising the steps of: and sentencing after the step identity card sequence number meets exception rules Whether the card reader sequence number that breaks meets exception rules, if the card reader sequence number meets exception rules, by the reading Card device sequence number is written the visiting frequency and manages list;
In the step S802, if further comprising the steps of: and sentencing after the step card reader sequence number meets exception rules Whether the identity card sequence number that breaks meets exception rules, if the identity card sequence number meets exception rules, by the body Part card sequence number is written the visiting frequency and manages list.
11. according to the method described in claim 5, it is characterized in that,
In the step S801, if further comprising the steps of: and sentencing after the step identity card sequence number meets exception rules Whether the card reader sequence number that breaks meets exception rules, if the card reader sequence number meets exception rules, by the reading Card device sequence number is written the visiting frequency and manages list;
In the step S802, if further comprising the steps of: and sentencing after the step card reader sequence number meets exception rules Whether the identity card sequence number that breaks meets exception rules, if the identity card sequence number meets exception rules, by the body Part card sequence number is written the visiting frequency and manages list.
12. according to claim 1, method described in 2,5,6 or 9, which is characterized in that the authentication ids information further include: Timestamp secret value and card reader count secret value;The step S2 further includes, when the dispatch server acquisition decrypts described Between stab secret value and the card reader and count the timestamp and card reader count value that secret value obtains, wherein the timestamp by When generating the card reader of the authentication ids information process request based on the generation of the authentication ids information process request It carves and generates;The card reader count value is generated by the history processing request number of times that the card reader is initiated based on the card reader;
The dispatch server judges whether the identity card sequence number meets exception rules, comprising:
At the time of the dispatch server is based on the timestamp and receives the authentication ids information process request, generate First time interval, judges whether the first time interval is greater than the 5th prefixed time interval and less than between the 6th preset time Every if the first time interval is sentenced greater than the 5th prefixed time interval and less than the 6th prefixed time interval The identity card sequence number that breaks is legal, otherwise, judges that the identity card sequence number meets exception rules;Or,
The dispatch server is based on the timestamp and the card reader count value, judges to obtain apart from the dispatch server Before managing the list moment to the visiting frequency in the 7th prefixed time interval, what the dispatch server received includes institute Whether the request number of times for stating the authentication ids information process request of identity card serial number encryption value is less than third preset value, if institute State the request for the authentication ids information process request comprising the identity card serial number encryption value that dispatch server receives Number is less than the third preset value, then judges that the identity card sequence number is legal, otherwise, judges the identity card sequence number symbol Close exception rules;
The dispatch server judges whether the card reader sequence number meets exception rules, comprising:
At the time of the dispatch server is based on the timestamp and receives the authentication ids information process request, generate The first time interval, judge the first time interval whether be greater than the 8th prefixed time interval and less than the 9th it is default when Between be spaced, if the first time interval be greater than the 8th prefixed time interval and be less than the 9th prefixed time interval, Then judge that the card reader sequence number is legal, otherwise, judges that the card reader sequence number meets exception rules;Or,
The dispatch server is based on the timestamp and the card reader count value, judges to obtain apart from the dispatch server It gets before the visiting frequency control list moment in the tenth prefixed time interval, what the dispatch server received includes Whether the request number of times of the authentication ids information process request of the card reader sequence number is less than the 4th preset value, if the tune The request number of times for the authentication ids information process request comprising the card reader sequence number that degree server receives is less than institute The 4th preset value is stated, then judges that the card reader sequence number is legal, otherwise, judges that the card reader sequence number meets abnormal rule Then;Or,
The dispatch server is based on the card reader count value, judges the authentication ids information processing continuously received Whether meet preset rules with the card reader count value of the card reader sequence numbers match in request, if the card reader meter Numerical value meets preset rules, then judges that the card reader sequence number is legal, otherwise, judges that the card reader sequence number meets exception Rule.
13. according to the method described in claim 3, it is characterized in that, the authentication ids information further include: timestamp encryption Value and card reader count secret value;The step S2, which further includes that the dispatch server obtains, decrypts the timestamp secret value The timestamp and card reader count value that secret value obtains are counted with the card reader, wherein the timestamp is by generating the body The card reader of part identification card information process request is generated based on the generation moment of the authentication ids information process request;It is described Card reader count value is generated by the history processing request number of times that the card reader is initiated based on the card reader;
The dispatch server judges whether the identity card sequence number meets exception rules, comprising:
At the time of the dispatch server is based on the timestamp and receives the authentication ids information process request, generate First time interval, judges whether the first time interval is greater than the 5th prefixed time interval and less than between the 6th preset time Every if the first time interval is sentenced greater than the 5th prefixed time interval and less than the 6th prefixed time interval The identity card sequence number that breaks is legal, otherwise, judges that the identity card sequence number meets exception rules;Or,
The dispatch server is based on the timestamp and the card reader count value, judges to obtain apart from the dispatch server Before managing the list moment to the visiting frequency in the 7th prefixed time interval, what the dispatch server received includes institute Whether the request number of times for stating the authentication ids information process request of identity card serial number encryption value is less than third preset value, if institute State the request for the authentication ids information process request comprising the identity card serial number encryption value that dispatch server receives Number is less than the third preset value, then judges that the identity card sequence number is legal, otherwise, judges the identity card sequence number symbol Close exception rules;
The dispatch server judges whether the card reader sequence number meets exception rules, comprising:
At the time of the dispatch server is based on the timestamp and receives the authentication ids information process request, generate The first time interval, judge the first time interval whether be greater than the 8th prefixed time interval and less than the 9th it is default when Between be spaced, if the first time interval be greater than the 8th prefixed time interval and be less than the 9th prefixed time interval, Then judge that the card reader sequence number is legal, otherwise, judges that the card reader sequence number meets exception rules;Or,
The dispatch server is based on the timestamp and the card reader count value, judges to obtain apart from the dispatch server It gets before the visiting frequency control list moment in the tenth prefixed time interval, what the dispatch server received includes Whether the request number of times of the authentication ids information process request of the card reader sequence number is less than the 4th preset value, if the tune The request number of times for the authentication ids information process request comprising the card reader sequence number that degree server receives is less than institute The 4th preset value is stated, then judges that the card reader sequence number is legal, otherwise, judges that the card reader sequence number meets abnormal rule Then;Or,
The dispatch server is based on the card reader count value, judges the authentication ids information processing continuously received Whether meet preset rules with the card reader count value of the card reader sequence numbers match in request, if the card reader meter Numerical value meets preset rules, then judges that the card reader sequence number is legal, otherwise, judges that the card reader sequence number meets exception Rule.
14. according to the method described in claim 4, it is characterized in that, the authentication ids information further include: timestamp encryption Value and card reader count secret value;The step S2, which further includes that the dispatch server obtains, decrypts the timestamp secret value The timestamp and card reader count value that secret value obtains are counted with the card reader, wherein the timestamp is by generating the body The card reader of part identification card information process request is generated based on the generation moment of the authentication ids information process request;It is described Card reader count value is generated by the history processing request number of times that the card reader is initiated based on the card reader;
The dispatch server judges whether the identity card sequence number meets exception rules, comprising:
At the time of the dispatch server is based on the timestamp and receives the authentication ids information process request, generate First time interval, judges whether the first time interval is greater than the 5th prefixed time interval and less than between the 6th preset time Every if the first time interval is sentenced greater than the 5th prefixed time interval and less than the 6th prefixed time interval The identity card sequence number that breaks is legal, otherwise, judges that the identity card sequence number meets exception rules;Or,
The dispatch server is based on the timestamp and the card reader count value, judges to obtain apart from the dispatch server Before managing the list moment to the visiting frequency in the 7th prefixed time interval, what the dispatch server received includes institute Whether the request number of times for stating the authentication ids information process request of identity card serial number encryption value is less than third preset value, if institute State the request for the authentication ids information process request comprising the identity card serial number encryption value that dispatch server receives Number is less than the third preset value, then judges that the identity card sequence number is legal, otherwise, judges the identity card sequence number symbol Close exception rules;
The dispatch server judges whether the card reader sequence number meets exception rules, comprising:
At the time of the dispatch server is based on the timestamp and receives the authentication ids information process request, generate The first time interval, judge the first time interval whether be greater than the 8th prefixed time interval and less than the 9th it is default when Between be spaced, if the first time interval be greater than the 8th prefixed time interval and be less than the 9th prefixed time interval, Then judge that the card reader sequence number is legal, otherwise, judges that the card reader sequence number meets exception rules;Or,
The dispatch server is based on the timestamp and the card reader count value, judges to obtain apart from the dispatch server It gets before the visiting frequency control list moment in the tenth prefixed time interval, what the dispatch server received includes Whether the request number of times of the authentication ids information process request of the card reader sequence number is less than the 4th preset value, if the tune The request number of times for the authentication ids information process request comprising the card reader sequence number that degree server receives is less than institute The 4th preset value is stated, then judges that the card reader sequence number is legal, otherwise, judges that the card reader sequence number meets abnormal rule Then;Or,
The dispatch server is based on the card reader count value, judges the authentication ids information processing continuously received Whether meet preset rules with the card reader count value of the card reader sequence numbers match in request, if the card reader meter Numerical value meets preset rules, then judges that the card reader sequence number is legal, otherwise, judges that the card reader sequence number meets exception Rule.
15. the method according to the description of claim 7 is characterized in that the authentication ids information further include: timestamp encryption Value and card reader count secret value;The step S2, which further includes that the dispatch server obtains, decrypts the timestamp secret value The timestamp and card reader count value that secret value obtains are counted with the card reader, wherein the timestamp is by generating the body The card reader of part identification card information process request is generated based on the generation moment of the authentication ids information process request;It is described Card reader count value is generated by the history processing request number of times that the card reader is initiated based on the card reader;
The dispatch server judges whether the identity card sequence number meets exception rules, comprising:
At the time of the dispatch server is based on the timestamp and receives the authentication ids information process request, generate First time interval, judges whether the first time interval is greater than the 5th prefixed time interval and less than between the 6th preset time Every if the first time interval is sentenced greater than the 5th prefixed time interval and less than the 6th prefixed time interval The identity card sequence number that breaks is legal, otherwise, judges that the identity card sequence number meets exception rules;Or,
The dispatch server is based on the timestamp and the card reader count value, judges to obtain apart from the dispatch server Before managing the list moment to the visiting frequency in the 7th prefixed time interval, what the dispatch server received includes institute Whether the request number of times for stating the authentication ids information process request of identity card serial number encryption value is less than third preset value, if institute State the request for the authentication ids information process request comprising the identity card serial number encryption value that dispatch server receives Number is less than the third preset value, then judges that the identity card sequence number is legal, otherwise, judges the identity card sequence number symbol Close exception rules;
The dispatch server judges whether the card reader sequence number meets exception rules, comprising:
At the time of the dispatch server is based on the timestamp and receives the authentication ids information process request, generate The first time interval, judge the first time interval whether be greater than the 8th prefixed time interval and less than the 9th it is default when Between be spaced, if the first time interval be greater than the 8th prefixed time interval and be less than the 9th prefixed time interval, Then judge that the card reader sequence number is legal, otherwise, judges that the card reader sequence number meets exception rules;Or,
The dispatch server is based on the timestamp and the card reader count value, judges to obtain apart from the dispatch server It gets before the visiting frequency control list moment in the tenth prefixed time interval, what the dispatch server received includes Whether the request number of times of the authentication ids information process request of the card reader sequence number is less than the 4th preset value, if the tune The request number of times for the authentication ids information process request comprising the card reader sequence number that degree server receives is less than institute The 4th preset value is stated, then judges that the card reader sequence number is legal, otherwise, judges that the card reader sequence number meets abnormal rule Then;Or,
The dispatch server is based on the card reader count value, judges the authentication ids information processing continuously received Whether meet preset rules with the card reader count value of the card reader sequence numbers match in request, if the card reader meter Numerical value meets preset rules, then judges that the card reader sequence number is legal, otherwise, judges that the card reader sequence number meets exception Rule.
16. method described in 0 or 11 according to claim 1, which is characterized in that the authentication ids information further include: time It stabs secret value and card reader counts secret value;The step S2, which further includes that the dispatch server obtains, decrypts the timestamp Secret value and the card reader count the timestamp and card reader count value that secret value obtains, wherein the timestamp is by generating Generation moment of the card reader of the authentication ids information process request based on the authentication ids information process request is raw At;The card reader count value is generated by the history processing request number of times that the card reader is initiated based on the card reader;
The dispatch server judges whether the identity card sequence number meets exception rules, comprising:
At the time of the dispatch server is based on the timestamp and receives the authentication ids information process request, generate First time interval, judges whether the first time interval is greater than the 5th prefixed time interval and less than between the 6th preset time Every if the first time interval is sentenced greater than the 5th prefixed time interval and less than the 6th prefixed time interval The identity card sequence number that breaks is legal, otherwise, judges that the identity card sequence number meets exception rules;Or,
The dispatch server is based on the timestamp and the card reader count value, judges to obtain apart from the dispatch server Before managing the list moment to the visiting frequency in the 7th prefixed time interval, what the dispatch server received includes institute Whether the request number of times for stating the authentication ids information process request of identity card serial number encryption value is less than third preset value, if institute State the request for the authentication ids information process request comprising the identity card serial number encryption value that dispatch server receives Number is less than the third preset value, then judges that the identity card sequence number is legal, otherwise, judges the identity card sequence number symbol Close exception rules;
The dispatch server judges whether the card reader sequence number meets exception rules, comprising:
At the time of the dispatch server is based on the timestamp and receives the authentication ids information process request, generate The first time interval, judge the first time interval whether be greater than the 8th prefixed time interval and less than the 9th it is default when Between be spaced, if the first time interval be greater than the 8th prefixed time interval and be less than the 9th prefixed time interval, Then judge that the card reader sequence number is legal, otherwise, judges that the card reader sequence number meets exception rules;Or,
The dispatch server is based on the timestamp and the card reader count value, judges to obtain apart from the dispatch server It gets before the visiting frequency control list moment in the tenth prefixed time interval, what the dispatch server received includes Whether the request number of times of the authentication ids information process request of the card reader sequence number is less than the 4th preset value, if the tune The request number of times for the authentication ids information process request comprising the card reader sequence number that degree server receives is less than institute The 4th preset value is stated, then judges that the card reader sequence number is legal, otherwise, judges that the card reader sequence number meets abnormal rule Then;Or,
The dispatch server is based on the card reader count value, judges the authentication ids information processing continuously received Whether meet preset rules with the card reader count value of the card reader sequence numbers match in request, if the card reader meter Numerical value meets preset rules, then judges that the card reader sequence number is legal, otherwise, judges that the card reader sequence number meets exception Rule.
CN201610041617.7A 2016-01-21 2016-01-21 A kind of abnormality eliminating method of authentication ids information process request Active CN106027472B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610041617.7A CN106027472B (en) 2016-01-21 2016-01-21 A kind of abnormality eliminating method of authentication ids information process request

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610041617.7A CN106027472B (en) 2016-01-21 2016-01-21 A kind of abnormality eliminating method of authentication ids information process request

Publications (2)

Publication Number Publication Date
CN106027472A CN106027472A (en) 2016-10-12
CN106027472B true CN106027472B (en) 2019-06-28

Family

ID=57082692

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610041617.7A Active CN106027472B (en) 2016-01-21 2016-01-21 A kind of abnormality eliminating method of authentication ids information process request

Country Status (1)

Country Link
CN (1) CN106027472B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111385244B (en) * 2018-12-27 2022-12-27 中国移动通信集团四川有限公司 Abnormal flow identification method, device, equipment, system and medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2722330Y (en) * 2004-06-24 2005-08-31 公安部第一研究所证件技术事业部 Personal identity certificating terminal
CN101276448A (en) * 2007-03-29 2008-10-01 阿里巴巴集团控股有限公司 Payment system and method performing trading with identification card including IC card
CN101656748A (en) * 2009-09-07 2010-02-24 上海亚卡商贸有限公司 Second-generation ID card online inquiry system and method based on secure network
CN103929398B (en) * 2013-01-10 2017-12-08 中国银联股份有限公司 Security information interaction system, device and method

Also Published As

Publication number Publication date
CN106027472A (en) 2016-10-12

Similar Documents

Publication Publication Date Title
US10880306B2 (en) Verification information update
EP1780680B1 (en) Procedure for control of interlock and lock
EP3941014B1 (en) Digital key-based identity authentication method, terminal apparatus, and medium
CN110324287A (en) Access authentication method, device and server
CN105488367B (en) A kind of guard method, backstage and the system of SAM device
CN105827656B (en) Identity identifying method and device based on NFC payment
CN110234111A (en) A kind of two-factor authentication key agreement protocol suitable for multiple gateway wireless sensor network
CN103366278B (en) Process the method and system of operation requests
CN106027467B (en) A kind of identity card reading response system
CN108616504A (en) A kind of sensor node identity authorization system and method based on Internet of Things
CN107948183A (en) A kind of method for distributing key and system suitable for Internet of Things
CN106027465B (en) A kind of processing method of authentication ids information process request
CN106027472B (en) A kind of abnormality eliminating method of authentication ids information process request
CN106027468B (en) A kind of abnormality processing system of authentication ids information process request
CN106027253B (en) A kind of visiting frequency control device of authentication ids information
CN108200450B (en) A kind of determination method, apparatus, electronic equipment and medium for paying close attention to legitimacy
CN106027479B (en) A kind of method for dynamically processing and system of authentication ids information process request
CN111417122B (en) Attack prevention method and device
CN109617678A (en) Intelligent lock system and password store method, device, equipment, computer media
CN106034135B (en) Identity card cloud authentication device
CN106027469B (en) The processing method and identity card cloud authentication device of authentication ids information process request
CN105959249B (en) The management method and system of electronic equipment
CN106027478B (en) A kind of visiting frequency management-control method of authentication ids information
CN107026734A (en) A kind of method and system that Password Management is carried out using certification lasting effectiveness
CN105991648B (en) A kind of dispatching method of reading identity card

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

Address after: Tiantianrong building, No. 1, Zhongguancun, Beiqing Road, Haidian District, Beijing 100094

Patentee after: TENDYRON Corp.

Address before: 100086 room 603, building 12, taiyueyuan, Haidian District, Beijing

Patentee before: Li Ming