CN104184653B - A kind of method and apparatus of message screening - Google Patents
A kind of method and apparatus of message screening Download PDFInfo
- Publication number
- CN104184653B CN104184653B CN201410364741.8A CN201410364741A CN104184653B CN 104184653 B CN104184653 B CN 104184653B CN 201410364741 A CN201410364741 A CN 201410364741A CN 104184653 B CN104184653 B CN 104184653B
- Authority
- CN
- China
- Prior art keywords
- keyword
- communication message
- meet
- format character
- format
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The disclosure is directed to a kind of method and apparatus of message screening, belong to internet arena.Method includes:The communication message that first terminal is sent is received, wherein the destination of the communication message includes second terminal;According to the keywords database prestored, detect in the communication message whether include the first keyword, and meet format character corresponding to first keyword;If first keyword is included in the communication message, and format character corresponding to meeting first keyword, then filter the communication message;If do not include first keyword in the communication message, or format character corresponding to not meeting first keyword, then the communication message is sent to the second terminal.Using the disclosure, the probability to normal communication message screening can be reduced.
Description
Technical field
This disclosure relates to internet arena, more particularly to a kind of method and apparatus of message screening.
Background technology
With the rapid development of the communication technology and Internet technology, communication modes are more and more diversified, pass through instant messaging
It is one of communication modes of most common of which using communication is carried out.With being continuously increased using instant messaging application number, get over
Instant messaging application propagating advertisement is begun through come more advertisement putting persons.
In order to reduce influence of the advertisement to user's normal communication, one can be typically set in the server of instant communication applications
Fixed mechanism filters to advertisement information.Server is sent to the communication message of other terminals receiving certain terminal request
When, communication message is detected, if detecting the key relevant with advertisement for including in the communication message and prestoring
Word, then filter the communication message.
During the disclosure is realized, inventor has found that correlation technique at least has problems with:
Some and advertisement phase also occur in the normal communication message of user during instant messaging in user once in a while
The keyword of pass, such as promote, sell, server then may filter normal communication message as advertisement information.If
These message are not filtered, the interference of many junk information can be caused again.So, how both without prejudice to normal communication pair
Words, and fully filtering spam message, are a urgent problems to be solved.
The content of the invention
In order to solve the problems, such as correlation technique, the embodiment of the present disclosure provides a kind of method and apparatus of message screening, both
Rubbish message can be filtered, and can preferably keeps normal messages unaffected.The technical scheme is as follows:
First aspect, there is provided a kind of method of message screening, methods described include:
The communication message that first terminal is sent is received, wherein the destination of the communication message includes second terminal;
According to the keywords database prestored, detect in the communication message whether include the first keyword, and meet institute
State format character corresponding to the first keyword;Wherein, the keywords database include multiple keywords and with each keyword pair
The format character information answered, first keyword are any keywords in the keywords database;
If first keyword is included in the communication message, and it is special to meet form corresponding to first keyword
Sign, then filter the communication message;
If not including first keyword in the communication message, or lattice corresponding to first keyword are not met
Formula feature, then the communication message is sent to the second terminal.
Optionally, if not including first keyword in the communication message, or do not meet described first and close
Format character corresponding to keyword, then the communication message is sent to the second terminal, including:
If not including first keyword in the communication message, or lattice corresponding to first keyword are not met
Formula feature, the then keywords database prestored according to, detects in the communication message whether include first keyword
Phonetic, and meet format character corresponding to first keyword;
If not including the phonetic of first keyword in the communication message, or first keyword pair is not met
The format character answered, then the communication message is sent to the second terminal;
Methods described also includes:
If including the phonetic of first keyword in the communication message, and meet corresponding to first keyword
Format character, then filter the communication message.
Optionally, if not including first keyword in the communication message, or do not meet described first and close
Format character corresponding to keyword, then the communication message is sent to the second terminal, including:
If not including first keyword in the communication message, or lattice corresponding to first keyword are not met
Formula feature, then the word content in the communication message is converted into phonetic, obtains the communication message of PINYIN form;
According to the keywords database prestored, whether detect in the communication message of the PINYIN form comprising described the
The phonetic of one keyword, and meet format character corresponding to first keyword;
If not including the phonetic of first keyword in the communication message of the PINYIN form, or do not meet described the
Format character corresponding to one keyword, then the communication message is sent to the second terminal;
Methods described also includes:
If including the phonetic of first keyword in the communication message of the PINYIN form, and meet described first and close
Format character corresponding to keyword, then filter the communication message.
Optionally, if not including first keyword in the communication message, or do not meet described first and close
Format character corresponding to keyword, then the communication message is sent to the second terminal, including:
If not including first keyword in the communication message, or lattice corresponding to first keyword are not met
Formula feature, then the preset characters in the communication message are deleted, and/or specific character is converted into corresponding word, and/or will
Digital content in the communication message is converted to the numeral of the first preset format, and the alphabetical content in the communication message is turned
The letter of the second preset format is changed to, the communication message after being handled;
According to the keywords database prestored, detect in the communication message after the processing whether include described first
Keyword, and meet format character corresponding to first keyword;
If not including first keyword in the communication message after the processing, or first keyword is not met
Corresponding format character, then the communication message is sent to the second terminal;
Methods described also includes:
If first keyword is included in the communication message after the processing, and it is corresponding to meet first keyword
Format character, then filter the communication message.
Optionally, methods described also includes:
Receive and instruction is set, it is described to set instruction to carry keyword to be placed and format character information to be placed;
The keywords database is added to by the keyword to be placed is corresponding with format character information to be placed.
Second aspect, there is provided a kind of device of message screening, described device include:
Receiving module, for receiving the communication message of first terminal transmission, wherein the destination of the communication message includes
Second terminal;
Detection module, for according to the keywords database prestored, detecting the communication that the receiving module receives and disappearing
Whether the first keyword is included in breath, and meet format character corresponding to first keyword;Wherein, the keywords database bag
Multiple keywords and format character information corresponding with each keyword are included, first keyword is in the keywords database
Any keyword;
Processing module, if the testing result for the detection module is to be closed in the communication message comprising described first
Keyword, and format character corresponding to meeting first keyword, then filter the communication message of the detection module detection;
If not including first keyword in the communication message of the detection module detection, or first keyword pair is not met
The format character answered, the then communication message detected the detection module are sent to the second terminal.
Optionally, the processing module, is used for:
If the testing result of the detection module is not include first keyword in the communication message, or is not inconsistent
Format character corresponding to first keyword is closed, then the keywords database prestored according to, detects the communication message
In whether include the phonetic of first keyword, and meet format character corresponding to first keyword;
If not including the phonetic of first keyword in the communication message, or first keyword pair is not met
The format character answered, then the communication message is sent to the second terminal;
The processing module is additionally operable to:
If including the phonetic of first keyword in the communication message, and meet corresponding to first keyword
Format character, then filter the communication message.
Optionally, the processing module, is used for:
If the testing result of the detection module is not include first keyword in the communication message, or is not inconsistent
Format character corresponding to closing first keyword, then be converted to phonetic by the word content in the communication message, spelled
The communication message of sound form;
According to the keywords database prestored, whether detect in the communication message of the PINYIN form comprising described the
The phonetic of one keyword, and meet format character corresponding to first keyword;
If not including the phonetic of first keyword in the communication message of the PINYIN form, or do not meet described the
Format character corresponding to one keyword, then the communication message is sent to the second terminal;
The processing module is additionally operable to:
If including the phonetic of first keyword in the communication message of the PINYIN form, and meet described first and close
Format character corresponding to keyword, then filter the communication message.
Optionally, the processing module, is used for:
If the testing result of the detection module is not include first keyword in the communication message, or is not inconsistent
Format character corresponding to closing first keyword, then delete the predetermined word in the communication message of the detection module detection
Symbol, and/or specific character is converted into corresponding word, and/or the digital content in the communication message is converted to first
The numeral of preset format, the alphabetical content in the communication message is converted to the letter of the second preset format, after obtaining processing
Communication message;
According to the keywords database prestored, detect in the communication message after the processing whether include described first
Keyword, and meet format character corresponding to first keyword;
If not including first keyword in the communication message after the processing, or first keyword is not met
Corresponding format character, then the communication message is sent to the second terminal;
The processing module is additionally operable to:
If first keyword is included in the communication message after the processing, and it is corresponding to meet first keyword
Format character, then filter the communication message.
Optionally, described device also includes memory module, is used for:
Receive and instruction is set, it is described to set instruction to carry keyword to be placed and format character information to be placed;
The keywords database is added to by the keyword to be placed is corresponding with format character information to be placed.
The third aspect, there is provided a kind of device of message screening, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
The communication message that first terminal is sent is received, wherein the destination of the communication message includes second terminal;
According to the keywords database prestored, detect in the communication message whether include the first keyword, and meet institute
State format character corresponding to the first keyword;Wherein, the keywords database include multiple keywords and with each keyword pair
The format character information answered, first keyword are any keywords in the keywords database;
If first keyword is included in the communication message, and it is special to meet form corresponding to first keyword
Sign, then filter the communication message;If not including first keyword in the communication message, or do not meet described first
Format character corresponding to keyword, then the communication message is sent to the second terminal.
Some beneficial effects of the disclosure can include:
In the embodiment of the present disclosure, the communication message that first terminal is sent is received, according to the keywords database prestored, detection
Whether the first keyword is included in communication message, and meet format character corresponding to the first keyword, if wrapped in communication message
Containing the first keyword, and format character corresponding to meeting the first keyword, then communication message is filtered, if do not wrapped in communication message
Containing the first keyword, or format character corresponding to not meeting the first keyword, then communication message is sent to second terminal.Pass through
Above-mentioned processing mode, while keyword is matched, it is also necessary to match the character of format character corresponding to meeting, Jin Ercai
Can be by filtering communication message, it is thus possible to reduce the probability to normal communication message screening.Simultaneously as take it is appropriate
Strobe utility, the purpose for the harassing and wrecking for removing rubbish message from can also be reached simultaneously.
It should be appreciated that the general description and following detailed description of the above are only exemplary, this can not be limited
It is open.
Brief description of the drawings
Accompanying drawing described herein is used for providing further understanding of the disclosure, forms the part of the application, not
Form the restriction to the disclosure.In the accompanying drawings:
Fig. 1 is a kind of flow chart of the method for message screening according to an exemplary embodiment.
Fig. 2 is a kind of schematic diagram handled message content according to an exemplary embodiment.
Fig. 3 is a kind of schematic diagram handled message content according to an exemplary embodiment.
Fig. 4 is a kind of schematic diagram handled message content according to an exemplary embodiment.
Fig. 5 is a kind of schematic diagram of the device of message screening according to an exemplary embodiment.
Fig. 6 is a kind of block diagram of device for message screening according to an exemplary embodiment.
Pass through above-mentioned accompanying drawing, it has been shown that the clear and definite embodiment of the disclosure, will hereinafter be described in more detail.These accompanying drawings
It is not intended to limit the scope of disclosure design by any mode with word description, but is by reference to specific embodiment
Those skilled in the art illustrate the concept of the disclosure.
Embodiment
It is right with reference to embodiment and accompanying drawing for the purpose, technical scheme and advantage of the disclosure are more clearly understood
The disclosure is described in further details.Here, the exemplary embodiment of the disclosure and its illustrate to be used to explain the disclosure, but simultaneously
Not as the restriction to the disclosure.
The embodiment of the present disclosure provides a kind of method and apparatus of message screening, the disclosure is carried out below in conjunction with accompanying drawing detailed
Explanation.
Embodiment one
The embodiment of the present disclosure provides a kind of method of message screening, as shown in figure 1, the handling process of this method can wrap
Include following steps:
In a step 101, the communication message that first terminal is sent is received, the wherein destination of communication message includes second eventually
End.
In a step 102, according to the keywords database prestored, detect in communication message whether include the first keyword,
And meet format character corresponding to the first keyword;Wherein, keywords database include multiple keywords and with each keyword pair
The format character information answered, the first keyword are any keywords in keywords database.
In step 103, if including the first keyword in communication message, and it is special to meet form corresponding to the first keyword
Sign, then filter communication message;If not including the first keyword in communication message, or form corresponding to the first keyword is not met
Feature, then communication message is sent to second terminal.
In the embodiment of the present disclosure, the communication message that first terminal is sent is received, according to the keywords database prestored, detection
Whether the first keyword is included in communication message, and meet format character corresponding to the first keyword, if wrapped in communication message
Containing the first keyword, and format character corresponding to meeting the first keyword, then communication message is filtered, if do not wrapped in communication message
Containing the first keyword, or format character corresponding to not meeting the first keyword, then communication message is sent to second terminal.Pass through
Above-mentioned processing mode, while keyword is matched, it is also necessary to match the character of format character corresponding to meeting, Jin Ercai
Can be by filtering communication message, it is thus possible to reduce the probability to normal communication message screening.
Embodiment two
The embodiment of the present disclosure provides a kind of method of message screening, and the executive agent of this method can be certain Network
Server, the present embodiment using the server of instant messaging business as executive agent exemplified by carry out the detailed description of scheme,
It is similar in the case of other executive agents, repeated no more in the present embodiment.
Below in conjunction with embodiment, the handling process shown in Fig. 1 is described in detail, content can be as follows:
In a step 101, the communication message that first terminal is sent is received, the wherein destination of communication message includes second eventually
End.
Wherein, first terminal, second terminal can be the equipment for having network communication function, such as mobile phone, tablet personal computer, meter
Calculation machine etc..Communication message can be sent to the message that server is transmitted to second terminal by server again by first terminal, can
With including the communication message in social platform or social networking application, for example, personal letter or circle of friends message in wechat etc..
In force, instant messaging application can be installed in first terminal and second terminal, first terminal and second is eventually
End can log in different accounts in instant communication applications respectively, be referred to as the first account and the second account here.First
Terminal is applied to second terminal by the instant messaging and sends communication message, and communication message is sent to service by first terminal first
Device, the account identification of the account (i.e. the second account) of second terminal login can be carried in communication message, then passes through server
It is transmitted to second terminal.
In a step 102, according to the keywords database prestored, detect in communication message whether include the first keyword,
And meet format character corresponding to the first keyword;Wherein, keywords database include multiple keywords and with each keyword pair
The format character information answered, the first keyword are any keywords in keywords database.
Wherein, keyword be pre-set be used in communication message carry out matching detection character, the first keyword
It can be any one keyword in the keyword included in above-mentioned keywords database.Format character information is to be used to communicate
The information that the character of specified format feature is inquired about in message and is used.Keyword can be the type of contact method, corresponding lattice
Formula feature can be the accounting features of the contact method.For example, keyword is " cell-phone number ", corresponding format character can be 11
For digit strings.
In force, keywords database can be prestored in the server, can be stored with keywords database keyword and
The corresponding relation of format character information, the corresponding relation can be configured and be stored by technical staff.This is right in the server
It should be related to generally in the form of mapping table and store, the mapping table can as shown in Table 1 below, can in mapping table
There to be the keywords such as " cell-phone number ", " WeChat ID ", format character information corresponding with " cell-phone number " can be 11 bit digital words
Symbol string or 6-13 bit digital character strings etc., such as digit strings 13012345678 can meet the format character information, with
Format character information corresponding to " WeChat ID " can alphabetical, digital and/or some designated symbols (allow to use in WeChat ID
Symbol) character string that forms, such as character string he_llo123 can meet the format character information.
Table 1
Keyword | Format character information |
Cell-phone number | 6-13 bit digital character strings |
WeChat ID | The character string that alphabetical, digital and/or some designated symbols are formed |
… | … |
Server detects the key that whether there is in communication message in above-mentioned corresponding relation after communication message is received
Word, if it is present continuing in mapping table, format character information corresponding with the keyword is obtained, further detection
With the presence or absence of the character for meeting corresponding format character in communication message, if there is corresponding character, then matching can be determined that
Success, if there is no corresponding character or in the absence of the keyword in corresponding relation, then can be determined that it fails to match.
In step 103, if including the first keyword in communication message, and it is special to meet form corresponding to the first keyword
Sign, then filter communication message;If not including the first keyword in communication message, or form corresponding to the first keyword is not met
Feature, then communication message is sent to second terminal.
In force, for it is above-mentioned the match is successful in the case of, can be by the filtering communication message;It fails to match for above-mentioned
Situation, the communication message can be sent to log in the second account second terminal.For example, include key in communication message
Word " cell-phone number ", and meet format character corresponding to " cell-phone number " comprising character string " 13012345678 ", then this can be communicated
Message screening.It for the communication message filtered out, can directly abandon, or communication message can also be entered by network manager
Row review, determine whether communication message is advertisement information, then, according to review result, determine to abandon communication message or
Communication message is sent to second terminal.
Optionally, in order to improve filter capacity of the server to advertisement information, for without the match is successful in the case of, may be used also
Further to carry out the matching of other manner, corresponding processing mode can following present several feasible places with varied
Reason mode:
Mode one
In step 1, if not including the first keyword in communication message, or lattice corresponding to the first keyword are not met
Formula feature, then according to the keywords database prestored, detect in communication message whether include the phonetic of the first keyword, and meet
Format character corresponding to first keyword.
In force, for it is above-mentioned it fails to match in the case of, server can be detected in communication message with the presence or absence of above-mentioned
The phonetic of any keyword in mapping table, if it is present continuing in above-mentioned mapping table, obtain and the keyword
Corresponding format character information, the character that whether there is in communication message and meet the corresponding format character is further detected, such as
There is corresponding character in fruit, then can be determined that the match is successful, if there is no corresponding character or in the absence of above-mentioned corresponding relation
The phonetic of keyword in table, then it can be determined that it fails to match.
In step 2, if not including the phonetic of the first keyword in communication message, or the first keyword pair is not met
The format character answered, then be sent to second terminal by communication message;If the phonetic of the first keyword is included in communication message, and
Format character corresponding to meeting the first keyword, then filter communication message.
In force, for it is above-mentioned the match is successful in the case of, can be by the filtering communication message;It fails to match for above-mentioned
Situation, the communication message can be sent to log in the second account second terminal.For example, include key in communication message
Word " wechat " phonetic " wei xin ", but comprising character string " he_llo123 " meet " wechat " corresponding to format character, then may be used
With by the filtering communication message.
Mode two
In step 1, if not including the first keyword in communication message, or lattice corresponding to the first keyword are not met
Formula feature, then the word content in communication message is converted into phonetic, obtains the communication message of PINYIN form.
In force, in the case of it fails to match in above-mentioned steps 102, server can be based on the word prestored
Phonetic storehouse, the word in the communication message is all converted into phonetic, the communication message after being changed.For example, by " see you tonight "
Be converted to " wan shang jian ".As shown in Fig. 2 for by example that word Content Transformation in communication message is phonetic.
In step 2, according to the keywords database prestored, whether detect in the communication message of PINYIN form comprising the
The phonetic of one keyword, and meet format character corresponding to the first keyword.
In force, server can be detected in the communication message after conversion with the presence or absence of any in above-mentioned mapping table
The phonetic of keyword, if it is present continuing in above-mentioned mapping table, obtain format character letter corresponding with the keyword
Breath, further with the presence or absence of the character for meeting corresponding format character in the communication message after detection conversion, if there is corresponding
Character, then can be determined that the match is successful, if there is no corresponding character or in the absence of the key in above-mentioned mapping table
The phonetic of word, then it can be determined that it fails to match.
In step 3, if not including the phonetic of the first keyword in the communication message of PINYIN form, or the is not met
Format character corresponding to one keyword, then be sent to second terminal by communication message;If wrapped in the communication message of PINYIN form
Phonetic containing the first keyword, and format character corresponding to meeting the first keyword, then filter communication message.
In force, for it is above-mentioned the match is successful in the case of, can be by the filtering communication message;It fails to match for above-mentioned
Situation, the communication message can be sent to log in the second account second terminal.For example, conversion after communication message in wrap
Phonetic " lian xi fang shi ", and meeting comprising character string " 010-12345678 " containing keyword " contact method "
Format character corresponding to " contact method ", then can be by corresponding filtering communication message.
Mode three
In step 1, if not including the first keyword in communication message, or lattice corresponding to the first keyword are not met
Formula feature, then the preset characters in communication message are deleted, and/or specific character is converted into corresponding word, and/or will communication
Digital content in message is converted to the numeral of the first preset format, and the alphabetical content in communication message is converted into second presets
The letter of form, the communication message after being handled.
In force, in the case of it fails to match in above-mentioned steps 102, server can be according to default contents processing
Mechanism is handled communication message, and the communication message after being handled, optional processing mode is varied herein, can be wrapped
Include the combination of a kind of processing mode or a variety of processing modes in following processing mode:
Processing mode one, delete the preset characters in communication message.Such as the preset characters@#$ in deletion communication message.
The effect of the processing mode can be as shown in Figure 3.
Processing mode two, specific character is converted into corresponding word.
Processing mode three, the digital content in communication message is converted to the numeral of the first preset format, by communication message
In alphabetical content be converted to the letter of the second preset format.Such as 1. (2) the digital content in communication message III is converted to
123, alphabetical content AbCCd is converted into abccd.The effect of the processing mode can be as shown in Figure 4.
In step 2, according to the keywords database prestored, whether first is included in the communication message after detection process
Keyword, and meet format character corresponding to the first keyword.
In force, server can with the communication message after detection process whether there is above-mentioned keywords database in any
Keyword, if it is present continuing in mapping table, format character information corresponding with the keyword is obtained, further
With the presence or absence of meeting the character of corresponding format character in communication message after detection process, if there is corresponding character, then
It can be determined that the match is successful, then can be with if there is no corresponding character or in the absence of the keyword in above-mentioned mapping table
Judge that it fails to match.
In step 3, if not including the first keyword in communication message after processing, or the first keyword is not met
Corresponding format character, then be sent to second terminal by communication message;
If including the first keyword in the communication message after processing, and meet format character corresponding to the first keyword,
Then filter communication message.
In force, for it is above-mentioned the match is successful in the case of, can be by the filtering communication message;It fails to match for above-mentioned
Situation, the communication message can be sent to log in the second account second terminal.For example, processing after communication message in wrap
Meet format character corresponding to " cell-phone number " containing keyword " cell-phone number ", and comprising character string " 13012345678 ", then can be with
By corresponding filtering communication message.
During the disclosure is implemented, the side that keyword and corresponding format character information are added in keywords database is additionally provided
Method, following processing step can be included:
In step 1, receive and instruction is set, setting instruction carries keyword to be placed and form to be placed
Characteristic information.
In force, network manager can be configured by management terminal to above-mentioned corresponding relation, accordingly, in pipe
Management program can be installed, management program, which provides, sets the page, and network manager can be defeated in the page is set in reason terminal
Enter keyword to be placed and format character information to be placed, and click on confirming button, at this moment, by triggering management terminal generation
Carry keyword to be placed and the setting of format character information to be placed instructs, be sent to server.
In step 2, keywords database is added to by keyword to be placed is corresponding with format character information to be placed.
In the embodiment of the present disclosure, the communication message that first terminal is sent is received, according to the keywords database prestored, detection
Whether the first keyword is included in communication message, and meet format character corresponding to the first keyword, if wrapped in communication message
Containing the first keyword, and format character corresponding to meeting the first keyword, then communication message is filtered, if do not wrapped in communication message
Containing the first keyword, or format character corresponding to not meeting the first keyword, then communication message is sent to second terminal.Pass through
Above-mentioned processing mode, while keyword is matched, it is also necessary to match the character of format character corresponding to meeting, Jin Ercai
Can be by filtering communication message, it is thus possible to reduce the probability to normal communication message screening.
Embodiment three
Based on identical technical concept, the embodiment of the present disclosure additionally provides a kind of device of message screening, as shown in figure 5,
Described device includes:
Receiving module 310, for receiving the communication message of first terminal transmission, wherein the destination bag of the communication message
Include second terminal;
Detection module 320, for according to the keywords database prestored, detecting the communication that the receiving module receives
Whether the first keyword is included in message, and meet format character corresponding to first keyword;Wherein, the keywords database
Including multiple keywords and format character information corresponding with each keyword, first keyword is the keywords database
In any keyword;
Processing module 330, if the testing result for the detection module is comprising described the in the communication message
One keyword, and format character corresponding to meeting first keyword, then filter the communication of the detection module detection
Message;If not including first keyword in the communication message of the detection module detection, or do not meet described first and close
Format character corresponding to keyword, the then communication message detected the detection module are sent to the second terminal.
Optionally, the processing module 330, is used for:
If the testing result of the detection module is not include first keyword in the communication message, or is not inconsistent
Format character corresponding to first keyword is closed, then the keywords database prestored according to, detects the communication message
In whether include the phonetic of first keyword, and meet format character corresponding to first keyword;
If not including the phonetic of first keyword in the communication message, or first keyword pair is not met
The format character answered, then the communication message is sent to the second terminal;
The processing module 330 is additionally operable to:
If including the phonetic of first keyword in the communication message, and meet corresponding to first keyword
Format character, then filter the communication message.
Optionally, the processing module 330, is used for:
If the testing result of the detection module is not include first keyword in the communication message, or is not inconsistent
Format character corresponding to closing first keyword, then be converted to phonetic by the word content in the communication message, spelled
The communication message of sound form;
According to the keywords database prestored, whether detect in the communication message of the PINYIN form comprising described the
The phonetic of one keyword, and meet format character corresponding to first keyword;
If not including the phonetic of first keyword in the communication message of the PINYIN form, or do not meet described the
Format character corresponding to one keyword, then the communication message is sent to the second terminal;
The processing module 330 is additionally operable to:
If including the phonetic of first keyword in the communication message of the PINYIN form, and meet described first and close
Format character corresponding to keyword, then filter the communication message.
Optionally, the processing module 330, is used for:
If the testing result of the detection module is not include first keyword in the communication message, or is not inconsistent
Format character corresponding to closing first keyword, then delete the predetermined word in the communication message of the detection module detection
Symbol, and/or specific character is converted into corresponding word, and/or the digital content in the communication message is converted to first
The numeral of preset format, the alphabetical content in the communication message is converted to the letter of the second preset format, after obtaining processing
Communication message;
According to the keywords database prestored, detect in the communication message after the processing whether include described first
Keyword, and meet format character corresponding to first keyword;
If not including first keyword in the communication message after the processing, or first keyword is not met
Corresponding format character, then the communication message is sent to the second terminal;
The processing module 330 is additionally operable to:
If first keyword is included in the communication message after the processing, and it is corresponding to meet first keyword
Format character, then filter the communication message.
Optionally, described device also includes memory module, is used for:
Receive and instruction is set, it is described to set instruction to carry keyword to be placed and format character information to be placed;
The keywords database is added to by the keyword to be placed is corresponding with format character information to be placed.
In the embodiment of the present disclosure, the communication message that first terminal is sent is received, according to the keywords database prestored, detection
Whether the first keyword is included in communication message, and meet format character corresponding to the first keyword, if wrapped in communication message
Containing the first keyword, and format character corresponding to meeting the first keyword, then communication message is filtered, if do not wrapped in communication message
Containing the first keyword, or format character corresponding to not meeting the first keyword, then communication message is sent to second terminal.Pass through
Above-mentioned processing mode, while keyword is matched, it is also necessary to match the character of format character corresponding to meeting, Jin Ercai
Can be by filtering communication message, it is thus possible to reduce the probability to normal communication message screening.
Example IV
Fig. 6 is a kind of block diagram of device 1900 for message screening according to an exemplary embodiment.For example, dress
Put 1900 servers that may be provided in an instant messaging business.Reference picture 6, device 1900 include processing component 1922, its
Further comprise one or more processors, and as the memory resource representated by memory 1932, can be by for storing
Manage the instruction of the execution of part 1922, such as application program.The application program stored in memory 1932 can include one or
It is more than one each correspond to the module of one group of instruction.In addition, processing component 1922 is configured as execute instruction, to perform
A kind of method of message screening.
Device 1900 can also include a power supply module 1926 and be configured as the power management of performs device 1900, one
Wired or wireless network interface 1950 is configured as device 1900 being connected to network, and input and output (I/O) interface
1958.Device 1900 can be operated based on the operating system for being stored in memory 1932, such as Windows Server TM, Mac
OS XTM, Unix TM, Linux TM, FreeBSD TM or similar.
The method of the message screening, including:
The communication message that first terminal is sent is received, wherein the destination of the communication message includes second terminal;
According to the keywords database prestored, detect in the communication message whether include the first keyword, and meet institute
State format character corresponding to the first keyword;Wherein, the keywords database include multiple keywords and with each keyword pair
The format character information answered, first keyword are any keywords in the keywords database;
If first keyword is included in the communication message, and it is special to meet form corresponding to first keyword
Sign, then filter the communication message;
If not including first keyword in the communication message, or lattice corresponding to first keyword are not met
Formula feature, then the communication message is sent to the second terminal.
Optionally, if not including first keyword in the communication message, or do not meet described first and close
Format character corresponding to keyword, then the communication message is sent to the second terminal, including:
If not including first keyword in the communication message, or lattice corresponding to first keyword are not met
Formula feature, the then keywords database prestored according to, detects in the communication message whether include first keyword
Phonetic, and meet format character corresponding to first keyword;
If not including the phonetic of first keyword in the communication message, or first keyword pair is not met
The format character answered, then the communication message is sent to the second terminal;
Methods described also includes:
If including the phonetic of first keyword in the communication message, and meet corresponding to first keyword
Format character, then filter the communication message.
Optionally, if not including first keyword in the communication message, or do not meet described first and close
Format character corresponding to keyword, then the communication message is sent to the second terminal, including:
If not including first keyword in the communication message, or lattice corresponding to first keyword are not met
Formula feature, then the word content in the communication message is converted into phonetic, obtains the communication message of PINYIN form;
According to the keywords database prestored, whether detect in the communication message of the PINYIN form comprising described the
The phonetic of one keyword, and meet format character corresponding to first keyword;
If not including the phonetic of first keyword in the communication message of the PINYIN form, or do not meet described the
Format character corresponding to one keyword, then the communication message is sent to the second terminal;
Methods described also includes:
If including the phonetic of first keyword in the communication message of the PINYIN form, and meet described first and close
Format character corresponding to keyword, then filter the communication message.
Optionally, if not including first keyword in the communication message, or do not meet described first and close
Format character corresponding to keyword, then the communication message is sent to the second terminal, including:
If not including first keyword in the communication message, or lattice corresponding to first keyword are not met
Formula feature, then the preset characters in the communication message are deleted, and/or specific character is converted into corresponding word, and/or will
Digital content in the communication message is converted to the numeral of the first preset format, and the alphabetical content in the communication message is turned
The letter of the second preset format is changed to, the communication message after being handled;
According to the keywords database prestored, detect in the communication message after the processing whether include described first
Keyword, and meet format character corresponding to first keyword;
If not including first keyword in the communication message after the processing, or first keyword is not met
Corresponding format character, then the communication message is sent to the second terminal;
Methods described also includes:
If first keyword is included in the communication message after the processing, and it is corresponding to meet first keyword
Format character, then filter the communication message.
Optionally, methods described also includes:
Receive and instruction is set, it is described to set instruction to carry keyword to be placed and format character information to be placed;
The keywords database is added to by the keyword to be placed is corresponding with format character information to be placed.
In the embodiment of the present disclosure, the communication message that first terminal is sent is received, according to the keywords database prestored, detection
Whether the first keyword is included in communication message, and meet format character corresponding to the first keyword, if wrapped in communication message
Containing the first keyword, and format character corresponding to meeting the first keyword, then communication message is filtered, if do not wrapped in communication message
Containing the first keyword, or format character corresponding to not meeting the first keyword, then communication message is sent to second terminal.Pass through
Above-mentioned processing mode, while keyword is matched, it is also necessary to match the character of format character corresponding to meeting, Jin Ercai
Can be by filtering communication message, it is thus possible to reduce the probability to normal communication message screening.
Those skilled in the art will readily occur to the present invention its after considering specification and putting into practice invention disclosed herein
Its embodiment.The application be intended to the present invention any modification, purposes or adaptations, these modifications, purposes or
Person's adaptations follow the general principle of the present invention and including the undocumented common knowledges in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and
And various modifications and changes can be being carried out without departing from the scope.The scope of the present invention is only limited by appended claim.
Claims (7)
- A kind of 1. method of message screening, it is characterised in that methods described includes:The communication message that first terminal is sent is received, wherein the destination of the communication message includes second terminal;According to the keywords database prestored, detect in the communication message whether include the first keyword, and meet described Format character corresponding to one keyword;Wherein, the keywords database includes multiple keywords and corresponding with each keyword Format character information, first keyword are any keywords in the keywords database, and the format character information is to use In the information that the character that specified format feature is inquired about in the communication message uses;If including first keyword in the communication message, and meet format character corresponding to first keyword, Then filter the communication message;If not including first keyword in the communication message, or form spy corresponding to first keyword is not met Sign, then be sent to the second terminal by the communication message;If not including first keyword in the communication message, or lattice corresponding to first keyword are not met Formula feature, then the communication message is sent to the second terminal, including:If not including first keyword in the communication message, or form spy corresponding to first keyword is not met Sign, then the preset characters in the communication message are deleted, and/or specific character is converted into corresponding word, and/or by described in Digital content in communication message is converted to the numeral of the first preset format, and the alphabetical content in the communication message is converted to The letter of second preset format, the communication message after being handled;According to the keywords database prestored, detect whether crucial comprising described first in the communication message after the processing Word, and meet format character corresponding to first keyword;If not including first keyword in the communication message after the processing, or do not meet first keyword and correspond to Format character, then the communication message is sent to the second terminal;Methods described also includes:If including first keyword in the communication message after the processing, and meet lattice corresponding to first keyword Formula feature, then filter the communication message;Methods described also includes:Receive and instruction is set, it is described to set instruction to carry keyword to be placed and format character information to be placed;The keywords database is added to by the keyword to be placed is corresponding with format character information to be placed.
- 2. according to the method for claim 1, it is characterised in that if not including described first in the communication message Keyword, or do not meet format character corresponding to first keyword, then the communication message is sent to described second eventually End, including:If not including first keyword in the communication message, or form spy corresponding to first keyword is not met Sign, the then keywords database prestored according to, detects the spelling that first keyword whether is included in the communication message Sound, and meet format character corresponding to first keyword;If not including the phonetic of first keyword in the communication message, or do not meet corresponding to first keyword Format character, then the communication message is sent to the second terminal;Methods described also includes:If including the phonetic of first keyword in the communication message, and meet form corresponding to first keyword Feature, then filter the communication message.
- 3. according to the method for claim 1, it is characterised in that if not including described first in the communication message Keyword, or do not meet format character corresponding to first keyword, then the communication message is sent to described second eventually End, including:If not including first keyword in the communication message, or form spy corresponding to first keyword is not met Sign, then be converted to phonetic by the word content in the communication message, obtain the communication message of PINYIN form;According to the keywords database prestored, detect in the communication message of the PINYIN form and whether closed comprising described first The phonetic of keyword, and meet format character corresponding to first keyword;If not including the phonetic of first keyword in the communication message of the PINYIN form, or do not meet described first and close Format character corresponding to keyword, then the communication message is sent to the second terminal;Methods described also includes:If including the phonetic of first keyword in the communication message of the PINYIN form, and meet first keyword Corresponding format character, then filter the communication message.
- 4. a kind of device of message screening, it is characterised in that described device includes:Receiving module, for receiving the communication message of first terminal transmission, wherein the destination of the communication message includes second Terminal;Detection module, for according to the keywords database prestored, detecting in the communication message that the receiving module receives Whether the first keyword is included, and meet format character corresponding to first keyword;Wherein, the keywords database includes more Individual keyword and format character information corresponding with each keyword, first keyword are appointing in the keywords database One keyword, the format character information are used for inquiring about the character of specified format feature in the communication message Information;Processing module, if the testing result for the detection module is crucial comprising described first in the communication message Word, and format character corresponding to meeting first keyword, then filter the communication message of the detection module detection;Such as Do not include first keyword in the communication message that detection module described in fruit detects, or do not meet first keyword and correspond to Format character, then the communication message detected the detection module is sent to the second terminal;The processing module is additionally operable to:If the testing result of the detection module is not include first keyword in the communication message, or does not meet institute Format character corresponding to the first keyword is stated, then deletes the preset characters in the communication message of the detection module detection, And/or specific character is converted into corresponding word, and/or the digital content in the communication message is converted to first and preset The numeral of form, the alphabetical content in the communication message is converted to the letter of the second preset format, it is logical after being handled Interrogate message;According to the keywords database prestored, detect whether crucial comprising described first in the communication message after the processing Word, and meet format character corresponding to first keyword;If not including first keyword in the communication message after the processing, or do not meet first keyword and correspond to Format character, then the communication message is sent to the second terminal;The processing module is additionally operable to:If including first keyword in the communication message after the processing, and meet lattice corresponding to first keyword Formula feature, then filter the communication message;Described device also includes memory module, is used for:Receive and instruction is set, it is described to set instruction to carry keyword to be placed and format character information to be placed;The keywords database is added to by the keyword to be placed is corresponding with format character information to be placed.
- 5. device according to claim 4, it is characterised in that the processing module, be used for:If the testing result of the detection module is not include first keyword in the communication message, or does not meet institute Format character corresponding to the first keyword is stated, then the keywords database prestored according to, detecting in the communication message is It is no to include the phonetic of first keyword, and meet format character corresponding to first keyword;If not including the phonetic of first keyword in the communication message, or do not meet corresponding to first keyword Format character, then the communication message is sent to the second terminal;The processing module is additionally operable to:If including the phonetic of first keyword in the communication message, and meet form corresponding to first keyword Feature, then filter the communication message.
- 6. device according to claim 5, it is characterised in that the processing module, be used for:If the testing result of the detection module is not include first keyword in the communication message, or does not meet institute Format character corresponding to the first keyword is stated, then the word content in the communication message is converted into phonetic, obtains phonetic shape The communication message of formula;According to the keywords database prestored, detect in the communication message of the PINYIN form and whether closed comprising described first The phonetic of keyword, and meet format character corresponding to first keyword;If not including the phonetic of first keyword in the communication message of the PINYIN form, or do not meet described first and close Format character corresponding to keyword, then the communication message is sent to the second terminal;The processing module is additionally operable to:If including the phonetic of first keyword in the communication message of the PINYIN form, and meet first keyword Corresponding format character, then filter the communication message.
- A kind of 7. device of message screening, it is characterised in that including:Processor;For storing the memory of processor-executable instruction;Wherein, the processor is configured as:The communication message that first terminal is sent is received, wherein the destination of the communication message includes second terminal;According to the keywords database prestored, detect in the communication message whether include the first keyword, and meet described Format character corresponding to one keyword;Wherein, the keywords database includes multiple keywords and corresponding with each keyword Format character information, first keyword are any keywords in the keywords database, and the format character information is to use In the information that the character that specified format feature is inquired about in the communication message uses;If including first keyword in the communication message, and meet format character corresponding to first keyword, Then filter the communication message;If not including first keyword in the communication message, or do not meet described first and close Format character corresponding to keyword, then the communication message is sent to the second terminal;If not including first keyword in the communication message, or lattice corresponding to first keyword are not met Formula feature, then the communication message is sent to the second terminal, including:If not including first keyword in the communication message, or form spy corresponding to first keyword is not met Sign, then the preset characters in the communication message are deleted, and/or specific character is converted into corresponding word, and/or by described in Digital content in communication message is converted to the numeral of the first preset format, and the alphabetical content in the communication message is converted to The letter of second preset format, the communication message after being handled;According to the keywords database prestored, detect whether crucial comprising described first in the communication message after the processing Word, and meet format character corresponding to first keyword;If not including first keyword in the communication message after the processing, or do not meet first keyword and correspond to Format character, then the communication message is sent to the second terminal;The processor is additionally configured to:If including first keyword in the communication message after the processing, and meet lattice corresponding to first keyword Formula feature, then filter the communication message;The processor is additionally configured to:Receive and instruction is set, it is described to set instruction to carry keyword to be placed and format character information to be placed;The keywords database is added to by the keyword to be placed is corresponding with format character information to be placed.
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 CN104184653A (en) | 2014-12-03 |
CN104184653B true 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) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105991403B (en) * | 2015-02-06 | 2021-08-06 | 阿里巴巴集团控股有限公司 | Multimedia sharing method and device based on instant messaging |
CN106161203B (en) * | 2015-04-28 | 2020-02-07 | 阿里巴巴集团控股有限公司 | Group message processing method and device |
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 |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
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 |
CN103064928A (en) * | 2012-12-21 | 2013-04-24 | 北京二六三企业通信有限公司 | Method and device for filtering junk files based on key words |
Family Cites Families (3)
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 |
CN101201820B (en) * | 2007-11-28 | 2010-06-02 | 北京金山软件有限公司 | Method and system for filtering bilingualism corpora |
CN102572745A (en) * | 2010-12-24 | 2012-07-11 | 中国移动通信集团上海有限公司 | Method and device for determining waste short message |
-
2014
- 2014-07-28 CN CN201410364741.8A patent/CN104184653B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
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 |
CN103064928A (en) * | 2012-12-21 | 2013-04-24 | 北京二六三企业通信有限公司 | Method and device for filtering junk files based on key words |
Also Published As
Publication number | Publication date |
---|---|
CN104184653A (en) | 2014-12-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104184653B (en) | A kind of method and apparatus of message screening | |
CN103546877B (en) | A kind of method, system and mobile terminal obtaining simultaneously input content code | |
CN107872772B (en) | Method and device for detecting fraud short messages | |
WO2016101384A1 (en) | Dual-system switch based data security processing method and apparatus | |
US20140007247A1 (en) | Dynamic Security Question Compromise Checking Based on Incoming Social Network Postings | |
CN104462509A (en) | Review spam detection method and device | |
CN107862214A (en) | Prevent the method, apparatus and storage medium of sensitive information leakage | |
CN106959852A (en) | Footmark display methods, device and the terminal of application icon | |
CN107634947A (en) | Limitation malice logs in or the method and apparatus of registration | |
US20140007206A1 (en) | Notification of Security Question Compromise Level based on Social Network Interactions | |
US10158639B1 (en) | Data scrubbing via template generation and matching | |
US20230237265A1 (en) | Method and apparatus for detecting anomalies in mission critical environments | |
CN105898085A (en) | Harassment communication account identification method and device | |
CN106713579A (en) | Telephone number identification method and device | |
CN106528835A (en) | Information acquisition method and device | |
JP2015053028A (en) | Information management system, information management program, information management method, and information management device | |
CN106936807A (en) | A kind of recognition methods of malicious operation and device | |
CN106559551A (en) | A kind of information cuing method of address list, device | |
CN106559556A (en) | A kind of communication processing method, device | |
CN109905359B (en) | Communication message processing method, device, computer equipment and readable access medium | |
WO2023061267A1 (en) | Personal information display method and apparatus, and device and storage medium | |
CN105022821B (en) | Content filtering method and terminal | |
EP4120625B1 (en) | System, device and method for detecting social engineering attacks in digital communications | |
Kim et al. | Scam detection assistant: Automated protection from scammers | |
CN205427857U (en) | Identity identification system based on many biological characteristics combine equipment fingerprint |
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 |