About
Community
Bad Ideas
Drugs
Ego
Erotica
Fringe
Society
Technology
register | bbs | search | rss | faq | about
meet up | add to del.icio.us | digg it
Go Back   Community > Technology > Network (in)Security
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Network (in)Security Interesting hacks and cracks. Info on firewalls, TCP/IP, encryption, networks, and security. The ins and outs of the phone system, caller services, how things work, what's illegal and what's not, cellular phones, beepers, telephony legislation, the PUC, ISDN, taps, who's listening, and switches. Talking about phones, hacking systems, technical advice, and such is completely LEGAL in the United States -- it's covered by the First Amendment. What's illegal is conspiracy to commit a crime. So if you say something like "Meet me at 2am so we can crack a can" or "I changed my cell phone's number myself" you are criminally liable. Stating "You can crack a can by doing thus-and-so" or "If you wanted to change a cell phone's number, you could do it like so" is perfectly OK. Posting passwords, calling card numbers, or credit card numbers is forbidden on this network. Posting such info will get you booted off the net.

Reply
 
Thread Tools Display Modes
 #1 
Old 2009-01-07, 02:55
nooner nooner is offline
Regular
 
Default Quit pushing my buttons...

Hey guys, I'm currently working on a site where people can accrue "points" by clicking on a button in rapid succession. The button(which will actually be a graphic image), will just submit a basic PHP form that calculates the amount of points that person receives, and then sends them back to the page the first page to click the button again. What I need to know, is how can I keep people from automating it through bots, multiple page submissions, etc.

Anyone have any ideas?
 #2 
Old 2009-01-07, 13:56
wargsm wargsm is offline
Regular
 
Default Re: Quit pushing my buttons...

Have you already coded the site?

Seeing as there is no limit to how much you allow them to click, in order to prevent them using something like iMacros, you could implement a captcha or some other form of verification.

Not for every click, but say one in 10. A simple captcha though, because people generally fucking hate them.

You said you were using PHP, so heres a captcha you can modify:


//captcha.php

<?php
session_start();
$text = rand(10000,99999);
$_SESSION["vercode"] = $text;
$height = 25;
$width = 65;

$image_p = imagecreate($width, $height);
$black = imagecolorallocate($image_p, 0, 0, 0);
$white = imagecolorallocate($image_p, 255, 255, 255);
$font_size = 14;

imagestring($image_p, $font_size, 5, 5, $text, $white);
imagejpeg($image_p, null, 80);
?>




//Form

<form action="submit.php" method="post">
Comment: <textarea name="coment"></textarea><br>
Enter Code <img src="captcha.php"><input type="text" name="vercode" /><br>
<input type="submit" name="Submit" value="Submit" />
</form>



//Submit:

<?php
session_start();
if ($_POST["vercode"] != $_SESSION["vercode"] OR $_SESSION["vercode"]=='') {
echo '<strong>Incorrect verification code.</strong><br>';
} else {
// add form data processing code here
echo '<strong>Verification successful.</strong><br>';
};
?>
 #3 
Old 2009-01-07, 23:44
nooner nooner is offline
Regular
 
Default Re: Quit pushing my buttons...

Yeah, I had a feeling I would have to do some kind of captcha. Thanks for the code though, it's much less of a pain than reCaptcha.
 #4 
Old 2009-01-08, 05:44
Aragami Aragami is offline
Regular
 
Default Re: Quit pushing my buttons...

You could log IP and if the same IP comes up x times during a day, show a message that says they aren't allowed to vote.

Easily bypassed though.
 
To the best of our knowledge, the text on this page may be freely reproduced and distributed.
 

totse.com certificate signatures
 
 
About | Community | Bad Ideas | Drugs | Ego | Erotica | Fringe | Society | Technology
Hot Topics