The method and system that note is checked
Technical field
The present invention relates to the field of the communication technology, the method and system that particularly a kind of note is checked.
Background technology
Along with the fast development of the communication technology and the continuous expansion of application, many mobile value-added service have been expedited the emergence of.Wherein, note is as one of important application service mode of mobile value-added service, and quick and cheap communication service provides users with the convenient.
But, due in the prior art, user logs in client terminal device and can directly call note and send platform and carry out note and issue, this makes undoubtedly, and lawless person is organic to be taken advantage of, and can directly utilize note to send platform and send obscene pornographic, malice character assassination, false swindle, instigates turmoil, spreads rumors, endangers public security and the refuse messages such as illegal commercial advertisement.Therefore, in the prior art, can not guarantee that the note that user receives is safe and reliable.
Summary of the invention
In view of this, the method and system that the object of the present invention is to provide a kind of note to check, so that the note that user receives is safe and reliable.
For achieving the above object, the invention provides following technical scheme:
The method that note is checked, comprising:
When client terminal device receives transmitting short message, send transmitting short message request to short message service apparatus;
Wherein, described transmitting short message request comprises the particular content of described transmitting short message;
When the checking of described short message service apparatus by described transmitting short message request, search the message template matching with described transmitting short message, and the particular content of described transmitting short message is placed in to the relevant position of described message template, form and check note;
Wherein, at described short message service apparatus internal memory, store up at least one message template in advance, and be that every kind of message template configures the different rules of checking;
According to the rule of checking of described message template, to described, check that note checks;
When described, check that note is when checking, check that note to note sends platform and sends described in transmission, otherwise refusal is checked note described in sending.
Preferably, described in, check that rule comprises that short message content is checked, black list user checks, important IP user checks, request amount is checked and/or the amount of issuing is checked.
Preferably, according to the rule of checking of described message template, to described, check that note is checked and comprise:
When described message template check that rule comprises that described short message content is checked time, whether the content of checking note described in checking contains the word in responsive character library, and when not containing the word of responsive character library, assert described short message content check by, otherwise assert that described short message content is checked, do not pass through;
When described message template check that rule comprises that described black list user checks time, whether the sender who checks note described in checking is positioned at blacklist, and when not being positioned at described blacklist, assert described black list user check by, otherwise assert that described black list user checks, do not pass through;
When described message template check that rule comprises that described IP user checks time, whether the recipient who checks note described in checking is positioned at IP user's list, and when not being positioned at described IP user's list, assert described IP user check by, otherwise assert that described IP user checks, do not pass through;
When described message template check that rule comprises that described request amount is checked time, whether the request amount of checking the sender of note described in checking is less than the quantity that described request amount is checked defined, and when not surpassing the quantity of regulation, assert described request amount check by, otherwise assert that described request amount is checked, do not pass through;
When described message template check rule comprise described in the amount of issuing while checking, the quantity that described in whether the quantity of checking the recipient of note described in checking is less than, the amount of issuing is checked defined, and when not surpassing the quantity of regulation, described in assert the amount of issuing check by, otherwise described in assert, the amount of issuing is checked and is not passed through;
Wherein, described responsive character library, blacklist, IP user's list, request amount check that the quantity of defined and the quantity that the amount of issuing is checked defined are previously stored in described short message service apparatus.
Preferably, described message template comprises: log in SMS Tip template, random cipher message template, system alert message template, marketing message template, service note template and/or multimedia message template.
Preferably, described client terminal device comprises web website, WAP (wireless application protocol) wap website, widget and/or self-aided terminal.
Preferably, described when described in check that note is when checking, described in transmission, check that note to note sends after platform sends, and also comprises: when described short message service apparatus receive that described note sends that platform sends issue result time, send a notification message to described client terminal device.
The system that note is checked, comprising:
Client terminal device is used for, and when receiving transmitting short message, sends transmitting short message request to short message service apparatus; Wherein, described transmitting short message request comprises the particular content of described transmitting short message;
Described short message service apparatus comprises to be searched module, Knockdown block, checks module and the first sending module;
Wherein, described in search module for, when checking by described transmitting short message request, search the message template matching with described transmitting short message;
Described Knockdown block is used for, and the particular content of described transmitting short message is placed in to the relevant position of described message template, obtains and checks note;
Wherein, at described short message service apparatus internal memory, store up at least one message template in advance, and be that every kind of message template configures the different rules of checking;
Described check module for, according to the rule of checking of described message template, to described, check that note checks;
Described the first sending module is used for, and when described, checks that note is when checking, checks that note to note sends platform and sends described in transmission, otherwise refusal is checked note described in sending.
Preferably, described in, check that module comprises:
First check unit for, when described message template check that rule comprises that described short message content is checked time, whether the content of checking note described in checking contains the word in responsive character library, and when not containing the word of responsive character library, assert described short message content check by, otherwise assert that described short message content is checked, do not pass through;
Second check unit for, when described message template check that rule comprises that described black list user checks time, whether the sender who checks note described in checking is positioned at blacklist, and when not being positioned at described blacklist, assert described black list user check by, otherwise assert that described black list user checks, do not pass through;
The 3rd check unit for, when described message template check that rule comprises that important IP user checks time, whether the recipient who checks note described in checking is positioned at IP user's list, and when not being positioned at described IP user's list, assert described IP user check by, otherwise assert that described IP user checks, do not pass through;
The 4th check unit for, when described message template check that rule comprises that described request amount is checked time, whether the request amount of checking the sender of note described in checking is less than the quantity that described request amount is checked defined, and when not surpassing the quantity of regulation, assert described request amount check by, otherwise assert that described request amount is checked, do not pass through;
The 5th check unit for, when described message template check rule comprise described in the amount of issuing while checking, the quantity that described in whether the quantity of checking the recipient of note described in checking is less than, the amount of issuing is checked defined, and when not surpassing the quantity of regulation, described in assert the amount of issuing check by, otherwise described in assert, the amount of issuing is checked and is not passed through;
Wherein, described in, check that rule comprises: short message content is checked, black list user checks, IP user's list is checked, request amount is checked and/or the amount of issuing is checked; And described responsive character library, blacklist, IP user's list, request amount check that the quantity of defined and the quantity that the amount of issuing is checked defined are previously stored in described short message service apparatus.
Preferably, described system also comprises:
The second sending module that is positioned at short message service apparatus for, when the receiving terminal of described short message service apparatus receive described note send platform issue result time, send a notification message to described client terminal device.
Preferably, described system also comprises:
The statistical analysis module that is positioned at short message service apparatus for, statistics and analysis transmitting short message request amount, the amount of checking, note issues and the change amount of message template;
The administration module that is positioned at short message service apparatus for, to described message template, check the statistic analysis result that rule is edited and examined and shows described statistical analysis module.
By above-mentioned technical scheme, can be found out, in embodiments of the present invention, first set in advance dissimilar message template, and be that every kind of message template configures the different rules of checking; Then when client terminal device receives transmitting short message, directly by note, do not send platform and send, but search the corresponding message template of transmitting short message, and the particular content of transmitting short message is placed in to the relevant position of message template, form and check note; Then according to the rule of checking of message template, to described, check that note checks again; Finally, by by the note of checking of checking, be sent to note transmission platform and send, and for not by the note of checking of checking, refuse to send.Therefore, adopt method and system of the present invention, only issue the note by checking, and for not issuing by the note of checking, the note that can make thus user receive is safe and reliable.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The flow chart of the method that Fig. 1 checks for the note that the embodiment of the present invention provides;
The module map of the system that Fig. 2 checks for the note that the embodiment of the present invention provides;
Another module map of the system that Fig. 3 checks for the note that the embodiment of the present invention provides;
The another module map of the system that Fig. 4 checks for the note that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The invention discloses a kind of method that note is checked, as shown in Figure 1, the method at least comprises the following steps:
S11: when client terminal device receives transmitting short message, send transmitting short message request to short message service apparatus; Wherein, the communication protocol that transmitting short message request adopts is the communication protocol of said short message server unit, and transmitting short message request comprises the particular content of transmitting short message;
Concrete, client terminal device can comprise micro-of web website (website based on the Internet), wap website (website based on WAP (wireless application protocol)), widget(webpage) and/or business hall in self-aided terminal.
S12: when the checking of short message service apparatus by transmitting short message request, search the message template matching with transmitting short message, and the particular content of transmitting short message is placed in to the relevant position of message template, form and check note; Wherein, at short message service apparatus internal memory, store up at least one message template in advance, and be that every kind of message template configures the different rules of checking;
Concrete, when short message service apparatus receives transmitting short message request, first can check that whether the client sending request is from default client and IP address, when for default client and IP address, assert that requests verification passes through, otherwise refusal is processed the note that client terminal device sends.
Wherein, above-mentioned intended client end, IP address and note masterplate can be pre-stored in buffer memory, can reduce thus the pressure of database, improve verifying speed, finally improve note and issue efficiency.
More specifically, said short message template can comprise: log in SMS Tip template, random cipher message template, system alert message template, marketing message template, service note template and/or multimedia message template etc.
S13: according to the rule of checking of message template, to checking that note checks;
Concrete, check that rule can comprise that short message content is checked, black list user checks, important IP user checks, request amount is checked and/or the amount of issuing is checked;
More specifically, when message template check that rule comprises that short message content is checked time, check whether the content of checking note contains the word in responsive character library, and when not containing the word of responsive character library, think short message content check by, otherwise assert that short message content is checked, do not pass through;
And when message template check that rule comprises that black list user checks time, check whether the sender who checks note is positioned at blacklist, and when not being positioned at blacklist, assert black list user check by, otherwise assert that black list user checks, do not pass through;
In like manner, when message template check that rule comprises that IP user checks time, check whether the recipient who checks note is positioned at IP user's list, and when not being positioned at IP user's list, assert IP user check by, otherwise think that IP user checks, do not pass through;
Simultaneously, when message template check that rule comprises that request amount is checked time, check whether the sender who checks note is less than the quantity that request amount is checked defined, and when not surpassing the quantity of regulation, assert request amount check by, otherwise assert that request amount is checked, do not pass through;
In like manner, when message template check that rule comprises that the amount of issuing is checked time, check whether the recipient's who checks note quantity is less than the quantity that the amount of issuing is checked defined, and when not surpassing the quantity of regulation, assert the amount of issuing check by, otherwise assert that the amount of issuing is checked, do not pass through;
Wherein, above-mentioned responsive character library, blacklist, IP user's list, request amount check that the quantity of defined and the quantity that the amount of issuing is checked defined are previously stored in short message service apparatus.
S14: check that when checking that note is when checking, sending note to note sends platform and sends, otherwise refusal sends and checks note.
Therefore, in embodiments of the present invention, first set in advance dissimilar message template, and be that every kind of message template configures the different rules of checking; Then when client terminal device receives transmitting short message, directly by note, do not send platform and send, but search the corresponding message template of transmitting short message, and the particular content of transmitting short message is placed in to the relevant position of message template, form and check note; Then according to the rule of checking of message template, to checking note, check again; Finally, by by the note of checking of checking, be sent to note transmission platform and send, and for not by the note of checking of checking, refuse to send.Therefore, adopt method of the present invention, only issue the note by checking, and for not issuing by the note of checking, the note that can make thus user receive is safe and reliable, the present invention simultaneously also can realize the transmitting short message of client terminal device by all kinds of means and check, can save thus each channel stand-alone development workload and alleviate and safeguard pressure etc.
In other embodiment of the present invention, " step S14 " in above-mentioned all embodiment also can comprise afterwards: S15: when short message service apparatus receive that note sends that platform sends issue result time, send a notification message to client terminal device, to notify user's note to issue.
The invention also discloses the system that a kind of note corresponding with said method checked, as shown in Figure 2, comprising:
Client terminal device 21 for, when receiving transmitting short message, send transmitting short message request to short message service apparatus 22; Wherein, transmitting short message request can comprise the particular content of transmitting short message;
And short message service apparatus 22 can comprise: search module 31, Knockdown block 32, check module 33 and the first sending module 34;
Concrete, search module 31 for, when checking by transmitting short message request, search the message template matching with transmitting short message;
Knockdown block 32 for, the particular content of transmitting short message is placed in to the relevant position of message template, obtain and check note;
Wherein, at short message service apparatus internal memory, store up at least one message template in advance, and be that every kind of message template configures the different rules of checking;
Check module 33 for, according to the rule of checking of message template, to checking that note checks;
More specifically, as shown in Figure 3, check that module 33 can comprise:
First check unit 41 for, when message template check that rule comprises that described short message content is checked time, check whether the content of checking note contains the word in responsive character library, and when not containing the word of responsive character library, assert short message content check by, otherwise assert that short message content is checked, do not pass through;
Second check unit 42 for, when message template check that rule comprises that black list user checks time, check whether the sender who checks note is positioned at blacklist, and when not being positioned at blacklist, assert black list user check by, otherwise assert that black list user checks, do not pass through;
The 3rd check unit 43 for, when message template check that rule comprises that important IP user checks time, check when whether the recipient who checks note is positioned at IP user's list, and when not being positioned at IP user's list, assert IP user check by, otherwise assert that IP user checks, do not pass through;
The 4th check unit 44 for, when message template check that rule comprises that request amount is checked time, whether the request amount of checking the sender who checks note is less than the quantity that request amount is checked defined, and when not surpassing the quantity of regulation, assert request amount check by, otherwise assert that request amount is checked, do not pass through;
The 5th check unit 45 for, when message template check that rule comprises that the amount of issuing is checked time, and when not surpassing the quantity of regulation, assert the amount of issuing check by, otherwise assert that the amount of issuing is checked, do not pass through;
Wherein, check that rule can comprise: short message content is checked, black list user checks, IP user's list is checked, request amount is checked and/or the amount of issuing is checked; And above-mentioned responsive character library, blacklist, IP user's list, request amount check that the quantity of defined and the data that the amount of issuing is checked defined are previously stored in the buffer memory in short message service apparatus.
The first sending module 34 for, when checking that note is when checking, sending, check that note to note sends platform and sends, otherwise refusal sends the above-mentioned note of checking.
Therefore, in embodiments of the present invention, first set in advance dissimilar message template, and be that every kind of message template configures the different rules of checking; Then when client terminal device 21 receives transmitting short message, directly by note, not sending platform sends, but search the corresponding message template of transmitting short message by searching module 31, and Knockdown block 32 is placed in the particular content of transmitting short message the relevant position of message template, forms and check note; That then checks that module 33 can be according to message template checks that rule is to checking that note check again; Last the first sending module 34 can, by by the note of checking of checking, be sent to note transmission platform and send, and for not by the note of checking of checking, refuse to send.Therefore, adopt system of the present invention, only issue the note by checking, and for not issuing by the note of checking, the note that can make thus user receive is safe and reliable.
In other embodiment of the present invention, referring to Fig. 4, " short message service apparatus 22 " in above-mentioned all enforcement also can comprise:
The second sending module 35 for, when the receiving terminal of short service server device 22 receive note send platform issue result time, send a notification message to client terminal device 21, for notifying user's note to issue successfully;
Statistical analysis module 36 for, statistics and analysis transmitting short message request amount, the amount of checking, note issues and the change amount of message template;
Administration module 37 for, to message template, check the statistic analysis result that rule is edited and examined and shows statistical analysis module 36.
It should be noted that, the ability that note audit system of the present invention can externally provide note to check, and the note that can process high concurrency and high request amount is checked.
For client terminal device 21, short message service apparatus 22, search module 31, Knockdown block 32, check that each refinement function of module 33, the first sending module 34, the second sending module 35, statistical analysis module 36 and administration module 37 can, referring to the record of said method, not repeat them here.
Above-mentioned explanation to the disclosed embodiments, makes professional and technical personnel in the field can realize or use the present invention.To the multiple modification of these embodiment, will be apparent for those skilled in the art, General Principle as defined herein can, in the situation that not departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.