Summary of the invention
The purpose of the invention is to overcome the shortcomings of above-mentioned background technique, provide fast in a kind of chat process of barrage website
Fast-growing realizes that the hyperlink of station inside enclosed shares mode by the content of identification marking at the system and method for hyperlink.
The present invention provides the system that hyperlink is quickly generated in a kind of chat process of barrage website, which includes client
And server, the server preset a mark, whether contain server in the barrage that client detection user sends
The mark of setting, if detecting that, containing mark in barrage, client obtains the content of mark, identifies to the content of mark
And filtering;Whether the content of client identification marking contains malicious code, and if there is malicious code, client is directly filtered out,
It is not sent to server;When the content of only client identification marking is normal, server just is sent by the content of mark;It is described
Server carries out logic control to the content of the mark received, by the content translation of mark at corresponding room number;Server
It filters out illegal room, abnormal room, room be not present, the room number of necessary being is generated into hyperlink, is shown in client
In end.
Based on the above technical solution, the format of the mark are as follows: reference characters+number, the content of mark are mark
Know the subsequent number of code name, represents room number.
Based on the above technical solution, the client judge user send barrage in whether contain sensitive words,
If containing sensitive words in barrage, the barrage is shielded, is not sent.
Based on the above technical solution, when the client is detected in a barrage containing multiple marks, client
End only sends first and is identified to server.
The present invention also provides the methods that hyperlink is quickly generated in a kind of chat process of barrage website, comprising the following steps:
Whether S1, server preset a mark, set containing server in the barrage that client detection user sends
Fixed mark, if detect in barrage containing mark, client obtain mark content, to the content of mark carry out identification and
Filtering;
S2, client identification marking content whether contain malicious code, if there is malicious code, client is directly filtered
Fall, is not sent to server;When the content of only client identification marking is normal, server just is sent by the content of mark;
S3, server carry out logic control to the content of the mark received, by the content translation of mark at corresponding room
Between number;
S4, server filter out illegal room, abnormal room, room are not present, and the room number of necessary being is generated
Hyperlink is shown in the client.
Based on the above technical solution, the format of the mark are as follows: reference characters+number, the content of mark are mark
Know the subsequent number of code name, represents room number.
Based on the above technical solution, further comprising the steps of in step S1: client judges the bullet that user sends
Whether contain sensitive words in curtain, if containing sensitive words in barrage, shields the barrage, do not send.
Based on the above technical solution, in step S2, when client is detected in a barrage containing multiple marks,
Client only sends first and is identified to server.
Compared with prior art, advantages of the present invention is as follows:
(1) whether the server in the present invention presets a mark, contain in the barrage that client detection user sends
There is the mark of server settings, if detecting that client obtains the content of mark, to the content of mark containing mark in barrage
It is identified and is filtered;When the content of only client identification marking is normal, server just is sent by the content of mark.Service
Device carries out logic control to the content of the mark received, by the content translation of mark at corresponding room number;Server filtering
Fall illegal room, abnormal room, room be not present, the room number of necessary being is generated into hyperlink, is shown in the client.
The present invention realizes that the hyperlink of station inside enclosed shares mode by the content of identification marking.
(2) server in the present invention filters out illegal room, abnormal room, room is not present, by necessary being
Room number generates hyperlink, shows in the client, in this way, divide user can only when user shares hyperlink in station
The legal hyperlink address in station is enjoyed, can not go to send a large amount of advertisement using this hyperlink, therefore, can safeguard live streaming room
Between order.
(3) user under Entered state, can send barrage, and the client in the present invention judges the barrage that user sends
In whether contain sensitive words, if containing sensitive words in barrage, shield the barrage, will not normally send, can prevent in this way
User sends some sensitive speeches.
Specific embodiment
With reference to the accompanying drawing and specific embodiment the present invention is described in further detail.
The embodiment of the present invention provides the system that hyperlink is quickly generated in a kind of chat process of barrage website, which includes
Client and server.
Shown in Figure 1, the embodiment of the present invention also provides in a kind of chat process of barrage website and quickly generates hyperlink
Method, comprising the following steps:
S1, server preset a mark, the format of mark are as follows: reference characters+number, the content of mark are mark
The subsequent number of code name, represents room number;
Client judge user send barrage in whether contain sensitive words, if containing sensitive words in barrage, shield
The barrage will not normally be sent;The step of this is optimization, not necessary step;
Client detect user send barrage in whether the mark containing server settings, contain if detected in barrage
There is mark, client obtains the content of mark, the content of mark is identified and filtered;
S2, it is based on security consideration, whether the content of client identification marking contains malicious code, such as: // ,+,-, such as
Fruit has malicious code, and client directly filters out, and is not sent to server;When the content of only client identification marking is normal,
Just server is sent by the content of mark.
When client is detected in a barrage containing multiple marks, client only sends first and is identified to server,
The behavior that barrage is continuously largely sent for user, can mitigate the pressure of server.
S3, server carry out logic control to the content of the mark received, by the content translation of mark at corresponding room
Between number;
S4, server filter out illegal room, abnormal room, room are not present, and the room number of necessary being is generated
Hyperlink is shown in the client.
In practical applications, the number in the mark of server settings can be with are as follows: no more than the continuous number of 9 digits, example
Such as: server settings are identified as [Num], and user is in the barrage of transmission if containing such as: I really likes well this of bucket fish
A direct broadcasting room [$ 12450], server identification in content: [12450].The content [12450] of client identification marking is normal
Mark, sends server for the content [12450] of the mark.It is numeric string: [12450] that server, which receives, clothes
Device be engaged in logic control of this numeric string progress, is translated as www.douyutv.com/123450.This collation process is
One simple logic collation process, the link of generation are only possible to be the link below bucket fish, and linking corresponding room may be
It is empty, it is also possible to mistake.Server compares the room state that room ID is 12345, filters out illegal room, abnormal room, no
There are rooms etc..
Those skilled in the art can carry out various modifications to the embodiment of the present invention and modification, if these modifications and change
For type within the scope of the claims in the present invention and its equivalent technologies, then these modifications and variations are also in protection scope of the present invention
Within.
The prior art that the content being not described in detail in specification is known to the skilled person.