CN104184653A - Message filtering method and device - Google Patents

Message filtering method and device Download PDF

Info

Publication number
CN104184653A
CN104184653A CN201410364741.8A CN201410364741A CN104184653A CN 104184653 A CN104184653 A CN 104184653A CN 201410364741 A CN201410364741 A CN 201410364741A CN 104184653 A CN104184653 A CN 104184653A
Authority
CN
China
Prior art keywords
keyword
communication message
format character
meet
character corresponding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410364741.8A
Other languages
Chinese (zh)
Other versions
CN104184653B (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.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410364741.8A priority Critical patent/CN104184653B/en
Publication of CN104184653A publication Critical patent/CN104184653A/en
Application granted granted Critical
Publication of CN104184653B publication Critical patent/CN104184653B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a message filtering method and device, and belongs to the field of Internet. The method comprises that a communication message sent from a first terminal is received, and the target end of the communication message includes a second terminal; whether the communication message contains a first keyword and satisfies the format feature corresponding to the first keyword is detected according to a pre-stored keyword database; and the communication message is filtered if the communication message contains the first keyword and satisfies the format feature corresponding to the first keyword, and the communication message is sent to the second terminal if the communication message does not contain the first keyword or does not satisfy the format feature corresponding to the first keyword. The method and device can reduce the probability of filtering normal communication messages.

Description

A kind of method and apparatus of message screening
Technical field
The disclosure relates to internet arena, particularly a kind of method and apparatus of message screening.
Background technology
Along with the develop rapidly of the communication technology and Internet technology, communication modes is more and more diversified, applies that to carry out communication be one of wherein the most frequently used communication modes by instant messaging.Along with using the continuous increase of instant messaging application number, increasing advertisement putting person starts by instant messaging application propagating advertisement.
In order to reduce the impact of advertisement on user's normal communication, in the server of instant communication applications, certain mechanism generally can be set advertisement information is filtered.Server, when receiving certain terminal request and send to the communication message of other terminal, detects communication message, if detected in this communication message, includes the pre-stored keyword relevant with advertisement, filters this communication message.
In realizing process of the present disclosure, inventor finds that correlation technique at least exists following problem:
User, in the process of instant messaging, also there will be once in a while some keywords relevant to advertisement in user's normal communication message, and as distribution, sale etc., server may be used as normal communication message advertisement information and filter.If these message are not filtered, can cause again the interference of a lot of junk information.So, how neither hindering normal communication dialogue, fully filter again rubbish message, is a problem demanding prompt solution.
Summary of the invention
In order to solve the problem of correlation technique, disclosure embodiment provides a kind of method and apparatus of message screening, can filter rubbish message, can keep better normal messages unaffected again.Described technical scheme is as follows:
First aspect, provides a kind of method of message screening, and described method comprises:
Receive the communication message that first terminal sends, the destination of wherein said communication message comprises the second terminal;
According to pre-stored keywords database, detect in described communication message, whether to comprise the first keyword, and meet format character corresponding to described the first keyword; Wherein, described keywords database comprises a plurality of keywords and the format character information corresponding with each keyword, and described the first keyword is the arbitrary keyword in described keywords database;
If comprise described the first keyword in described communication message, and meet format character corresponding to described the first keyword, filter described communication message;
If do not comprise described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, described communication message is sent to described the second terminal.
Optionally, if do not comprise described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, described communication message sent to described the second terminal, comprising:
If do not comprise described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, according to described pre-stored keywords database, detect the phonetic that whether comprises described the first keyword in described communication message, and meet format character corresponding to described the first keyword;
If do not comprise the phonetic of described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, described communication message is sent to described the second terminal;
Described method also comprises:
If the phonetic that comprises described the first keyword in described communication message, and meet format character corresponding to described the first keyword, filter described communication message.
Optionally, if do not comprise described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, described communication message sent to described the second terminal, comprising:
If do not comprise described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, the word content in described communication message is converted to phonetic, obtain the communication message of phonetic form;
According to described pre-stored keywords database, detect in the communication message of described phonetic form whether comprise the phonetic of described the first keyword, and meet format character corresponding to described the first keyword;
If do not comprise the phonetic of described the first keyword in the communication message of described phonetic form, or do not meet format character corresponding to described the first keyword, described communication message is sent to described the second terminal;
Described method also comprises:
If the phonetic that comprises described the first keyword in the communication message of described phonetic form, and meet format character corresponding to described the first keyword, filter described communication message.
Optionally, if do not comprise described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, described communication message sent to described the second terminal, comprising:
If do not comprise described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, delete the preset characters in described communication message, and/or specific character is converted to corresponding word, and/or the digital content in described communication message is converted to the numeral of the first default form, alphabetical content in described communication message is converted to the letter of the second default form, the communication message after being processed;
According to described pre-stored keywords database, detect in the communication message after described processing, whether to comprise described the first keyword, and meet format character corresponding to described the first keyword;
If do not comprise described the first keyword in the communication message after described processing, or do not meet format character corresponding to described the first keyword, described communication message is sent to described the second terminal;
Described method also comprises:
If comprise described the first keyword in the communication message after described processing, and meet format character corresponding to described the first keyword, filter described communication message.
Optionally, described method also comprises:
Reception arranges instruction, describedly instruction is set carries the keyword that arranges and the format character information to be arranged of needing;
Be added into described keywords database by keyword described to be arranged is corresponding with format character information to be arranged.
Second aspect, provides a kind of device of message screening, and described device comprises:
Receiver module, the communication message sending for receiving first terminal, the destination of wherein said communication message comprises the second terminal;
Detection module, for according to pre-stored keywords database, detects in the described communication message that described receiver module receives whether comprise the first keyword, and meets format character corresponding to described the first keyword; Wherein, described keywords database comprises a plurality of keywords and the format character information corresponding with each keyword, and described the first keyword is the arbitrary keyword in described keywords database;
Processing module, if be that described communication message comprises described the first keyword for the testing result of described detection module, and meets format character corresponding to described the first keyword, filters the described communication message that described detection module detects; If do not comprise described the first keyword in the communication message that described detection module detects, or do not meet format character corresponding to described the first keyword, the described communication message described detection module being detected sends to described the second terminal.
Optionally, described processing module, for:
If the testing result of described detection module is not comprise described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, according to described pre-stored keywords database, detect the phonetic that whether comprises described the first keyword in described communication message, and meet format character corresponding to described the first keyword;
If do not comprise the phonetic of described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, described communication message is sent to described the second terminal;
Described processing module also for:
If the phonetic that comprises described the first keyword in described communication message, and meet format character corresponding to described the first keyword, filter described communication message.
Optionally, described processing module, for:
If the testing result of described detection module is not comprise described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, the word content in described communication message is converted to phonetic, obtains the communication message of phonetic form;
According to described pre-stored keywords database, detect in the communication message of described phonetic form whether comprise the phonetic of described the first keyword, and meet format character corresponding to described the first keyword;
If do not comprise the phonetic of described the first keyword in the communication message of described phonetic form, or do not meet format character corresponding to described the first keyword, described communication message is sent to described the second terminal;
Described processing module also for:
If the phonetic that comprises described the first keyword in the communication message of described phonetic form, and meet format character corresponding to described the first keyword, filter described communication message.
Optionally, described processing module, for:
If the testing result of described detection module is not comprise described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, delete the preset characters in the described communication message that described detection module detects, and/or specific character is converted to corresponding word, and/or the digital content in described communication message is converted to the numeral of the first default form, alphabetical content in described communication message is converted to the letter of the second default form, the communication message after being processed;
According to described pre-stored keywords database, detect in the communication message after described processing, whether to comprise described the first keyword, and meet format character corresponding to described the first keyword;
If do not comprise described the first keyword in the communication message after described processing, or do not meet format character corresponding to described the first keyword, described communication message is sent to described the second terminal;
Described processing module also for:
If comprise described the first keyword in the communication message after described processing, and meet format character corresponding to described the first keyword, filter described communication message.
Optionally, described device also comprises memory module, for:
Reception arranges instruction, describedly instruction is set carries the keyword that arranges and the format character information to be arranged of needing;
Be added into described keywords database by keyword described to be arranged is corresponding with format character information to be arranged.
The third aspect, provides a kind of device of message screening, comprising:
Processor;
Memory for storage of processor executable instruction;
Wherein, described processor is configured to:
Receive the communication message that first terminal sends, the destination of wherein said communication message comprises the second terminal;
According to pre-stored keywords database, detect in described communication message, whether to comprise the first keyword, and meet format character corresponding to described the first keyword; Wherein, described keywords database comprises a plurality of keywords and the format character information corresponding with each keyword, and described the first keyword is the arbitrary keyword in described keywords database;
If comprise described the first keyword in described communication message, and meet format character corresponding to described the first keyword, filter described communication message; If do not comprise described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, described communication message is sent to described the second terminal.
Beneficial effects more of the present disclosure can comprise:
In disclosure embodiment, receive the communication message that first terminal sends, according to pre-stored keywords database, detect in communication message whether comprise the first keyword, and meet the format character that the first keyword is corresponding, if comprise the first keyword in communication message, and meet the format character that the first keyword is corresponding, filter communication message, if do not comprise the first keyword in communication message, or do not meet the format character that the first keyword is corresponding, communication message is sent to the second terminal.By above-mentioned processing mode, when matching keyword, also need to match the character that meets corresponding format character, and then just can be by filtering communication message, thereby, can reduce the probability to normal communication message screening.Meanwhile, owing to having taked suitable strobe utility, can also reach the object of the harassing and wrecking of removing rubbish message from simultaneously.
Should be understood that, it is only exemplary that above general description and details are hereinafter described, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide further understanding of the disclosure, forms the application's a part, does not form restriction of the present disclosure.In the accompanying drawings:
Fig. 1 is according to the flow chart of the method for a kind of message screening shown in an exemplary embodiment.
Fig. 2 is according to a kind of schematic diagram that message content is processed shown in an exemplary embodiment.
Fig. 3 is according to a kind of schematic diagram that message content is processed shown in an exemplary embodiment.
Fig. 4 is according to a kind of schematic diagram that message content is processed shown in an exemplary embodiment.
Fig. 5 is according to the schematic diagram of the device of a kind of message screening shown in an exemplary embodiment.
Fig. 6 is according to the block diagram of a kind of device for message screening shown in an exemplary embodiment.
By above-mentioned accompanying drawing, the embodiment that the disclosure is clear and definite has been shown, will there is more detailed description hereinafter.These accompanying drawings and text description are not in order to limit the scope of disclosure design by any mode, but by reference to specific embodiment for those skilled in the art illustrate concept of the present disclosure.
Embodiment
For making object of the present disclosure, technical scheme and advantage clearer, below in conjunction with execution mode and accompanying drawing, the disclosure is described in further details.At this, exemplary embodiment of the present disclosure and explanation thereof are used for explaining the disclosure, but not as to restriction of the present disclosure.
Disclosure embodiment provides a kind of method and apparatus of message screening, below in conjunction with accompanying drawing, the disclosure is elaborated.
Embodiment mono-
Disclosure embodiment provides a kind of method of message screening, and as shown in Figure 1, the handling process of the method can comprise the steps:
In step 101, receive the communication message that first terminal sends, wherein the destination of communication message comprises the second terminal.
In step 102, according to pre-stored keywords database, detect in communication message whether comprise the first keyword, and meet the format character that the first keyword is corresponding; Wherein, keywords database comprises a plurality of keywords and the format character information corresponding with each keyword, and the first keyword is the arbitrary keyword in keywords database.
In step 103, if comprise the first keyword in communication message, and meet the format character that the first keyword is corresponding, filter communication message; If do not comprise the first keyword in communication message, or do not meet the format character that the first keyword is corresponding, communication message is sent to the second terminal.
In disclosure embodiment, receive the communication message that first terminal sends, according to pre-stored keywords database, detect in communication message whether comprise the first keyword, and meet the format character that the first keyword is corresponding, if comprise the first keyword in communication message, and meet the format character that the first keyword is corresponding, filter communication message, if do not comprise the first keyword in communication message, or do not meet the format character that the first keyword is corresponding, communication message is sent to the second terminal.By above-mentioned processing mode, when matching keyword, also need to match the character that meets corresponding format character, and then just can be by filtering communication message, thereby, can reduce the probability to normal communication message screening.
Embodiment bis-
Disclosure embodiment provides a kind of method of message screening, the executive agent of the method can be the server of certain Network, the present embodiment be take the server of instant messaging business and is carried out the detailed description of scheme as executive agent as example, in the situation of other executive agent, similarly, in the present embodiment, repeat no more.
Below in conjunction with execution mode, the handling process shown in Fig. 1 is described in detail, content can be as follows:
In step 101, receive the communication message that first terminal sends, wherein the destination of communication message comprises the second terminal.
Wherein, first terminal, the second terminal can be the equipment with network communication function, as mobile phone, panel computer, computer etc.Communication message can be to send to server by server, to be transmitted to the message of the second terminal by first terminal again, can comprise the communication message in social platform or social application, for example, and the personal letter in micro-letter or circle of friends message etc.
In force, instant messaging application can be installed in first terminal and the second terminal, first terminal and the second terminal can be logined different accounts respectively in instant communication applications, are called respectively the first account and the second account here.First terminal sends communication message by this instant messaging application to the second terminal, first communication message sends to server by first terminal, the account identification that can carry the account (i.e. the second account) of the second terminal login in communication message, is then transmitted to the second terminal by server.
In step 102, according to pre-stored keywords database, detect in communication message whether comprise the first keyword, and meet the format character that the first keyword is corresponding; Wherein, keywords database comprises a plurality of keywords and the format character information corresponding with each keyword, and the first keyword is the arbitrary keyword in keywords database.
Wherein, keyword be set in advance for carry out the character of matching detection at communication message, the first keyword can be any one keyword in the keyword comprising in above-mentioned keywords database.Format character information is the information of using for inquiring about the character of specified format feature at communication message.Keyword can be the type of contact method, and corresponding format character can be the account feature of this contact method.For example, keyword is " cell-phone number ", and corresponding format character can be 11 to be digit strings.
In force, can pre-stored keywords database in server, in keywords database, can store the corresponding relation of keyword and format character information, this corresponding relation can be arranged and be stored by technical staff.In server, this corresponding relation is stored with the form of mapping table conventionally, this mapping table can be as shown in table 1 below, in mapping table, can there be " cell-phone number ", keywords such as " micro-signals ", the format character information corresponding with " cell-phone number " can be 11 bit digital character strings or 6-13 bit digital character string etc., for example digit strings 13012345678 can meet this format character information, the format character information corresponding with " micro-signal " can be letter, the character string that numeral and/or some designated symbols (allowing the symbol of use in micro-signal) form, for example character string he_llo123 can meet this format character information.
Table 1
Keyword Format character information
Cell-phone number 6-13 bit digital character string
Micro-signal The character string that letter, numeral and/or some designated symbols form
Server is after receiving communication message, detect in communication message and whether have the keyword in above-mentioned corresponding relation, if existed, continue in mapping table, obtain the format character information corresponding with this keyword, further detect in communication message, whether there is the character that meets corresponding format character, if there is corresponding character, can judge that the match is successful, if there is no corresponding character or do not have the keyword in corresponding relation, can judge that it fails to match.
In step 103, if comprise the first keyword in communication message, and meet the format character that the first keyword is corresponding, filter communication message; If do not comprise the first keyword in communication message, or do not meet the format character that the first keyword is corresponding, communication message is sent to the second terminal.
In force, for the above-mentioned situation that the match is successful, can be by this filtering communication message; For the above-mentioned situation that it fails to match, this communication message can be sent to the second terminal of login the second account.For example, in communication message, include keyword " cell-phone number ", comprise again character string " 13012345678 " and meet the format character that " cell-phone number " is corresponding, can be by this filtering communication message.For the communication message filtering out, can directly abandon, or also can to communication message, be checked by network manager, determine whether communication message is advertisement information, then, according to checking result, determine communication message abandon or communication message is sent to the second terminal.
Optionally, in order to improve the filter capacity of server to advertisement information, for there is no the situation that the match is successful, can also further carry out the coupling of alternate manner, corresponding processing mode can be varied, below provided several feasible processing modes:
Mode one
In step 1, if do not comprise the first keyword in communication message, or do not meet the format character that the first keyword is corresponding, according to pre-stored keywords database, detect in communication message whether comprise the phonetic of the first keyword, and meet the format character that the first keyword is corresponding.
In force, for the above-mentioned situation that it fails to match, server can detect the phonetic that whether has arbitrary keyword in above-mentioned mapping table in communication message, if existed, continue in above-mentioned mapping table, obtain the format character information corresponding with this keyword, further detect in communication message whether have the character that meets this corresponding format character, if there is corresponding character, can judge that the match is successful, if there is no corresponding character or do not have the phonetic of keyword in above-mentioned mapping table, can judge that it fails to match.
In step 2, if do not comprise the phonetic of the first keyword in communication message, or do not meet the format character that the first keyword is corresponding, communication message is sent to the second terminal; If comprise the phonetic of the first keyword in communication message, and meet the format character that the first keyword is corresponding, filter communication message.
In force, for the above-mentioned situation that the match is successful, can be by this filtering communication message; For the above-mentioned situation that it fails to match, this communication message can be sent to the second terminal of login the second account.For example, in communication message, include the phonetic " wei xin " of keyword " micro-letter ", comprise again character string " he_llo123 " and meet the format character that " micro-letter " is corresponding, can be by this filtering communication message.
Mode two
In step 1, if do not comprise the first keyword in communication message, or do not meet the format character that the first keyword is corresponding, the word content in communication message is converted to phonetic, obtain the communication message of phonetic form.
In force, for the situation that in above-mentioned steps 102, it fails to match, the word phonetic storehouse that server can be based on pre-stored, is all converted to phonetic by the word in this communication message, the communication message after being changed.For example, " see you tonight " is converted to " wan shang jian ".As shown in Figure 2, for communication message Chinese word content being converted to the example of phonetic.
In step 2, according to pre-stored keywords database, in the communication message of detection phonetic form, whether comprise the phonetic of the first keyword, and meet the format character that the first keyword is corresponding.
In force, server can detect the phonetic that whether has arbitrary keyword in above-mentioned mapping table in the communication message after conversion, if existed, continue in above-mentioned mapping table, obtain the format character information corresponding with this keyword, further detect in the communication message after conversion whether have the character that meets corresponding format character, if there is corresponding character, can judge that the match is successful, if there is no corresponding character or do not have the phonetic of the keyword in above-mentioned mapping table, can judge that it fails to match.
In step 3, if do not comprise the phonetic of the first keyword in the communication message of phonetic form, or do not meet the format character that the first keyword is corresponding, communication message is sent to the second terminal; If the phonetic that comprises the first keyword in the communication message of phonetic form, and meet the format character that the first keyword is corresponding, filter communication message.
In force, for the above-mentioned situation that the match is successful, can be by this filtering communication message; For the above-mentioned situation that it fails to match, this communication message can be sent to the second terminal of login the second account.For example, the phonetic " lian xi fang shi " that includes keyword " contact method " in communication message after conversion, comprise again character string " 010-12345678 " and meet the format character that " contact method " is corresponding, can be by corresponding filtering communication message.
Mode three
In step 1, if do not comprise the first keyword in communication message, or do not meet the format character that the first keyword is corresponding, delete the preset characters in communication message, and/or specific character is converted to corresponding word, and/or the digital content in communication message is converted to the numeral of the first default form, the alphabetical content in communication message is converted to the letter of the second default form, the communication message after being processed.
In force, for the situation that in above-mentioned steps 102, it fails to match, server can be processed communication message according to default contents processing mechanism, communication message after being processed, optional processing mode is varied herein, can comprise a kind of processing mode in following processing mode or the combination of multiple processing mode:
Processing mode one, deletes the preset characters in communication message.For example delete the preset characters #$ in communication message.The effect of this processing mode can be as shown in Figure 3.
Processing mode two, is converted to corresponding word by specific character.
Processing mode three, is converted to the digital content in communication message the numeral of the first default form, the alphabetical content in communication message is converted to the letter of the second default form.For example by the digital content in communication message 1. (2) III be converted to 123, alphabetical content AbCCd is converted to abccd.The effect of this processing mode can be as shown in Figure 4.
In step 2, according to pre-stored keywords database, in the communication message after Check processing, whether comprise the first keyword, and meet the format character that the first keyword is corresponding.
In force, in the communication message of server after can Check processing, whether there is the arbitrary keyword in above-mentioned keywords database, if existed, continue in mapping table, obtain the format character information corresponding with this keyword, further in the communication message after Check processing, whether there is the character that meets corresponding format character, if there is corresponding character, can judge that the match is successful, if there is no corresponding character or do not have the keyword in above-mentioned mapping table, can judge that it fails to match.
In step 3, if do not comprise the first keyword in the communication message after processing, or do not meet the format character that the first keyword is corresponding, communication message is sent to the second terminal;
If comprise the first keyword in the communication message after processing, and meet the format character that the first keyword is corresponding, filter communication message.
In force, for the above-mentioned situation that the match is successful, can be by this filtering communication message; For the above-mentioned situation that it fails to match, this communication message can be sent to the second terminal of login the second account.For example, in the communication message after processing, include keyword " cell-phone number ", comprise again character string " 13012345678 " and meet the format character that " cell-phone number " is corresponding, can be by corresponding filtering communication message.
During the disclosure is implemented, also provide the method for adding keyword and corresponding format character information in keywords database, can comprise following treatment step:
In step 1, receive instruction is set, this arranges instruction and carries the keyword of setting and the format character information to be arranged of needing.
In force, network manager can arrange above-mentioned corresponding relation by office terminal, accordingly, in office terminal, hypervisor can be installed, hypervisor provides the page is set, and network manager can input keyword to be arranged and format character information to be arranged in the page is set, and click confirming button, at this moment, by triggering office terminal, generate to carry and need the instruction that arranges of the keyword that arranges and format character information to be arranged, send to server.
In step 2, by keyword to be arranged and the corresponding keywords database that is added into of format character information to be arranged.
In disclosure embodiment, receive the communication message that first terminal sends, according to pre-stored keywords database, detect in communication message whether comprise the first keyword, and meet the format character that the first keyword is corresponding, if comprise the first keyword in communication message, and meet the format character that the first keyword is corresponding, filter communication message, if do not comprise the first keyword in communication message, or do not meet the format character that the first keyword is corresponding, communication message is sent to the second terminal.By above-mentioned processing mode, when matching keyword, also need to match the character that meets corresponding format character, and then just can be by filtering communication message, thereby, can reduce the probability to normal communication message screening.
Embodiment tri-
Technical conceive based on identical, disclosure embodiment also provides a kind of device of message screening, and as shown in Figure 5, described device comprises:
Receiver module 310, the communication message sending for receiving first terminal, the destination of wherein said communication message comprises the second terminal;
Detection module 320, for according to pre-stored keywords database, detects in the described communication message that described receiver module receives whether comprise the first keyword, and meets format character corresponding to described the first keyword; Wherein, described keywords database comprises a plurality of keywords and the format character information corresponding with each keyword, and described the first keyword is the arbitrary keyword in described keywords database;
Processing module 330, if be that described communication message comprises described the first keyword for the testing result of described detection module, and meets format character corresponding to described the first keyword, filters the described communication message that described detection module detects; If do not comprise described the first keyword in the communication message that described detection module detects, or do not meet format character corresponding to described the first keyword, the described communication message described detection module being detected sends to described the second terminal.
Optionally, described processing module 330, for:
If the testing result of described detection module is not comprise described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, according to described pre-stored keywords database, detect the phonetic that whether comprises described the first keyword in described communication message, and meet format character corresponding to described the first keyword;
If do not comprise the phonetic of described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, described communication message is sent to described the second terminal;
Described processing module 330 also for:
If the phonetic that comprises described the first keyword in described communication message, and meet format character corresponding to described the first keyword, filter described communication message.
Optionally, described processing module 330, for:
If the testing result of described detection module is not comprise described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, the word content in described communication message is converted to phonetic, obtains the communication message of phonetic form;
According to described pre-stored keywords database, detect in the communication message of described phonetic form whether comprise the phonetic of described the first keyword, and meet format character corresponding to described the first keyword;
If do not comprise the phonetic of described the first keyword in the communication message of described phonetic form, or do not meet format character corresponding to described the first keyword, described communication message is sent to described the second terminal;
Described processing module 330 also for:
If the phonetic that comprises described the first keyword in the communication message of described phonetic form, and meet format character corresponding to described the first keyword, filter described communication message.
Optionally, described processing module 330, for:
If the testing result of described detection module is not comprise described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, delete the preset characters in the described communication message that described detection module detects, and/or specific character is converted to corresponding word, and/or the digital content in described communication message is converted to the numeral of the first default form, alphabetical content in described communication message is converted to the letter of the second default form, the communication message after being processed;
According to described pre-stored keywords database, detect in the communication message after described processing, whether to comprise described the first keyword, and meet format character corresponding to described the first keyword;
If do not comprise described the first keyword in the communication message after described processing, or do not meet format character corresponding to described the first keyword, described communication message is sent to described the second terminal;
Described processing module 330 also for:
If comprise described the first keyword in the communication message after described processing, and meet format character corresponding to described the first keyword, filter described communication message.
Optionally, described device also comprises memory module, for:
Reception arranges instruction, describedly instruction is set carries the keyword that arranges and the format character information to be arranged of needing;
Be added into described keywords database by keyword described to be arranged is corresponding with format character information to be arranged.
In disclosure embodiment, receive the communication message that first terminal sends, according to pre-stored keywords database, detect in communication message whether comprise the first keyword, and meet the format character that the first keyword is corresponding, if comprise the first keyword in communication message, and meet the format character that the first keyword is corresponding, filter communication message, if do not comprise the first keyword in communication message, or do not meet the format character that the first keyword is corresponding, communication message is sent to the second terminal.By above-mentioned processing mode, when matching keyword, also need to match the character that meets corresponding format character, and then just can be by filtering communication message, thereby, can reduce the probability to normal communication message screening.
Embodiment tetra-
Fig. 6 is according to the block diagram of a kind of device 1900 for message screening shown in an exemplary embodiment.For example, device 1900 may be provided in the server of an instant messaging business.With reference to Fig. 6, device 1900 comprises processing components 1922, and it further comprises one or more processors, and by the memory resource of memory 1932 representatives, can for example, by the instruction of the execution of processing unit 1922, application program for storing.In memory 1932, the application program of storage can comprise one or more each module corresponding to one group of instruction.In addition, processing components 1922 is configured to carry out instruction, to carry out a kind of method of message screening.
Device 1900 can also comprise that a power supply module 1926 is configured to the power management of final controlling element 1900, and a wired or wireless network interface 1950 is configured to device 1900 to be connected to network, and input and output (I/O) interface 1958.Device 1900 operating systems that can operate based on being stored in memory 1932, Windows Server TM for example, Mac OS XTM, Unix TM, Linux TM, FreeBSD TM or similar.
The method of described message screening, comprising:
Receive the communication message that first terminal sends, the destination of wherein said communication message comprises the second terminal;
According to pre-stored keywords database, detect in described communication message, whether to comprise the first keyword, and meet format character corresponding to described the first keyword; Wherein, described keywords database comprises a plurality of keywords and the format character information corresponding with each keyword, and described the first keyword is the arbitrary keyword in described keywords database;
If comprise described the first keyword in described communication message, and meet format character corresponding to described the first keyword, filter described communication message;
If do not comprise described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, described communication message is sent to described the second terminal.
Optionally, if do not comprise described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, described communication message sent to described the second terminal, comprising:
If do not comprise described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, according to described pre-stored keywords database, detect the phonetic that whether comprises described the first keyword in described communication message, and meet format character corresponding to described the first keyword;
If do not comprise the phonetic of described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, described communication message is sent to described the second terminal;
Described method also comprises:
If the phonetic that comprises described the first keyword in described communication message, and meet format character corresponding to described the first keyword, filter described communication message.
Optionally, if do not comprise described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, described communication message sent to described the second terminal, comprising:
If do not comprise described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, the word content in described communication message is converted to phonetic, obtain the communication message of phonetic form;
According to described pre-stored keywords database, detect in the communication message of described phonetic form whether comprise the phonetic of described the first keyword, and meet format character corresponding to described the first keyword;
If do not comprise the phonetic of described the first keyword in the communication message of described phonetic form, or do not meet format character corresponding to described the first keyword, described communication message is sent to described the second terminal;
Described method also comprises:
If the phonetic that comprises described the first keyword in the communication message of described phonetic form, and meet format character corresponding to described the first keyword, filter described communication message.
Optionally, if do not comprise described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, described communication message sent to described the second terminal, comprising:
If do not comprise described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, delete the preset characters in described communication message, and/or specific character is converted to corresponding word, and/or the digital content in described communication message is converted to the numeral of the first default form, alphabetical content in described communication message is converted to the letter of the second default form, the communication message after being processed;
According to described pre-stored keywords database, detect in the communication message after described processing, whether to comprise described the first keyword, and meet format character corresponding to described the first keyword;
If do not comprise described the first keyword in the communication message after described processing, or do not meet format character corresponding to described the first keyword, described communication message is sent to described the second terminal;
Described method also comprises:
If comprise described the first keyword in the communication message after described processing, and meet format character corresponding to described the first keyword, filter described communication message.
Optionally, described method also comprises:
Reception arranges instruction, describedly instruction is set carries the keyword that arranges and the format character information to be arranged of needing;
Be added into described keywords database by keyword described to be arranged is corresponding with format character information to be arranged.
In disclosure embodiment, receive the communication message that first terminal sends, according to pre-stored keywords database, detect in communication message whether comprise the first keyword, and meet the format character that the first keyword is corresponding, if comprise the first keyword in communication message, and meet the format character that the first keyword is corresponding, filter communication message, if do not comprise the first keyword in communication message, or do not meet the format character that the first keyword is corresponding, communication message is sent to the second terminal.By above-mentioned processing mode, when matching keyword, also need to match the character that meets corresponding format character, and then just can be by filtering communication message, thereby, can reduce the probability to normal communication message screening.
Those skilled in the art, considering specification and putting into practice after invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised undocumented common practise or the conventional techniques means in the art of the disclosure.Specification and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various modifications and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (11)

1. a method for message screening, is characterized in that, described method comprises:
Receive the communication message that first terminal sends, the destination of wherein said communication message comprises the second terminal;
According to pre-stored keywords database, detect in described communication message, whether to comprise the first keyword, and meet format character corresponding to described the first keyword; Wherein, described keywords database comprises a plurality of keywords and the format character information corresponding with each keyword, and described the first keyword is the arbitrary keyword in described keywords database;
If comprise described the first keyword in described communication message, and meet format character corresponding to described the first keyword, filter described communication message;
If do not comprise described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, described communication message is sent to described the second terminal.
2. method according to claim 1, is characterized in that, if do not comprise described the first keyword in described communication message, or does not meet format character corresponding to described the first keyword, described communication message is sent to described the second terminal, comprising:
If do not comprise described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, according to described pre-stored keywords database, detect the phonetic that whether comprises described the first keyword in described communication message, and meet format character corresponding to described the first keyword;
If do not comprise the phonetic of described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, described communication message is sent to described the second terminal;
Described method also comprises:
If the phonetic that comprises described the first keyword in described communication message, and meet format character corresponding to described the first keyword, filter described communication message.
3. method according to claim 1, is characterized in that, if do not comprise described the first keyword in described communication message, or does not meet format character corresponding to described the first keyword, described communication message is sent to described the second terminal, comprising:
If do not comprise described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, the word content in described communication message is converted to phonetic, obtain the communication message of phonetic form;
According to described pre-stored keywords database, detect in the communication message of described phonetic form whether comprise the phonetic of described the first keyword, and meet format character corresponding to described the first keyword;
If do not comprise the phonetic of described the first keyword in the communication message of described phonetic form, or do not meet format character corresponding to described the first keyword, described communication message is sent to described the second terminal;
Described method also comprises:
If the phonetic that comprises described the first keyword in the communication message of described phonetic form, and meet format character corresponding to described the first keyword, filter described communication message.
4. method according to claim 1, is characterized in that, if do not comprise described the first keyword in described communication message, or does not meet format character corresponding to described the first keyword, described communication message is sent to described the second terminal, comprising:
If do not comprise described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, delete the preset characters in described communication message, and/or specific character is converted to corresponding word, and/or the digital content in described communication message is converted to the numeral of the first default form, alphabetical content in described communication message is converted to the letter of the second default form, the communication message after being processed;
According to described pre-stored keywords database, detect in the communication message after described processing, whether to comprise described the first keyword, and meet format character corresponding to described the first keyword;
If do not comprise described the first keyword in the communication message after described processing, or do not meet format character corresponding to described the first keyword, described communication message is sent to described the second terminal;
Described method also comprises:
If comprise described the first keyword in the communication message after described processing, and meet format character corresponding to described the first keyword, filter described communication message.
5. method according to claim 1, is characterized in that, described method also comprises:
Reception arranges instruction, describedly instruction is set carries the keyword that arranges and the format character information to be arranged of needing;
Be added into described keywords database by keyword described to be arranged is corresponding with format character information to be arranged.
6. a device for message screening, is characterized in that, described device comprises:
Receiver module, the communication message sending for receiving first terminal, the destination of wherein said communication message comprises the second terminal;
Detection module, for according to pre-stored keywords database, detects in the described communication message that described receiver module receives whether comprise the first keyword, and meets format character corresponding to described the first keyword; Wherein, described keywords database comprises a plurality of keywords and the format character information corresponding with each keyword, and described the first keyword is the arbitrary keyword in described keywords database;
Processing module, if be that described communication message comprises described the first keyword for the testing result of described detection module, and meets format character corresponding to described the first keyword, filters the described communication message that described detection module detects; If do not comprise described the first keyword in the communication message that described detection module detects, or do not meet format character corresponding to described the first keyword, the described communication message described detection module being detected sends to described the second terminal.
7. device according to claim 6, is characterized in that, described processing module, for:
If the testing result of described detection module is not comprise described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, according to described pre-stored keywords database, detect the phonetic that whether comprises described the first keyword in described communication message, and meet format character corresponding to described the first keyword;
If do not comprise the phonetic of described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, described communication message is sent to described the second terminal;
Described processing module also for:
If the phonetic that comprises described the first keyword in described communication message, and meet format character corresponding to described the first keyword, filter described communication message.
8. device according to claim 6, is characterized in that, described processing module, for:
If the testing result of described detection module is not comprise described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, the word content in described communication message is converted to phonetic, obtains the communication message of phonetic form;
According to described pre-stored keywords database, detect in the communication message of described phonetic form whether comprise the phonetic of described the first keyword, and meet format character corresponding to described the first keyword;
If do not comprise the phonetic of described the first keyword in the communication message of described phonetic form, or do not meet format character corresponding to described the first keyword, described communication message is sent to described the second terminal;
Described processing module also for:
If the phonetic that comprises described the first keyword in the communication message of described phonetic form, and meet format character corresponding to described the first keyword, filter described communication message.
9. device according to claim 6, is characterized in that, described processing module also for:
If the testing result of described detection module is not comprise described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, delete the preset characters in the described communication message that described detection module detects, and/or specific character is converted to corresponding word, and/or the digital content in described communication message is converted to the numeral of the first default form, alphabetical content in described communication message is converted to the letter of the second default form, the communication message after being processed;
According to described pre-stored keywords database, detect in the communication message after described processing, whether to comprise described the first keyword, and meet format character corresponding to described the first keyword;
If do not comprise described the first keyword in the communication message after described processing, or do not meet format character corresponding to described the first keyword, described communication message is sent to described the second terminal;
Described processing module also for:
If comprise described the first keyword in the communication message after described processing, and meet format character corresponding to described the first keyword, filter described communication message.
10. device according to claim 7, is characterized in that, described device also comprises memory module, for:
Reception arranges instruction, describedly instruction is set carries the keyword that arranges and the format character information to be arranged of needing;
Be added into described keywords database by keyword described to be arranged is corresponding with format character information to be arranged.
The device of 11. 1 kinds of message screenings, is characterized in that, comprising:
Processor;
Memory for storage of processor executable instruction;
Wherein, described processor is configured to:
Receive the communication message that first terminal sends, the destination of wherein said communication message comprises the second terminal;
According to pre-stored keywords database, detect in described communication message, whether to comprise the first keyword, and meet format character corresponding to described the first keyword; Wherein, described keywords database comprises a plurality of keywords and the format character information corresponding with each keyword, and described the first keyword is the arbitrary keyword in described keywords database;
If comprise described the first keyword in described communication message, and meet format character corresponding to described the first keyword, filter described communication message; If do not comprise described the first keyword in described communication message, or do not meet format character corresponding to described the first keyword, described communication message is sent to described the second terminal.
CN201410364741.8A 2014-07-28 2014-07-28 A kind of method and apparatus of message screening Active CN104184653B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410364741.8A CN104184653B (en) 2014-07-28 2014-07-28 A kind of method and apparatus of message screening

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410364741.8A CN104184653B (en) 2014-07-28 2014-07-28 A kind of method and apparatus of message screening

Publications (2)

Publication Number Publication Date
CN104184653A true CN104184653A (en) 2014-12-03
CN104184653B CN104184653B (en) 2018-03-23

Family

ID=51965412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410364741.8A Active CN104184653B (en) 2014-07-28 2014-07-28 A kind of method and apparatus of message screening

Country Status (1)

Country Link
CN (1) CN104184653B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104821910A (en) * 2015-05-11 2015-08-05 浙江翼信科技有限公司 Method and device for issuing interactive information in instant messaging
CN105991403A (en) * 2015-02-06 2016-10-05 阿里巴巴集团控股有限公司 Instant messaging (IM) based multimedia sharing method and apparatus
CN106161203A (en) * 2015-04-28 2016-11-23 阿里巴巴集团控股有限公司 Group message processing method and processing device
CN106682010A (en) * 2015-11-06 2017-05-17 北京奇虎科技有限公司 Method, device and server for classifying friend circle information
CN106815242A (en) * 2015-11-30 2017-06-09 腾讯科技(深圳)有限公司 Textual resources data detection method and device
CN111159338A (en) * 2019-12-23 2020-05-15 北京达佳互联信息技术有限公司 Malicious text detection method and device, electronic equipment and storage medium
CN113704638A (en) * 2021-08-31 2021-11-26 连尚(北京)网络科技有限公司 Method and equipment for identifying presentation information in social group chat

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060019684A1 (en) * 2004-07-22 2006-01-26 Xiao-Qin Yu Short message filter mechanism and communication device
CN101075980A (en) * 2006-07-26 2007-11-21 腾讯科技(深圳)有限公司 Method and system for filtering information in telecommunication system
CN101079877A (en) * 2006-07-27 2007-11-28 腾讯科技(深圳)有限公司 Filtering method and filtering system for communication information in communication system
CN101201820A (en) * 2007-11-28 2008-06-18 北京金山软件有限公司 Method and system for filtering bilingualism corpora
CN101616101A (en) * 2008-06-26 2009-12-30 阿里巴巴集团控股有限公司 A kind of method for filtering user information and device
CN101729520A (en) * 2008-10-28 2010-06-09 北京大学 Method and device for detecting sensitive information
CN101888445A (en) * 2010-04-30 2010-11-17 南京邮电大学 Integrated method for filtering short message by introducing query software
CN102572745A (en) * 2010-12-24 2012-07-11 中国移动通信集团上海有限公司 Method and device for determining waste short message
CN103064928A (en) * 2012-12-21 2013-04-24 北京二六三企业通信有限公司 Method and device for filtering junk files based on key words

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060019684A1 (en) * 2004-07-22 2006-01-26 Xiao-Qin Yu Short message filter mechanism and communication device
CN101075980A (en) * 2006-07-26 2007-11-21 腾讯科技(深圳)有限公司 Method and system for filtering information in telecommunication system
CN101079877A (en) * 2006-07-27 2007-11-28 腾讯科技(深圳)有限公司 Filtering method and filtering system for communication information in communication system
CN101201820A (en) * 2007-11-28 2008-06-18 北京金山软件有限公司 Method and system for filtering bilingualism corpora
CN101616101A (en) * 2008-06-26 2009-12-30 阿里巴巴集团控股有限公司 A kind of method for filtering user information and device
CN101729520A (en) * 2008-10-28 2010-06-09 北京大学 Method and device for detecting sensitive information
CN101888445A (en) * 2010-04-30 2010-11-17 南京邮电大学 Integrated method for filtering short message by introducing query software
CN102572745A (en) * 2010-12-24 2012-07-11 中国移动通信集团上海有限公司 Method and device for determining waste short message
CN103064928A (en) * 2012-12-21 2013-04-24 北京二六三企业通信有限公司 Method and device for filtering junk files based on key words

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105991403A (en) * 2015-02-06 2016-10-05 阿里巴巴集团控股有限公司 Instant messaging (IM) based multimedia sharing method and apparatus
CN106161203A (en) * 2015-04-28 2016-11-23 阿里巴巴集团控股有限公司 Group message processing method and processing device
CN104821910A (en) * 2015-05-11 2015-08-05 浙江翼信科技有限公司 Method and device for issuing interactive information in instant messaging
CN104821910B (en) * 2015-05-11 2018-10-26 浙江翼信科技有限公司 The dissemination method and equipment of interactive information in instant messaging
CN106682010A (en) * 2015-11-06 2017-05-17 北京奇虎科技有限公司 Method, device and server for classifying friend circle information
CN106815242A (en) * 2015-11-30 2017-06-09 腾讯科技(深圳)有限公司 Textual resources data detection method and device
CN111159338A (en) * 2019-12-23 2020-05-15 北京达佳互联信息技术有限公司 Malicious text detection method and device, electronic equipment and storage medium
CN113704638A (en) * 2021-08-31 2021-11-26 连尚(北京)网络科技有限公司 Method and equipment for identifying presentation information in social group chat

Also Published As

Publication number Publication date
CN104184653B (en) 2018-03-23

Similar Documents

Publication Publication Date Title
CN104184653A (en) Message filtering method and device
CN107872772B (en) Method and device for detecting fraud short messages
CN104320756B (en) A kind of variation and device of account information
CN104468249B (en) Account abnormity detection method and device
CN103546877A (en) Method and system for obtaining and inputting content code and mobile terminal
US20170325171A1 (en) Message Processing Method and Apparatus
CN104954322A (en) Account binding method, device and system
CN110287318B (en) Service operation detection method and device, storage medium and electronic device
CN105187632B (en) Method and device for determining mobile phone number
WO2015106728A1 (en) Data processing method and system
CN113766487B (en) Cloud mobile phone information acquisition method, device, equipment and medium
US10757137B1 (en) Thwarting an impersonation attack using online decoy text
US8116338B2 (en) Method for reducing errors while transferring tokens to and from people
US20170171128A1 (en) Method and electronic device for email processing
US10320811B1 (en) Impersonation detection and abuse prevention machines
CN113746814B (en) Mail processing method, mail processing device, electronic equipment and storage medium
CN113220949B (en) Construction method and device of private data identification system
CN106506227A (en) Config update method and config update device
CN114329164A (en) Method, apparatus, device, medium and product for processing data
CN113723090A (en) Position data acquisition method and device, electronic equipment and storage medium
CN109766499B (en) Group joining method and device and computer equipment
JP5931015B2 (en) Information processing apparatus, system, server apparatus, terminal, and information processing method
CN102855543A (en) Method and system for sending resumes
CN113238765B (en) Method, device, equipment and storage medium for distributing small program
CN104317872A (en) Key information acquisition method and device

Legal Events

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