CN103714160A - Method and system for filtering sensitive words in online game - Google Patents
Method and system for filtering sensitive words in online game Download PDFInfo
- Publication number
- CN103714160A CN103714160A CN201310741002.1A CN201310741002A CN103714160A CN 103714160 A CN103714160 A CN 103714160A CN 201310741002 A CN201310741002 A CN 201310741002A CN 103714160 A CN103714160 A CN 103714160A
- Authority
- CN
- China
- Prior art keywords
- server
- client
- filtering
- text
- sensitive
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/335—Filtering based on additional data, e.g. user or group profiles
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a method and system for filtering sensitive words in an online game. The sensitive words in contents of an input text and the sensitive words in contents of a received text are mainly filtered through a client terminal. When sudden events occur, new sensitive words are added into a sensitive word base of a server, a filter switch of the server is triggered to be switched off, and new-sensitive-word filtering is carried out on the contents of the text received by the server. Due to the fact that the sudden events can not occur every week, additional computing of the server can not be complex, and influences on consumption of the server are limited.
Description
Technical field
The present invention relates to computer realm, relate in particular to filtering sensitive words method and system in a kind of online game.
Background technology
In MMO online game, player's online exchange and interaction are the core enjoyment places of online game, but the mutual exchange and effect between player inevitably may relate to some sensitive words, it is extremely important and significant that a healthy harmonious online game environment is provided, therefore, need to filter the sensitive word occurring in player exchange.In prior art, games system Network Based, adopts the filtration of carrying out in two ways sensitive word conventionally.
First kind of way: completed the filtration of sensitive word by client, client stores has responsive dictionary; The content of text of inputting due to player is to be sent to server by client, again by server forwards to take over party's client, therefore, filtering sensitive words module is set in client, content of text for input carries out filtering sensitive words, text after filtering is sent to server, then is forwarded to the demonstration of take over party's client; The advantage of this kind of mode is, each client is carried out separately filtering sensitive words, and efficiency is high, and does not take server resource, and server does not calculate consumption; Yet, sensitive word has ageing, thereby, for emergent sensitive word, the responsive dictionary that is increased to client that can not be real-time, can only cut off game server, and just can complete the filtration for emerging sensitive word upgraded the responsive dictionary of client player after, except needs delay the long period, the loss of withdrawing is also huge.
The second way: completed the filtration of sensitive word by server, in server, store responsive dictionary, and filtering sensitive words module is set, the content of text that server is received carries out filtering sensitive words, and the content of text executing after filtering sensitive words is sent to client; The advantage of this kind of mode is to increase in real time sensitive word, after there is accident, does not need just to withdraw and can realize the sensitive word that dynamic appending is new; The inferior position of this kind of mode is, can cause increasing a large amount of extra computation consume by server execution filtering sensitive words, affects server performance.
Summary of the invention
The invention provides filtering sensitive words method and system in a kind of online game, when realizing real-time dynamically increase sensitive word, avoid increasing the calculating consumption of server.
The technological means that the present invention adopts is as follows: a kind of filtering sensitive words method in online game, comprising:
Client carries out being sent to server after filtering sensitive words to the content of text of input;
Servers installed has the switch of filtration and the responsive dictionary of server, and when filtering switch open, the content of text that the responsive dictionary docking of server by utilizing server is received carries out filtering sensitive words, and the content of text after again filtering is sent to client; When filtration switch cuts out, server is sent to client by the content of text of reception; Wherein, when the responsive dictionary of server increases new sensitive word, trigger and filter switch open.
Further, described client carries out showing after filtering sensitive words to the content of text receiving.
Further, described client is provided with the responsive dictionary of client and comprises the client filtering sensitive words module of client sensitive word replacement mapping, client filtering sensitive words module is compared the sensitive word in the content of text of the content of text of input or client and the responsive dictionary of client one by one, if while there is the sensitive word conforming to sensitive word in the responsive dictionary of client, replace mapping according to client sensitive word the sensitive word in content of text replaced.
Further, Servers installed has the server filtering sensitive words module that comprises server sensitive word replacement mapping, when filtering switch open, sensitive word in the responsive dictionary of the content of text that server filtering sensitive words module receives server and server contrasts one by one, if while there is the sensitive word conforming to sensitive word in the responsive dictionary of server, replace mapping according to server sensitive word the sensitive word in the content of text of server reception replaced.
Further, described client filtering sensitive words module and server filtering sensitive words module employing " Bloom Filter+ regular expression " utilize accordingly the responsive dictionary of client and the responsive dictionary of service device and be filtered text carries out Match of elemental composition, if exist identical element to replace.
Further, when server routine is safeguarded, add new sensitive word to client responsive dictionary, and the filtration switch of server is set to cut out.
The present invention also provides filtering sensitive words system in a kind of online game, comprises client and server;
Wherein, described client is for carrying out being sent to server after filtering sensitive words to the content of text of input;
Described server comprises filtration switch and the responsive dictionary of server, and when filtering switch open, the content of text of the responsive dictionary docking of server by utilizing server receipts carries out filtering sensitive words, and the content of text after again filtering is sent to client; When filtration switch cuts out, server is sent to client by the content of text of reception; Wherein, when the responsive dictionary of server increases new sensitive word, trigger and filter switch open.
The content of text that described client is further used for receiving carries out showing after filtering sensitive words.
Further, described client is provided with the responsive dictionary of client and comprises the client filtering sensitive words module of client sensitive word replacement mapping, client filtering sensitive words module is for comparing the sensitive word in the content of text of the content of text of input or client and the responsive dictionary of client one by one, if while there is the sensitive word conforming to sensitive word in the responsive dictionary of client, replace mapping according to client sensitive word the sensitive word in content of text replaced.
Further, Servers installed has the server filtering sensitive words module that comprises server sensitive word replacement mapping, when filtering switch open, server filtering sensitive words module contrasts one by one for the sensitive word in the content of text of server reception and the responsive dictionary of server, if while there is the sensitive word conforming to sensitive word in the responsive dictionary of server, replace mapping according to server sensitive word the sensitive word in the content of text of server reception replaced.
Further, described client filtering sensitive words module and server filtering sensitive words module employing " Bloom Filter+ regular expression " utilize accordingly the responsive dictionary of client and the responsive dictionary of service device and be filtered text carries out Match of elemental composition, if exist identical element to replace.
Described server is further used for when server routine is safeguarded, add new sensitive word to client responsive dictionary, and the filtration switch of server is set to cut out.
Adopt filtering sensitive words method and system in online game provided by the present invention, the mainly filtration to sensitive word in input text content and reception content of text by client executing, after there is accident, in the responsive dictionary of server, add new sensitive word, and trigger the filtration switch open of server, the content of text that server is received carries out new filtering sensitive words, because burst can all not occur weekly, therefore the extra computation of server can be very not loaded down with trivial details yet, limited on the consumption impact of server.
Accompanying drawing explanation
Fig. 1 is filtering sensitive words method flow schematic diagram in a kind of online game of the present invention.
Embodiment
Below in conjunction with accompanying drawing, principle of the present invention and feature are described, example, only for explaining the present invention, is not intended to limit scope of the present invention.
A filtering sensitive words method in online game, comprising:
Client carries out being sent to server after filtering sensitive words to the content of text of input;
Servers installed has the switch of filtration and the responsive dictionary of server, and when filtering switch open, the content of text that the responsive dictionary docking of server by utilizing server is received carries out filtering sensitive words, and the content of text after again filtering is sent to client; When filtration switch cuts out, server is sent to client by the content of text of reception; Wherein, when the responsive dictionary of server increases new sensitive word, trigger and filter switch open.
According to said method provided by the invention, the mainly filtration to sensitive word in input text content and reception content of text by client executing, after there is accident, in the responsive dictionary of server, add new sensitive word, and triggering the filtration switch open of server, the content of text that server is received carries out new filtering sensitive words, because burst can all not occur weekly, therefore the extra computation of server can be very not loaded down with trivial details yet, limited on the consumption impact of server.
Exemplary embodiments as filtering sensitive words method in online game of the present invention, as shown in Figure 1, comprising:
Client carries out being sent to server after filtering sensitive words to the content of text of input; Wherein, client is provided with the responsive dictionary of client and comprises the client filtering sensitive words module of client sensitive word replacement mapping, client filtering sensitive words module is compared the sensitive word in the content of text of input and the responsive dictionary of client one by one, if while there is the sensitive word conforming to sensitive word in the responsive dictionary of client, according to client sensitive word, replace mapping the sensitive word in content of text is replaced, the content of text after filtering is sent to server;
Servers installed has the switch of filtration and the responsive dictionary of server, and when filtering switch open, the content of text that the responsive dictionary docking of server by utilizing server is received carries out filtering sensitive words again, and the content of text after again filtering is sent to client; When filtration switch cuts out, server is sent to client by the content of text of reception; Wherein, when the responsive dictionary of server increases new sensitive word, trigger and filter switch open; In server, be provided with the server filtering sensitive words module that comprises server sensitive word replacement mapping, when filtering switch open, sensitive word in the responsive dictionary of the content of text that server filtering sensitive words module receives server and server contrasts one by one, if while there is the sensitive word conforming to sensitive word in the responsive dictionary of server, replace mapping according to server sensitive word the sensitive word in the content of text of server reception replaced;
Client carries out showing after filtering sensitive words to the content of text receiving; Wherein, client filtering sensitive words module is compared the sensitive word in the content of text of client and the responsive dictionary of client one by one, if while there is the sensitive word conforming to sensitive word in the responsive dictionary of client, according to client sensitive word, replace mapping the sensitive word in content of text is replaced, finally show content of text;
When server routine is safeguarded, add new sensitive word to client responsive dictionary, and the filtration switch of server is set to cut out; Can guarantee that like this time period that server filtration is carried out is only present between twice routine maintenance.After routine maintenance, because client sensitive word file has increased new sensitive word, become again the mode of full Filter of client next time.
It should be noted that, for client filtering sensitive words module and server filtering sensitive words module, all can adopt " Bloom Filter+ regular expression " to utilize accordingly the responsive dictionary of client and the responsive dictionary of service device and be filtered text and carry out Match of elemental composition, if exist identical element to replace.Those skilled in the art also can adopt existing other technologies to realize the filtration to sensitive word, do not repeat them here.
Corresponding with filtering sensitive words method in online game of the present invention, the present invention also provides filtering sensitive words system in a kind of online game, comprises client and server;
Wherein, described client is for carrying out being sent to server after filtering sensitive words to the content of text of input;
Described server comprises filtration switch and the responsive dictionary of server, and when filtering switch open, the content of text of the responsive dictionary docking of server by utilizing server receipts carries out filtering sensitive words, and the content of text after again filtering is sent to client; When filtration switch cuts out, server is sent to client by the content of text of reception; Wherein, when the responsive dictionary of server increases new sensitive word, trigger and filter switch open.
The content of text that described client is further used for receiving carries out showing after filtering sensitive words.
Further, described client is provided with the responsive dictionary of client and comprises the client filtering sensitive words module of client sensitive word replacement mapping, client filtering sensitive words module is for comparing the sensitive word in the content of text of the content of text of input or client and the responsive dictionary of client one by one, if while there is the sensitive word conforming to sensitive word in the responsive dictionary of client, replace mapping according to client sensitive word the sensitive word in content of text replaced.
Further, Servers installed has the server filtering sensitive words module that comprises server sensitive word replacement mapping, when filtering switch open, server filtering sensitive words module contrasts one by one for the sensitive word in the content of text of server reception and the responsive dictionary of server, if while there is the sensitive word conforming to sensitive word in the responsive dictionary of server, replace mapping according to server sensitive word the sensitive word in the content of text of server reception replaced.
Further, described client filtering sensitive words module and server filtering sensitive words module employing " Bloom Filter+ regular expression " utilize accordingly the responsive dictionary of client and the responsive dictionary of service device and be filtered text carries out Match of elemental composition, if exist identical element to replace.
Described server is further used for when server routine is safeguarded, add new sensitive word to client responsive dictionary, and the filtration switch of server is set to cut out.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, be equal to replacement, improvement etc., within all should being included in the scope of protection of the invention.
Claims (12)
1. a filtering sensitive words method in online game, is characterized in that, comprising:
Client carries out being sent to server after filtering sensitive words to the content of text of input;
Servers installed has the switch of filtration and the responsive dictionary of server, and when filtering switch open, the content of text that the responsive dictionary docking of server by utilizing server is received carries out filtering sensitive words, and the content of text after again filtering is sent to client; When filtration switch cuts out, server is sent to client by the content of text of reception; Wherein, when the responsive dictionary of server increases new sensitive word, trigger and filter switch open.
2. method according to claim 1, is characterized in that, described client carries out showing after filtering sensitive words to the content of text receiving.
3. method according to claim 2, it is characterized in that, described client is provided with the responsive dictionary of client and comprises the client filtering sensitive words module of client sensitive word replacement mapping, client filtering sensitive words module is compared the sensitive word in the content of text of the content of text of input or client and the responsive dictionary of client one by one, if while there is the sensitive word conforming to sensitive word in the responsive dictionary of client, replace mapping according to client sensitive word the sensitive word in content of text replaced.
4. method according to claim 3, it is characterized in that, Servers installed has the server filtering sensitive words module that comprises server sensitive word replacement mapping, when filtering switch open, sensitive word in the responsive dictionary of the content of text that server filtering sensitive words module receives server and server contrasts one by one, if while there is the sensitive word conforming to sensitive word in the responsive dictionary of server, replace mapping according to server sensitive word the sensitive word in the content of text of server reception replaced.
5. method according to claim 4, it is characterized in that, described client filtering sensitive words module and server filtering sensitive words module employing " Bloom Filter+ regular expression " utilize accordingly the responsive dictionary of client and the responsive dictionary of service device and be filtered text carries out Match of elemental composition, if exist identical element to replace.
6. method according to claim 5, is characterized in that, when server routine is safeguarded, add new sensitive word to client responsive dictionary, and the filtration switch of server is set to cut out.
7. a filtering sensitive words system in online game, is characterized in that, comprises client and server;
Wherein, described client is for carrying out being sent to server after filtering sensitive words to the content of text of input;
Described server comprises filtration switch and the responsive dictionary of server, and when filtering switch open, the content of text of the responsive dictionary docking of server by utilizing server receipts carries out filtering sensitive words, and the content of text after again filtering is sent to client; When filtration switch cuts out, server is sent to client by the content of text of reception; Wherein, when the responsive dictionary of server increases new sensitive word, trigger and filter switch open.
8. system according to claim 7, is characterized in that, the content of text that described client is further used for receiving carries out showing after filtering sensitive words.
9. system according to claim 8, it is characterized in that, described client is provided with the responsive dictionary of client and comprises the client filtering sensitive words module of client sensitive word replacement mapping, client filtering sensitive words module is for comparing the sensitive word in the content of text of the content of text of input or client and the responsive dictionary of client one by one, if while there is the sensitive word conforming to sensitive word in the responsive dictionary of client, replace mapping according to client sensitive word the sensitive word in content of text replaced.
10. system according to claim 9, it is characterized in that, Servers installed has the server filtering sensitive words module that comprises server sensitive word replacement mapping, when filtering switch open, server filtering sensitive words module contrasts one by one for the sensitive word in the content of text of server reception and the responsive dictionary of server, if while there is the sensitive word conforming to sensitive word in the responsive dictionary of server, replace mapping according to server sensitive word the sensitive word in the content of text of server reception replaced.
11. systems according to claim 10, it is characterized in that, described client filtering sensitive words module and server filtering sensitive words module employing " Bloom Filter+ regular expression " utilize accordingly the responsive dictionary of client and the responsive dictionary of service device and be filtered text carries out Match of elemental composition, if exist identical element to replace.
12. systems according to claim 11, is characterized in that, described server is further used for when server routine is safeguarded, add new sensitive word to client responsive dictionary, and the filtration switch of server are set to cut out.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310741002.1A CN103714160B (en) | 2013-12-27 | 2013-12-27 | Filtering sensitive words method and system in a kind of online game |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310741002.1A CN103714160B (en) | 2013-12-27 | 2013-12-27 | Filtering sensitive words method and system in a kind of online game |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103714160A true CN103714160A (en) | 2014-04-09 |
CN103714160B CN103714160B (en) | 2016-08-24 |
Family
ID=50407135
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310741002.1A Active CN103714160B (en) | 2013-12-27 | 2013-12-27 | Filtering sensitive words method and system in a kind of online game |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103714160B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104410532A (en) * | 2014-12-12 | 2015-03-11 | 携程计算机技术(上海)有限公司 | Server and log filtering method thereof |
CN105468684A (en) * | 2015-11-17 | 2016-04-06 | 贵阳朗玛信息技术股份有限公司 | Sensitive word filtering system and communication method thereof |
CN107066543A (en) * | 2017-03-14 | 2017-08-18 | 北京潘达互娱科技有限公司 | Filtering sensitive words method and apparatus |
CN108052529A (en) * | 2017-11-09 | 2018-05-18 | 福建省天奕网络科技有限公司 | A kind of filtering sensitive words method and terminal |
CN108399160A (en) * | 2018-02-26 | 2018-08-14 | 圆通速递有限公司 | A kind of method and system that the illegal word of online customer service is reminded |
CN108452525A (en) * | 2017-12-25 | 2018-08-28 | 福建省天奕网络科技有限公司 | The monitoring method and system of chat message in a kind of game |
CN109902080A (en) * | 2019-01-24 | 2019-06-18 | 北京太一智源科技有限公司 | The data monitoring and managing method of block chain |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101009666B (en) * | 2006-01-26 | 2011-12-28 | 腾讯科技(深圳)有限公司 | Email sending control system and method |
CN100383794C (en) * | 2006-03-31 | 2008-04-23 | 北京金山软件有限公司 | Searching method, holding method and searching system for dictionary-like data |
CN101075980A (en) * | 2006-07-26 | 2007-11-21 | 腾讯科技(深圳)有限公司 | Method and system for filtering information in telecommunication system |
CN101166160B (en) * | 2006-10-20 | 2010-09-15 | 阿里巴巴集团控股有限公司 | A method and system for filtering instant communication rubbish information |
CN102480437A (en) * | 2010-11-23 | 2012-05-30 | 中兴通讯股份有限公司 | Method and device for controlling internet surfing data of home gateway |
CN103065027B (en) * | 2011-10-19 | 2017-02-22 | 腾讯科技(深圳)有限公司 | Message leaving method and device provided for third-party social network site (SNS) web game |
-
2013
- 2013-12-27 CN CN201310741002.1A patent/CN103714160B/en active Active
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104410532A (en) * | 2014-12-12 | 2015-03-11 | 携程计算机技术(上海)有限公司 | Server and log filtering method thereof |
CN105468684A (en) * | 2015-11-17 | 2016-04-06 | 贵阳朗玛信息技术股份有限公司 | Sensitive word filtering system and communication method thereof |
CN105468684B (en) * | 2015-11-17 | 2019-06-11 | 贵阳朗玛信息技术股份有限公司 | Filtering sensitive words system and its communication means |
CN107066543A (en) * | 2017-03-14 | 2017-08-18 | 北京潘达互娱科技有限公司 | Filtering sensitive words method and apparatus |
CN108052529A (en) * | 2017-11-09 | 2018-05-18 | 福建省天奕网络科技有限公司 | A kind of filtering sensitive words method and terminal |
CN108452525A (en) * | 2017-12-25 | 2018-08-28 | 福建省天奕网络科技有限公司 | The monitoring method and system of chat message in a kind of game |
CN108452525B (en) * | 2017-12-25 | 2021-06-29 | 福建省天奕网络科技有限公司 | Method and system for monitoring chat information in game |
CN108399160A (en) * | 2018-02-26 | 2018-08-14 | 圆通速递有限公司 | A kind of method and system that the illegal word of online customer service is reminded |
CN109902080A (en) * | 2019-01-24 | 2019-06-18 | 北京太一智源科技有限公司 | The data monitoring and managing method of block chain |
Also Published As
Publication number | Publication date |
---|---|
CN103714160B (en) | 2016-08-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103714160A (en) | Method and system for filtering sensitive words in online game | |
CN203982354U (en) | A kind of redundant storage system | |
CN103034295B (en) | The reconfigurable micro server that I/O capability strengthens | |
CN103338125B (en) | A kind of method of batch network device configuration | |
CN107247763A (en) | Business datum statistical method, device, system, storage medium and electronic equipment | |
CN106020722A (en) | Method, device and system for deduplication of repeated data of cloud storage system | |
CN110599229A (en) | Hundred million-level flow advertisement real-time processing method, storage medium, electronic equipment and system | |
CN102523410B (en) | Method for writing video data and video data storage equipment | |
CN103209219A (en) | Distributed cluster file system | |
CN106294435A (en) | A kind of cloud Content Management System based on PaaS cloud platform | |
CN202524426U (en) | Enterprise cloud computing service application system | |
CN108694205A (en) | Match the method, apparatus of aiming field | |
CN102750342A (en) | Method for maintaining data consistency for cluster file system | |
CN104932837A (en) | Storage pool framework | |
CN203299803U (en) | Multi-path read-write system | |
CN103631930A (en) | Statistical method and statistical system for search engine space occupation | |
CN204360302U (en) | A kind of information management cloud stores all-in-one | |
CN103516812A (en) | Method for accelerating cloud storage internal data transmission | |
CN110703988B (en) | Storage pool creating method, system, terminal and storage medium for distributed storage | |
CN203387542U (en) | Cloud platform apparatus based on Andriod intelligent mobile terminal | |
CN203289495U (en) | High-speed expandable storage system for virtualization system | |
CN103514198A (en) | File management method, cloud storage system and cloud terminal server in cloud storage system | |
CN103049221A (en) | Method and device for processing disk array cache memory flash | |
CN103020011A (en) | Spaceborne reconfigurable synergistic processing unit | |
CN104301421A (en) | Cloud calculation real-time data synchronization method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |