• Welcome to League Of Reason Forums! Please read the rules before posting.
    If you are willing and able please consider making a donation to help with site overheads.
    Donations can be made via here

Leaguer fights back against Votebotting, TubeGuardian in development

Blog of Reason

New Member
arg-fallbackName="Blog of Reason"/>
Discussion thread for the blog entry "Leaguer fights back against Votebotting, TubeGuardian in development" by AndromedasWake.

Permalink: http://blog.leagueofreason.org.uk/youtube/leaguer-fights-back-against-votebotting-tubeguardian-in-development/
 
arg-fallbackName="djarm67"/>
Re: Leaguer fights back against Votebotting, TubeGuardian in dev

This is looking more awesome each day.

DJ
 
arg-fallbackName="CosmicSpork"/>
Re: Leaguer fights back against Votebotting, TubeGuardian in dev

I am going to try and work with joshTheGood on getting this more user friendly, so even the less technically minded people can use it :p
 
arg-fallbackName="Martyj2009"/>
Re: Leaguer fights back against Votebotting, TubeGuardian in dev

Josh told me to come on here for more stuff about TG. I has some suggestions. I've already told josh about this, but I figured I'd let you all know.

My first suggestion is to have TG logg the vote bot via mysql. What a person would need to do would be to set up a mysql data base and a php file that connects to that data base. Josh would then have his program send a http request via POST to that php file with information in it.
Code:
<?php $db_host = "";
$db_user = "";
$db_pass = "";
$db_name = "";
$connection = @mysql_connect("$db_host", "$db_user", "$db_pass") or die("Couldn't connect.");
$db = @mysql_select_db($db_name, $connection) or die("Couldn't select database.");
function mysql_prevent($string){ // Prevents mysql attacks on the database
	$string = stripslahses(stripslashes($string));
	$string = htmlentities(trim($string));
	$string = str_replace("#", "&#35;", $string);
	$string = str_replace("%", "&#37;", $string);
	return mysql_real_escape_string($string);
}
if(mysql_prevent($_POST['id']) != null){ // Update data base here
	$username = mysql_prevent($_POST['user']);
	$date = date("m/d/y",time());
	$downVotes = mysql_prevent($_POST['votesDown']);
	$totalVotes = mysql_prevent($_POST['totalVotes']);
	$url = mysql_prevent($_POST['videoUrl']);
	$views = mysql_prevent($_POST['views']);
	if($username != null && $url != null){
		$sql =  "INSERT INTO `TG_logs` (`user` ,`date` ,`downvotes` ,`totalvotes` ,`url` ,`views`)VALUES (\"".$username."\", \"".$date."\", \"".$downVotes."\", \"".$totalVotes."\", \"".$url."\", \"".$views."\")";
		mysql_query($sql);
		echo "Updated";
	}
	else{ echo "Error"; }
}else{ // Our print out page ?>
	<html>
		<head><title>Tube Guardian Stats</title></head>
		<body>
			<table>
				<tr><td>Username</td><td>Date</td><td>Down Votes</td>
					<td>Total Votes</td><td>Url</td><td>Views</td>
				</tr>
				<?php $sql = mysql_query("SELECT * FROM `TG_logs`");
					$TotalBottedVids = mysql_num_rows($sql);
					for($i = 0; $i < $TotalBottedVids; $i++){
						$sql = mysql_query("SELECT * FROM `TG_logs` LIMIT \"$i\",0");
						$row = mysql_fetch_array($sql); ?>
						<tr><td><?php echo $row['user']; ?></td>
						<td><?php echo $row['date']; ?></td>
						<td><?php echo $row['downvotes']; ?></td>
						<td><?php echo $row['totalvotes'];?></td>
						<td><?php echo $row['url']; ?></td>
						<td><?php echo $row['views']; ?></td>
						</tr><?php } ?>
			<table>
		</body>
	</html> <?php } ?>

That's just a sample php code that could handle it. It would also output the information. You could limit them by dates if you wanted to.


Another idea I have is to have the program get the names of the accounts that are apart of the vote bot. As you may already know, if someone rates a video recently it is shown on the video page.
rating.png


which you can get the names of the people in this div id="watch-recent-ratings"

The usernames are in a href that looks like
Code:
<a href="/user/EvoBiologist" onmousedown="urchinTracker('/Events/VideoWatch/RecentRating');" class="hLink smallText">EvoBiologist</a>
Where as EvoBiologist is the username of the person that rated.

Just some suggestions to help make this program better. The logging part wouldn't be to hard. Just a little additional lines of code. The harder part would be to get the last ratings name.

Cheers.
 
arg-fallbackName="scalyblue"/>
Re: Leaguer fights back against Votebotting, TubeGuardian in dev

The site http://www.tubeguardian.com/ is a bit dubious in design, it's an image, a few mirrors, and a very broad statement of function "Protect your ratings" A non-member of this site directed to this page would need to google it, find the digg article and read about it.

I strongly suggest that you retool the download site to at least explain what the program does, and give some modicum of reassurance that it isn't some elaborate method to steal your password ( Which I have seen accusations of due to the general lack of information )

Other than that, I think it is a *wonderful* idea, a thousand thanks to the coder(s) who thought of this!
 
Back
Top