Thread: One Vote per IP
View Single Post
Old 09-23-2012, 10:04 AM   PM User | #1
Hydrian
New Coder

 
Join Date: Aug 2012
Posts: 40
Thanks: 5
Thanked 0 Times in 0 Posts
Hydrian is an unknown quantity at this point
One Vote per IP

I have a application where users can vote for submission, and i want to make sure users dont spam it, how can i make this one vote per IP?

Code:
 <script type="text/javascript">
 var clicks2 = 0; 
 
 function linkClick2()
 {	
 document.getElementById('clicked2').value = ++clicks2;
 }
 document.write('<a href="#" onclick="linkClick2()" class="vote_link">Vote for this Submission</a>');
 </script>
Hydrian is offline   Reply With Quote