CN104125313A - Network voting method and device - Google Patents

Network voting method and device Download PDF

Info

Publication number
CN104125313A
CN104125313A CN201410332232.7A CN201410332232A CN104125313A CN 104125313 A CN104125313 A CN 104125313A CN 201410332232 A CN201410332232 A CN 201410332232A CN 104125313 A CN104125313 A CN 104125313A
Authority
CN
China
Prior art keywords
address
user name
voter
ballot
blacklist
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410332232.7A
Other languages
Chinese (zh)
Other versions
CN104125313B (en
Inventor
黄伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Cubesili Information Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201410332232.7A priority Critical patent/CN104125313B/en
Publication of CN104125313A publication Critical patent/CN104125313A/en
Application granted granted Critical
Publication of CN104125313B publication Critical patent/CN104125313B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a network voting method and device and belongs to the network application technical field. The network voting method comprises obtaining a ticket-checking prevention strategy from a backend server; receiving the voting information sent from a client, wherein the voting information comprises the voting identification, IP (Internet Protocol) addresses or user names of voters, voting options and votes; judging whether the IP addresses or the user names of the voters are located in a blacklist or not; searching historical voting records of the IP addresses or the user names of the voters if not; determining the votes of the IP addresses or the user names of the voters within the periodic time according to the historical voting records of the IP addresses or the user names of the voters and the received voting information; determining that the received voting information is valid if the votes of the IP addresses or the user names of the voters within the periodic time do not reach a vote threshold value in the ticket-checking prevention strategy and performing counting according to the voting options and the votes in the voting information.

Description

Network voting method and apparatus
Technical field
The present invention relates to network application technical field, particularly a kind of network voting method and apparatus.
Background technology
Network voting is the social network service centered by voting, the ballot of network voting and making out an invoice by server controls, and server is also born the role of ticket checking.Reduce manual intervention, can ensure to a certain extent the fairness of ballot.Exactly because but also network voting carries out on the net, its cheating cost is relatively low.
In large-scale network voting activity, realize the process of repeated vote, increase clicking rate and popularity by brush ticket, be actually a kind of network voting imitation behavior, both reduced the really degree of voting results, damaged other voters and by voter's rights and interests simultaneously.Therefore, how to prevent that in network voting, brushing ticket behavior is urgent problem.
Summary of the invention
In order to solve the problem that has the behavior of brush ticket in prior art in network voting, the embodiment of the present invention provides a kind of network voting method and apparatus.Described technical scheme is as follows:
On the one hand, the embodiment of the present invention provides a kind of network voting method, and described method comprises:
From background server, obtain anti-brush ticket strategy, at least one in the ballot frequency threshold value of the IP address that described anti-brush ticket strategy comprises an IP address or a network segment within cycle time and user name ballot frequency threshold value within cycle time;
Receive the vote information that client sends, described vote information comprises: ballot activity mark, voter's IP address or user name, polling option and ballot poll;
Judge that described voter's IP address or user name are whether in blacklist, described blacklist comprises invalid vote people's IP address or user name, and described invalid vote people's IP address or user name reach the voter's of ballot frequency threshold value IP address or user name for being recorded in interior ballot cycle time number of times;
If described voter IP address or user name in blacklist, determine that the described vote information receiving is invalid;
If described voter IP address or user name not in blacklist, are searched described voter's IP address or the historical poll of user name in behavior database, described behavior database is used for storing historical poll;
According to the historical poll of described voter's IP address or user name and the described vote information receiving, determine described voter's IP address or the ballot number of times of user name within cycle time;
If described voter's IP address or the user name ballot number of times within cycle time reaches the ballot frequency threshold value in described anti-brush ticket strategy, determine that the described vote information receiving is invalid;
If described voter's IP address or the user name ballot number of times within cycle time does not reach the ballot frequency threshold value in described anti-brush ticket strategy, determine that the described vote information receiving is effective, and carry out count of votes according to the polling option in described vote information and ballot poll.
In a kind of implementation of the embodiment of the present invention, describedly from background server, obtain anti-brush ticket strategy, comprising:
Receive the signal that timing thread sends;
In the time that the signal designation of described timing thread reaches predetermined time interval, from background server, obtain anti-brush ticket strategy.
In the another kind of implementation of the embodiment of the present invention, described method also comprises:
If described voter's IP address or the user name ballot number of times within cycle time reaches the ballot frequency threshold value in described anti-brush ticket strategy, using described voter's IP address or user name add in described blacklist as invalid vote people's IP address or user name.
In the another kind of implementation of the embodiment of the present invention, described method also comprises:
Periodically empty described blacklist; Or,
When the Penalty time of the voter in blacklist reached after the scheduled time, the IP address or the user name that Penalty time are reached to the described voter of the scheduled time remove from described blacklist, IP address or the user name time in described blacklist of described Penalty time for recording described voter.
In the another kind of implementation of the embodiment of the present invention, described method also comprises:
In the time that definite described vote information is effective, the IP address of voter in described vote information or user name and time of receiving vote information are write in the historical poll in described behavior database.
On the other hand, the embodiment of the present invention also provides a kind of network voting device, and described device comprises:
Acquisition module, for obtaining anti-brush ticket strategy from background server, at least one in the ballot frequency threshold value of the IP address that described anti-brush ticket strategy comprises an IP address or a network segment within cycle time and user name ballot frequency threshold value within cycle time;
Receiver module, the vote information sending for receiving client, described vote information comprises: ballot activity mark, voter's IP address or user name, polling option and ballot poll;
Pre-judge module, for judging that whether the IP address of voter described in the vote information that described receiver module receives or user name are in blacklist, described blacklist comprises invalid vote people's IP address or user name, and described invalid vote people's IP address or user name reach the voter's of ballot frequency threshold value IP address or user name for being recorded in interior ballot cycle time number of times;
In the time that described voter IP address or user name are in blacklist, determine that the described vote information receiving is invalid;
Anti-brush ticket module in described voter IP address or user name during not in blacklist, is searched described voter's IP address or the historical poll of user name in behavior database, and described behavior database is used for storing historical poll; According to the historical poll of described voter's IP address or user name and the described vote information receiving, determine described voter's IP address or the ballot number of times of user name within cycle time;
In the time that described voter's IP address or the ballot number of times of user name within cycle time reach the ballot frequency threshold value in the described anti-brush ticket strategy that described acquisition module gets, determine that the described vote information receiving is invalid;
Count of votes module, for in described voter's IP address or when the ballot number of times of user name within cycle time do not reach the ballot frequency threshold value of described anti-brush ticket strategy, determine that the described vote information that receives is effective, and polling option and ballot poll in the described vote information receiving according to described receiver module carried out count of votes.
In a kind of implementation of the embodiment of the present invention, described acquisition module comprises:
Receiving element, the signal sending for receiving timing thread;
Acquiring unit in the time that the signal designation of described timing thread reaches predetermined time interval, obtains anti-brush ticket strategy from background server.
In the another kind of implementation of the embodiment of the present invention, described pre-judge module comprises:
Setting unit, for in the time that described voter's IP address or the ballot number of times of user name within cycle time reach the ballot frequency threshold value of described anti-brush ticket strategy, using described voter's IP address or user name add described blacklist as invalid vote people's IP address or user name.
In the another kind of implementation of the embodiment of the present invention, described setting unit, also for periodically emptying described blacklist; Or,
When the Penalty time of the voter in blacklist reached after the scheduled time, the IP address or the user name that Penalty time are reached to the described voter of the scheduled time remove from described blacklist, IP address or the user name time in described blacklist of described Penalty time for recording described voter.
In the another kind of implementation of the embodiment of the present invention, described anti-brush ticket module comprises:
Record cell, in the time that definite described vote information is effective, writes the IP address of voter in described vote information or user name and time of receiving vote information in the historical poll in described behavior database.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By receiving after the vote information of client transmission, judge that the IP address of voter in vote information or user name are whether in blacklist, if voter's IP address or user name are in blacklist, determine that the vote information receiving is invalid, blacklist comprises invalid vote people's IP address or user name, invalid vote people's IP address or user name reach the voter's of ballot frequency threshold value IP address or user name for being recorded in interior ballot cycle time number of times, so just avoided user's brush ticket behavior; If voter's IP address or user name be not in blacklist, search voter's IP address or the historical poll of user name, according to the historical poll of voter's IP address or user name and the vote information receiving, determine voter's IP address or the ballot number of times of user name within cycle time; If voter's IP address or the user name ballot number of times within cycle time does not reach the ballot frequency threshold value in anti-brush ticket strategy, determine that the vote information receiving is effective, and carry out count of votes according to the polling option in vote information and ballot poll, make user cannot brush ticket, by above-mentioned two aspects, user is brushed to ticket and be on the defensive, avoided brushing in network voting the harm that ticket behavior brings.
Brief description of the drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the application scenarios figure that the embodiment of the present invention provides;
Fig. 2 is the flow chart of the network voting method that provides of the embodiment of the present invention one;
Fig. 3 is the flow chart of the network voting method that provides of the embodiment of the present invention two;
Fig. 4 is the structural representation of the network voting device that provides of the embodiment of the present invention three;
Fig. 5 is the structural representation of the network voting device that provides of the embodiment of the present invention four.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
For the ease of the description of embodiment, below first simply introduce the application scenarios of embodiment in the present invention.Referring to Fig. 1, this scene comprises client 1, and client 1 can be the equipment such as PC, mobile terminal.User in client 1, is provided with and can carries out the application of network voting, so that can carry out network voting.Client 1 is connected by network with server 2.Server 2 receives the vote information that user sends by client 1, and carries out the functions such as ticket checking statistics.
It should be noted that, above-described device category and connected mode are only for giving an example, and the present invention is not restricted this.
Embodiment mono-
The embodiment of the present invention provides a kind of network voting method, is applicable to the server of network voting, and referring to Fig. 2, the method comprises:
Step 101: obtain anti-brush ticket strategy from background server, at least one in the ballot frequency threshold value of the IP address that anti-brush ticket strategy comprises an IP address or a network segment within cycle time and user name ballot frequency threshold value within cycle time.
Step 102: receive the vote information that client sends, vote information comprises: ballot activity mark, voter's IP address or user name, polling option and ballot poll;
Particularly, ballot activity mark is used to refer to the ballot that this vote information participates in, because may a voter can vote to many ballot activities simultaneously.In the time that user adopts real name ballot, vote information can be used as identify label with voter's user name.And in the time that user adopts anonymous identity ballot, now voter's user is by name empty, vote information can be used as identify label with voter's IP address.Here voter's IP address is generally IP (the Internet Protocol that voter sends the client of vote information, Internet protocol) address, it can certainly be MAC (Media Access Control, media the are got involved key-course) address of client.Polling option is the option that ballot person throws, and can be both that an option also can multiple options.Ballot poll is corresponding with polling option, and in the time can throwing multiple option, the poll of each option is corresponding with it.Certainly, can only throw in the ballot of fixing poll (as a ticket) each option, this ballot poll can be omitted.
Step 103: judge that voter's IP address or user name are whether in blacklist, blacklist comprises invalid vote people's IP address or user name, and invalid vote people's IP address or user name reach the voter's of ballot frequency threshold value IP address or user name for being recorded in interior ballot cycle time number of times; If voter IP address or user name in blacklist, determine that the vote information receiving is invalid; If voter IP address or user name, not in blacklist, perform step 104.
Invalid vote people's IP address or vote information corresponding to user name are invalid, i.e. the current qualification of not voting, and poll is not counted in the result of this ballot.
In blacklist, also can as anti-brush ticket strategy, be on the defensive with the IP address of the network segment.
This blacklist is stored in the server of network voting.The generation strategy of this blacklist can be further explained below, and this blacklist also can be arranged by administrator hand certainly, with practical requirement.
Step 104: search voter's IP address or the historical poll of user name in behavior database, behavior database is used for storing historical poll.
This history poll is stored in the server of network voting.The generation strategy of this history poll can be further explained below.
Step 105: according to the historical poll of voter's IP address or user name and the vote information receiving, determine whether voter's IP address or the ballot number of times of user name within cycle time reach the ballot frequency threshold value in anti-brush ticket strategy; If voter's IP address or the user name ballot number of times within cycle time reaches the ballot frequency threshold value in anti-brush ticket strategy, determine that the vote information receiving is invalid; If voter's IP address or the user name ballot number of times within cycle time does not reach the ballot frequency threshold value in anti-brush ticket strategy, perform step 106.
Particularly, determine IP address or the ballot number of times of user name in historical poll of voter within cycle time, the ballot number of times in this history poll is added after one and ballot frequency threshold value in cycle time relatively.Here the ballot number of times in historical poll being added to one is because this ballot is not counted in historical poll.
Determining behind the IP address or the ballot number of times of user name in historical poll of voter in cycle time, from anti-brush ticket strategy, to find out with respect to ground ballot frequency threshold value, the correspondence here refers to corresponding with voter's IP address or user name.For example, when in the vote information receiving, carry be voter's IP address time, first search anti-brush ticket strategy corresponding to this IP address, if anti-brush ticket strategy corresponding to this IP address not, remove to mate the corresponding network segment with this IP address, determine the anti-brush ticket strategy of its correspondence.
Step 106: determine that the vote information receiving is effective, and carry out count of votes according to the polling option in vote information and ballot poll.
The embodiment of the present invention is by receiving after the vote information of client transmission, judge that the IP address of voter in vote information or user name are whether in blacklist, if voter's IP address or user name are in blacklist, determine that the vote information receiving is invalid, blacklist comprises invalid vote people's IP address or user name, invalid vote people's IP address or user name reach the voter's of ballot frequency threshold value IP address or user name for being recorded in interior ballot cycle time number of times, so just avoided user's brush ticket behavior; If voter's IP address or user name be not in blacklist, search voter's IP address or the historical poll of user name, according to the historical poll of voter's IP address or user name and the vote information receiving, determine voter's IP address or the ballot number of times of user name within cycle time; If voter's IP address or the user name ballot number of times within cycle time does not reach the ballot frequency threshold value in anti-brush ticket strategy, determine that the vote information receiving is effective, and carry out count of votes according to the polling option in vote information and ballot poll, make user cannot brush ticket, by above-mentioned two aspects, user is brushed to ticket and be on the defensive, avoided brushing in network voting the harm that ticket behavior brings.
Embodiment bis-
The embodiment of the present invention provides a kind of network voting method, is applicable to the server of network voting, and referring to Fig. 3, the method comprises:
Step 201: obtain anti-brush ticket strategy from background server, at least one in the ballot frequency threshold value of the IP address that anti-brush ticket strategy comprises an IP address or a network segment within cycle time and user name ballot frequency threshold value within cycle time.
Particularly, step 201 can comprise:
Receive the signal that timing thread sends;
In the time that the signal designation of timing thread reaches predetermined time interval, from background server, obtain anti-brush ticket strategy.
The predetermined time interval here can arrange according to actual needs, for example 10 seconds.Can ensure in the situation that not needing shutdown, anti-brush ticket strategy to be upgraded by periodically obtaining anti-brush ticket strategy, to ensure that behavior is better defendd for brush ticket.
The content of anti-brush ticket strategy can also be more shifty combination in the present embodiment, not with the aforementioned system that is limited.
Step 202: receive the vote information that client sends, vote information comprises: ballot activity mark, voter's IP address or user name, polling option and ballot poll;
Particularly, ballot activity mark is used to refer to the ballot that this vote information participates in, because may a voter can vote to many ballot activities simultaneously.In the time that user adopts real name ballot, vote information can be used as identify label with voter's user name.And in the time that user adopts anonymous identity ballot, now voter's user is by name empty, vote information can be used as identify label with voter's IP address.Here voter's IP address is generally the IP address of voter's client of sending vote information, can certainly be the MAC Address of client.Polling option is the option that ballot person throws, and can be both that an option also can multiple options.Ballot poll is corresponding with polling option, and in the time can throwing multiple option, the poll of each option is corresponding with it.Certainly, can only throw in the ballot of fixing poll (as a ticket) each option, this ballot poll can be omitted.
Step 203: judge that voter's IP address or user name are whether in blacklist, blacklist comprises invalid vote people's IP address or user name, and invalid vote people's IP address or user name reach the voter's of ballot frequency threshold value IP address or user name for being recorded in interior ballot cycle time number of times; If voter IP address or user name in blacklist, determine that the vote information receiving is invalid; If voter IP address or user name, not in blacklist, perform step 204.
Invalid vote people's IP address or vote information corresponding to user name are invalid, i.e. the current qualification of not voting, and poll is not counted in the result of this ballot.
In blacklist, also can as anti-brush ticket strategy, be on the defensive with the IP address of the network segment.
This blacklist is stored in the server of network voting.The generation strategy of this blacklist can be further explained below, and this blacklist also can be arranged by administrator hand certainly, with practical requirement.
Further, the method can also comprise:
Periodically empty blacklist; Or,
When the Penalty time of the voter in blacklist reached after the scheduled time, the IP address or the user name that Penalty time are reached to the voter of the scheduled time remove from blacklist, IP address or the user name time in blacklist of Penalty time for recording voter.
For example, 0 of every day empty blacklist, or the time that voter enters blacklist be 2 hours, after two hours, can automatically from blacklist, be removed.
Step 204: search voter's IP address or the historical poll of user name in behavior database, behavior database is used for storing historical poll.
This history poll is stored in the server of network voting.The generation strategy of this history poll can be further explained below.
Step 205: according to the historical poll of voter's IP address or user name and the vote information receiving, determine whether voter's IP address or the ballot number of times of user name within cycle time reach the ballot frequency threshold value in anti-brush ticket strategy; If voter's IP address or the user name ballot number of times within cycle time reaches the ballot frequency threshold value in anti-brush ticket strategy, perform step 206; If voter's IP address or the user name ballot number of times within cycle time does not reach the ballot frequency threshold value in anti-brush ticket strategy, perform step 207.
Particularly, determine IP address or the ballot number of times of user name in historical poll of voter within cycle time, the ballot number of times in this history poll is added after one and ballot frequency threshold value in cycle time relatively.Here the ballot number of times in historical poll being added to one is because this ballot is not counted in historical poll.
Determining behind the IP address or the ballot number of times of user name in historical poll of voter in cycle time, from anti-brush ticket strategy, to find out with respect to ground ballot frequency threshold value, the correspondence here refers to corresponding with voter's IP address or user name.For example, when in the vote information receiving, carry be voter's IP address time, first search anti-brush ticket strategy corresponding to this IP address, if anti-brush ticket strategy corresponding to this IP address not, remove to mate the corresponding network segment with this IP address, determine the anti-brush ticket strategy of its correspondence.
Step 206: determine that the vote information that receives is invalid, and using voter's IP address or user name add in blacklist as invalid vote people's IP address or user name.
Particularly, in both cases, the vote information that can acknowledge receipt of is invalid, and a kind of is that this voter's IP address or user name are in blacklist.Another kind be this voter's IP address or user name not in blacklist, but its ballot number of times within cycle time of this voter's this time vote out reaches ballot frequency threshold value, in the second situation, also can be confirmed as vote information invalid.
Step 207: determine that the vote information receiving is effective, and carry out count of votes according to the polling option in vote information and ballot poll.
Particularly, determine ballot play according to ballot activity mark in vote information, according to polling option and ballot poll, the poll of this ballot play is added up.Certainly except can adding up polling option poll, can also add up voter's polling option.
Step 208: the IP address of voter in vote information or user name and time of receiving vote information are write in the historical poll in behavior database.
The embodiment of the present invention is by receiving after the vote information of client transmission, judge that the IP address of voter in vote information or user name are whether in blacklist, if voter's IP address or user name are in blacklist, determine that the vote information receiving is invalid, blacklist comprises invalid vote people's IP address or user name, invalid vote people's IP address or user name reach the voter's of ballot frequency threshold value IP address or user name for being recorded in interior ballot cycle time number of times, so just avoided user's brush ticket behavior; If voter's IP address or user name be not in blacklist, search voter's IP address or the historical poll of user name, according to the historical poll of voter's IP address or user name and the vote information receiving, determine voter's IP address or the ballot number of times of user name within cycle time; If voter's IP address or the user name ballot number of times within cycle time does not reach the ballot frequency threshold value in anti-brush ticket strategy, determine that the vote information receiving is effective, and carry out count of votes according to the polling option in vote information and ballot poll, make user cannot brush ticket, by above-mentioned two aspects, user is brushed to ticket and be on the defensive, avoided brushing in network voting the harm that ticket behavior brings.
Embodiment tri-
The embodiment of the present invention provides a kind of network voting device, and referring to Fig. 4, this server comprises:
Acquisition module 301, for obtaining anti-brush ticket strategy from background server, at least one in the ballot frequency threshold value of the IP address that anti-brush ticket strategy comprises an IP address or a network segment within cycle time and user name ballot frequency threshold value within cycle time.
Receiver module 302, the vote information sending for receiving client, vote information comprises: ballot activity mark, voter's IP address or user name, polling option and ballot poll.
Particularly, ballot activity mark is used to refer to the ballot that this vote information participates in, because may a voter can vote to many ballot activities simultaneously.In the time that user adopts real name ballot, vote information can be used as identify label with voter's user name.And in the time that user adopts anonymous identity ballot, now voter's user is by name empty, vote information can be used as identify label with voter's IP address.Here voter's IP address is generally the IP address of voter's client of sending vote information, can certainly be the MAC Address of client.Polling option is the option that ballot person throws, and can be both that an option also can multiple options.Ballot poll is corresponding with polling option, and in the time can throwing multiple option, the poll of each option is corresponding with it.Certainly, can only throw in the ballot of fixing poll (as a ticket) each option, this ballot poll can be omitted.
Pre-judge module 303, for judging that the vote information voter's that receiver module 302 receives IP address or user name are whether in blacklist, blacklist comprises invalid vote people's IP address or user name, and invalid vote people's IP address or user name reach the voter's of ballot frequency threshold value IP address or user name for being recorded in interior ballot cycle time number of times;
In the time that voter IP address or user name are in blacklist, determine that the vote information receiving is invalid.
Invalid vote people's IP address or vote information corresponding to user name are invalid, i.e. the current qualification of not voting, and poll is not counted in the result of this ballot.
In blacklist, also can as anti-brush ticket strategy, be on the defensive with the IP address of the network segment.
Anti-brush ticket module 304 in voter IP address or user name during not in blacklist, is searched voter's IP address or the historical poll of user name in behavior database, and behavior database is used for storing historical poll; According to the historical poll of voter's IP address or user name and the vote information receiving, determine voter's IP address or the ballot number of times of user name within cycle time;
In the time that voter's IP address or the ballot number of times of user name within cycle time reach the ballot frequency threshold value in the anti-brush ticket strategy that acquisition module 301 gets, determine that the vote information receiving is invalid.
Particularly, determine IP address or the ballot number of times of user name in historical poll of voter within cycle time, the ballot number of times in this history poll is added after one and ballot frequency threshold value in cycle time relatively.Here the ballot number of times in historical poll being added to one is because this ballot is not counted in historical poll.
Determining behind the IP address or the ballot number of times of user name in historical poll of voter in cycle time, from anti-brush ticket strategy, to find out with respect to ground ballot frequency threshold value, the correspondence here refers to corresponding with voter's IP address or user name.For example, when in the vote information receiving, carry be voter's IP address time, first search anti-brush ticket strategy corresponding to this IP address, if anti-brush ticket strategy corresponding to this IP address not, remove to mate the corresponding network segment with this IP address, determine the anti-brush ticket strategy of its correspondence.
Count of votes module 305, for in voter's IP address or when the ballot number of times of user name within cycle time do not reach the ballot frequency threshold value of anti-brush ticket strategy, determine that the vote information that receives is effective, and polling option and ballot poll in the vote information receiving according to receiver module 302 carried out count of votes.
The embodiment of the present invention is by receiving after the vote information of client transmission, judge that the IP address of voter in vote information or user name are whether in blacklist, if voter's IP address or user name are in blacklist, determine that the vote information receiving is invalid, blacklist comprises invalid vote people's IP address or user name, invalid vote people's IP address or user name reach the voter's of ballot frequency threshold value IP address or user name for being recorded in interior ballot cycle time number of times, so just avoided user's brush ticket behavior; If voter's IP address or user name be not in blacklist, search voter's IP address or the historical poll of user name, according to the historical poll of voter's IP address or user name and the vote information receiving, determine voter's IP address or the ballot number of times of user name within cycle time; If voter's IP address or the user name ballot number of times within cycle time does not reach the ballot frequency threshold value in anti-brush ticket strategy, determine that the vote information receiving is effective, and carry out count of votes according to the polling option in vote information and ballot poll, make user cannot brush ticket, by above-mentioned two aspects, user is brushed to ticket and be on the defensive, avoided brushing in network voting the harm that ticket behavior brings.
Embodiment tetra-
The embodiment of the present invention provides a kind of network voting device, and referring to Fig. 5, this server comprises:
Acquisition module 401, for obtaining anti-brush ticket strategy from background server, at least one in the ballot frequency threshold value of the IP address that anti-brush ticket strategy comprises an IP address or a network segment within cycle time and user name ballot frequency threshold value within cycle time.
Receiver module 402, the vote information sending for receiving client, vote information comprises: ballot activity mark, voter's IP address or user name, polling option and ballot poll.
Particularly, ballot activity mark is used to refer to the ballot that this vote information participates in, because may a voter can vote to many ballot activities simultaneously.In the time that user adopts real name ballot, vote information can be used as identify label with voter's user name.And in the time that user adopts anonymous identity ballot, now voter's user is by name empty, vote information can be used as identify label with voter's IP address.Here voter's IP address is generally the IP address of voter's client of sending vote information, can certainly be the MAC Address of client.Polling option is the option that ballot person throws, and can be both that an option also can multiple options.Ballot poll is corresponding with polling option, and in the time can throwing multiple option, the poll of each option is corresponding with it.Certainly, can only throw in the ballot of fixing poll (as a ticket) each option, this ballot poll can be omitted.
Pre-judge module 403, for judging that the vote information voter's that receiver module 402 receives IP address or user name are whether in blacklist, blacklist comprises invalid vote people's IP address or user name, and invalid vote people's IP address or user name reach the voter's of ballot frequency threshold value IP address or user name for being recorded in interior ballot cycle time number of times;
In the time that voter IP address or user name are in blacklist, determine that the vote information receiving is invalid.
Invalid vote people's IP address or vote information corresponding to user name are invalid, i.e. the current qualification of not voting, and poll is not counted in the result of this ballot.
In blacklist, also can as anti-brush ticket strategy, be on the defensive with the IP address of the network segment.
Anti-brush ticket module 404 in voter IP address or user name during not in blacklist, is searched voter's IP address or the historical poll of user name in behavior database, and behavior database is used for storing historical poll; According to the historical poll of voter's IP address or user name and the vote information receiving, determine voter's IP address or the ballot number of times of user name within cycle time;
In the time that voter's IP address or the ballot number of times of user name within cycle time reach the ballot frequency threshold value in the anti-brush ticket strategy that acquisition module 401 gets, determine that the vote information receiving is invalid.
Particularly, determine IP address or the ballot number of times of user name in historical poll of voter within cycle time, the ballot number of times in this history poll is added after one and ballot frequency threshold value in cycle time relatively.Here the ballot number of times in historical poll being added to one is because this ballot is not counted in historical poll.
Determining behind the IP address or the ballot number of times of user name in historical poll of voter in cycle time, from anti-brush ticket strategy, to find out with respect to ground ballot frequency threshold value, the correspondence here refers to corresponding with voter's IP address or user name.For example, when in the vote information receiving, carry be voter's IP address time, first search anti-brush ticket strategy corresponding to this IP address, if anti-brush ticket strategy corresponding to this IP address not, remove to mate the corresponding network segment with this IP address, determine the anti-brush ticket strategy of its correspondence.
Count of votes module 405, for in voter's IP address or when the ballot number of times of user name within cycle time do not reach the ballot frequency threshold value of anti-brush ticket strategy, determine that the vote information that receives is effective, and polling option and ballot poll in the vote information receiving according to receiver module 402 carried out count of votes.
Particularly, determine ballot play according to ballot activity mark in vote information, according to polling option and ballot poll, the poll of this ballot play is added up.Certainly except can adding up polling option poll, can also add up voter's polling option.
Particularly, acquisition module 401 comprises:
Receiving element 4011, the signal sending for timing thread;
Acquiring unit 4012 in the time that the signal designation of timing thread reaches predetermined time interval, obtains anti-brush ticket strategy from background server.
The predetermined time interval here can arrange according to actual needs, for example 10 seconds.Can ensure in the situation that not needing shutdown, anti-brush ticket strategy to be upgraded by periodically obtaining anti-brush ticket strategy, to ensure that behavior is better defendd for brush ticket.
Particularly, pre-judge module 403 comprises:
Setting unit 4031, for in the time that voter's IP address or the ballot number of times of user name within cycle time reach the ballot frequency threshold value of anti-brush ticket strategy, using voter's IP address or user name add blacklist as invalid vote people's IP address or user name.
Further, setting unit 4031, also for periodically emptying blacklist; Or,
When the Penalty time of the voter in blacklist reached after the scheduled time, the IP address or the user name that Penalty time are reached to the voter of the scheduled time remove from blacklist, IP address or the user name time in blacklist of Penalty time for recording voter.
For example, 0 of every day empty blacklist, or the time that voter enters blacklist be 2 hours, after two hours, can automatically from blacklist, be removed.
Particularly, anti-brush ticket module 404 comprises:
Record cell 4041, in the time that definite vote information is effective, writes the IP address of voter in vote information or user name and time of receiving vote information in the historical poll in behavior database.
The embodiment of the present invention is by receiving after the vote information of client transmission, judge that the IP address of voter in vote information or user name are whether in blacklist, if voter's IP address or user name are in blacklist, determine that the vote information receiving is invalid, blacklist comprises invalid vote people's IP address or user name, invalid vote people's IP address or user name reach the voter's of ballot frequency threshold value IP address or user name for being recorded in interior ballot cycle time number of times, so just avoided user's brush ticket behavior; If voter's IP address or user name be not in blacklist, search voter's IP address or the historical poll of user name, according to the historical poll of voter's IP address or user name and the vote information receiving, determine voter's IP address or the ballot number of times of user name within cycle time; If voter's IP address or the user name ballot number of times within cycle time does not reach the ballot frequency threshold value in anti-brush ticket strategy, determine that the vote information receiving is effective, and carry out count of votes according to the polling option in vote information and ballot poll, make user cannot brush ticket, by above-mentioned two aspects, user is brushed to ticket and be on the defensive, avoided brushing in network voting the harm that ticket behavior brings.
It should be noted that: the network voting device that above-described embodiment provides is in the time carrying out network voting, only be illustrated with the division of above-mentioned each functional module, in practical application, can above-mentioned functions be distributed and completed by different functional modules as required, be divided into different functional modules by the internal structure of equipment, to complete all or part of function described above.In addition, network voting device and network voting embodiment of the method that above-described embodiment provides belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can carry out the hardware that instruction is relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
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 amendment of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. a network voting method, is characterized in that, described method comprises:
Obtain anti-brush ticket strategy, at least one in the ballot frequency threshold value of the IP address that described anti-brush ticket strategy comprises IP address or a network segment within cycle time and user name ballot frequency threshold value within cycle time;
Receive the vote information that client sends, described vote information comprises: ballot activity mark, voter's IP address or user name, polling option and ballot poll;
Judge that described voter's IP address or user name are whether in blacklist, described blacklist comprises invalid vote people's IP address or user name, and described invalid vote people's IP address or user name reach the voter's of ballot frequency threshold value IP address or user name for being recorded in interior ballot cycle time number of times;
If described voter IP address or user name in blacklist, determine that the described vote information receiving is invalid;
If described voter IP address or user name not in blacklist, are searched described voter's IP address or the historical poll of user name in behavior database, described behavior database is used for storing historical poll;
According to the historical poll of described voter's IP address or user name and the described vote information receiving, determine described voter's IP address or the ballot number of times of user name within cycle time;
If described voter's IP address or the user name ballot number of times within cycle time reaches the ballot frequency threshold value in described anti-brush ticket strategy, determine that the described vote information receiving is invalid;
If described voter's IP address or the user name ballot number of times within cycle time does not reach the ballot frequency threshold value in described anti-brush ticket strategy, determine that the described vote information receiving is effective, and carry out count of votes according to the polling option in described vote information and ballot poll.
2. method according to claim 1, is characterized in that, describedly from background server, obtains anti-brush ticket strategy, comprising:
Receive the signal that timing thread sends;
In the time that the signal designation of described timing thread reaches predetermined time interval, from background server, obtain anti-brush ticket strategy.
3. method according to claim 1, is characterized in that, described method also comprises:
If described voter's IP address or the user name ballot number of times within cycle time reaches the ballot frequency threshold value in described anti-brush ticket strategy, using described voter's IP address or user name add in described blacklist as invalid vote people's IP address or user name.
4. method according to claim 3, is characterized in that, described method also comprises:
Periodically empty described blacklist; Or,
When the Penalty time of the voter in blacklist reached after the scheduled time, the IP address or the user name that Penalty time are reached to the described voter of the scheduled time remove from described blacklist, IP address or the user name time in described blacklist of described Penalty time for recording described voter.
5. method according to claim 1, is characterized in that, described method also comprises:
In the time that definite described vote information is effective, the IP address of voter in described vote information or user name and time of receiving vote information are write in the historical poll in described behavior database.
6. a network voting device, is characterized in that, described device comprises:
Acquisition module, for obtaining anti-brush ticket strategy from background server, at least one in the ballot frequency threshold value of the IP address that described anti-brush ticket strategy comprises an IP address or a network segment within cycle time and user name ballot frequency threshold value within cycle time;
Receiver module, the vote information sending for receiving client, described vote information comprises: ballot activity mark, voter's IP address or user name, polling option and ballot poll;
Pre-judge module, for judging that whether the IP address of voter described in the vote information that described receiver module receives or user name are in blacklist, described blacklist comprises invalid vote people's IP address or user name, and described invalid vote people's IP address or user name reach the voter's of ballot frequency threshold value IP address or user name for being recorded in interior ballot cycle time number of times;
In the time that described voter IP address or user name are in blacklist, determine that the described vote information receiving is invalid;
Anti-brush ticket module in described voter IP address or user name during not in blacklist, is searched described voter's IP address or the historical poll of user name in behavior database, and described behavior database is used for storing historical poll; According to the historical poll of described voter's IP address or user name and the described vote information receiving, determine described voter's IP address or the ballot number of times of user name within cycle time;
In the time that described voter's IP address or the ballot number of times of user name within cycle time reach the ballot frequency threshold value in the described anti-brush ticket strategy that described acquisition module gets, determine that the described vote information receiving is invalid;
Count of votes module, for in described voter's IP address or when the ballot number of times of user name within cycle time do not reach the ballot frequency threshold value of described anti-brush ticket strategy, determine that the described vote information that receives is effective, and polling option and ballot poll in the described vote information receiving according to described receiver module carried out count of votes.
7. device according to claim 6, is characterized in that, described acquisition module comprises:
Receiving element, the signal sending for receiving timing thread;
Acquiring unit in the time that the signal designation of described timing thread reaches predetermined time interval, obtains anti-brush ticket strategy from background server.
8. device according to claim 6, is characterized in that, described pre-judge module comprises:
Setting unit, for in the time that described voter's IP address or the ballot number of times of user name within cycle time reach the ballot frequency threshold value of described anti-brush ticket strategy, using described voter's IP address or user name add described blacklist as invalid vote people's IP address or user name.
9. device according to claim 8, is characterized in that, described setting unit, also for periodically emptying described blacklist; Or,
When the Penalty time of the voter in blacklist reached after the scheduled time, the IP address or the user name that Penalty time are reached to the described voter of the scheduled time remove from described blacklist, IP address or the user name time in described blacklist of described Penalty time for recording described voter.
10. device according to claim 6, is characterized in that, described anti-brush ticket module comprises:
Record cell, in the time that definite described vote information is effective, writes the IP address of voter in described vote information or user name and time of receiving vote information in the historical poll in described behavior database.
CN201410332232.7A 2014-07-11 2014-07-11 Network voting method and apparatus Active CN104125313B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410332232.7A CN104125313B (en) 2014-07-11 2014-07-11 Network voting method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410332232.7A CN104125313B (en) 2014-07-11 2014-07-11 Network voting method and apparatus

Publications (2)

Publication Number Publication Date
CN104125313A true CN104125313A (en) 2014-10-29
CN104125313B CN104125313B (en) 2017-12-08

Family

ID=51770577

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410332232.7A Active CN104125313B (en) 2014-07-11 2014-07-11 Network voting method and apparatus

Country Status (1)

Country Link
CN (1) CN104125313B (en)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105657043A (en) * 2016-02-22 2016-06-08 太仓苏易信息科技有限公司 Client-side voting system
CN105824903A (en) * 2016-03-14 2016-08-03 乐视网信息技术(北京)股份有限公司 Method and device for generating counting events
CN105915510A (en) * 2016-04-12 2016-08-31 北京小米移动软件有限公司 Method and device for controlling service traffic
CN106127914A (en) * 2016-07-01 2016-11-16 王本宗 A kind of just voting method and ballot system thereof
CN106210911A (en) * 2016-08-09 2016-12-07 乐视控股(北京)有限公司 A kind of live voting method, device and electronic equipment
CN106227813A (en) * 2016-07-22 2016-12-14 百度在线网络技术(北京)有限公司 For the method and apparatus preventing voice ballot cheating
CN106408734A (en) * 2016-10-25 2017-02-15 西华大学 Network-based secret ballot method and device
CN106534078A (en) * 2016-10-19 2017-03-22 北京神州绿盟信息安全科技股份有限公司 Method and device for establishing black list
CN107454039A (en) * 2016-05-31 2017-12-08 北京京东尚科信息技术有限公司 The method of network attack detection system and detection network attack
CN107493326A (en) * 2017-08-08 2017-12-19 广州酷狗计算机科技有限公司 Network voting processing method, device, server and computer-readable recording medium
CN107872491A (en) * 2016-09-28 2018-04-03 腾讯科技(深圳)有限公司 A kind of data processing method and device
CN108416891A (en) * 2018-05-21 2018-08-17 广西九星互联网络有限公司 Based on IP sections of network voting detection method and device of ballot
CN108806055A (en) * 2018-05-21 2018-11-13 广西九星互联网络有限公司 Network voting detection method and equipment based on polling hours section
WO2019041204A1 (en) * 2017-08-30 2019-03-07 深圳市云中飞网络科技有限公司 Method and apparatus for detecting ip address for increasing downloading quantity
CN110309473A (en) * 2019-06-05 2019-10-08 上海车轮互联网服务有限公司 Merge the anti-brush ticket method and device of identity and voting behavior monitoring
CN110335401A (en) * 2019-06-05 2019-10-15 上海车轮互联网服务有限公司 Anti- brush ticket method and device based on voting behavior monitoring
CN110335400A (en) * 2019-06-05 2019-10-15 上海车轮互联网服务有限公司 The anti-brush ticket method and device of identity-based mark
CN110738783A (en) * 2019-10-15 2020-01-31 腾讯科技(深圳)有限公司 System, method, device, equipment and readable storage medium for updating voting data
CN112600675A (en) * 2020-12-04 2021-04-02 网易(杭州)网络有限公司 Electronic voting method and device based on group signature, electronic equipment and storage medium
CN113096298A (en) * 2021-03-31 2021-07-09 中国建设银行股份有限公司 Network voting method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6643694B1 (en) * 2000-02-09 2003-11-04 Michael A. Chernin System and method for integrating a proxy server, an e-mail server, and a DHCP server, with a graphic interface
CN101739639A (en) * 2008-11-07 2010-06-16 中国移动通信集团公司 Method and system for promoting service
CN103065385A (en) * 2012-11-27 2013-04-24 浙江中呼科技有限公司 Mobile phone voting method and voting system for method
CN103886667A (en) * 2013-06-03 2014-06-25 绍兴数能网络技术开发有限公司 Method, device and system for processing voting information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6643694B1 (en) * 2000-02-09 2003-11-04 Michael A. Chernin System and method for integrating a proxy server, an e-mail server, and a DHCP server, with a graphic interface
CN101739639A (en) * 2008-11-07 2010-06-16 中国移动通信集团公司 Method and system for promoting service
CN103065385A (en) * 2012-11-27 2013-04-24 浙江中呼科技有限公司 Mobile phone voting method and voting system for method
CN103886667A (en) * 2013-06-03 2014-06-25 绍兴数能网络技术开发有限公司 Method, device and system for processing voting information

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105657043A (en) * 2016-02-22 2016-06-08 太仓苏易信息科技有限公司 Client-side voting system
CN105824903A (en) * 2016-03-14 2016-08-03 乐视网信息技术(北京)股份有限公司 Method and device for generating counting events
CN105915510A (en) * 2016-04-12 2016-08-31 北京小米移动软件有限公司 Method and device for controlling service traffic
CN107454039A (en) * 2016-05-31 2017-12-08 北京京东尚科信息技术有限公司 The method of network attack detection system and detection network attack
CN106127914B (en) * 2016-07-01 2018-08-07 王本宗 A kind of just voting method and its ballot system
CN106127914A (en) * 2016-07-01 2016-11-16 王本宗 A kind of just voting method and ballot system thereof
CN106227813A (en) * 2016-07-22 2016-12-14 百度在线网络技术(北京)有限公司 For the method and apparatus preventing voice ballot cheating
CN106210911A (en) * 2016-08-09 2016-12-07 乐视控股(北京)有限公司 A kind of live voting method, device and electronic equipment
CN107872491A (en) * 2016-09-28 2018-04-03 腾讯科技(深圳)有限公司 A kind of data processing method and device
CN106534078A (en) * 2016-10-19 2017-03-22 北京神州绿盟信息安全科技股份有限公司 Method and device for establishing black list
CN106534078B (en) * 2016-10-19 2019-07-02 北京神州绿盟信息安全科技股份有限公司 A kind of method and device for establishing blacklist
CN106408734A (en) * 2016-10-25 2017-02-15 西华大学 Network-based secret ballot method and device
CN107493326A (en) * 2017-08-08 2017-12-19 广州酷狗计算机科技有限公司 Network voting processing method, device, server and computer-readable recording medium
CN107493326B (en) * 2017-08-08 2021-02-12 广州酷狗计算机科技有限公司 Network voting processing method, device, server and computer readable storage medium
CN110771114A (en) * 2017-08-30 2020-02-07 深圳市欢太科技有限公司 Method and device for detecting brushing IP address
WO2019041204A1 (en) * 2017-08-30 2019-03-07 深圳市云中飞网络科技有限公司 Method and apparatus for detecting ip address for increasing downloading quantity
CN108416891A (en) * 2018-05-21 2018-08-17 广西九星互联网络有限公司 Based on IP sections of network voting detection method and device of ballot
CN108806055A (en) * 2018-05-21 2018-11-13 广西九星互联网络有限公司 Network voting detection method and equipment based on polling hours section
CN110335401A (en) * 2019-06-05 2019-10-15 上海车轮互联网服务有限公司 Anti- brush ticket method and device based on voting behavior monitoring
CN110335400A (en) * 2019-06-05 2019-10-15 上海车轮互联网服务有限公司 The anti-brush ticket method and device of identity-based mark
CN110309473A (en) * 2019-06-05 2019-10-08 上海车轮互联网服务有限公司 Merge the anti-brush ticket method and device of identity and voting behavior monitoring
CN110738783A (en) * 2019-10-15 2020-01-31 腾讯科技(深圳)有限公司 System, method, device, equipment and readable storage medium for updating voting data
CN112600675A (en) * 2020-12-04 2021-04-02 网易(杭州)网络有限公司 Electronic voting method and device based on group signature, electronic equipment and storage medium
CN113096298A (en) * 2021-03-31 2021-07-09 中国建设银行股份有限公司 Network voting method and device

Also Published As

Publication number Publication date
CN104125313B (en) 2017-12-08

Similar Documents

Publication Publication Date Title
CN104125313A (en) Network voting method and device
CN103269389B (en) Check and repair the method and apparatus that malice DNS arranges
CN109635857B (en) Human-vehicle track monitoring and analyzing method, device, equipment and storage medium
CN105516133A (en) User identity verification method, server and client
CN104093079A (en) Interactive method based on multimedia programs, terminal, server and system
CN108597090A (en) A kind of voting method based on block chain, apparatus and system
CN104077082A (en) Network voting data storage method and device
CN101931646A (en) Internet brows management method, system and terminal
CN104468399B (en) Data transmission method and device and server
CN103747291A (en) Program reservation method and server
CN108848113A (en) Client device log-in control method, device, storage medium and server
CN110300171A (en) Information collecting method, system, computer readable storage medium and electronic equipment
CN106100939B (en) The network equipment starts time test method and test console
CN105872006A (en) Appointment reminding system and appointment reminding method
CN103812683A (en) User behavior data processing method, device and system
CN109729376B (en) Life cycle processing method, life cycle processing device, life cycle processing equipment and life cycle processing storage medium
CN104484905A (en) Fingerprintattendance checking system
CN101005663A (en) Mobile terminal with lost tracking function and lost tracking method of mobile terminal
CN111429595A (en) Attendance management method and device and computer readable storage medium
CN108197050B (en) Equipment identification method, device and system
CN106571971B (en) Method, device and system for detecting vacant website
CN108769809B (en) Smart television-based home user behavior data acquisition method and device and computer-readable storage medium
CN107798495B (en) Express item storing and taking method, system and device
CN109714448A (en) The internet information statistical method and device of PON terminal
CN109101577A (en) A kind of data circulation method, apparatus and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 511446 Guangzhou City, Guangdong Province, Panyu District, South Village, Huambo Business District Wanda Plaza, block B1, floor 28

Applicant after: Guangzhou Huaduo Network Technology Co., Ltd.

Address before: 510655, Guangzhou, Whampoa Avenue, No. 2, creative industrial park, building 3-08,

Applicant before: Guangzhou Huaduo Network Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210113

Address after: 511442 3108, 79 Wanbo 2nd Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Patentee after: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 511446 28th floor, block B1, Wanda Plaza, Wanbo business district, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.