Forums Sign Up Reply Search Statistics
Hacks And Addons GraFX Software Solutions - Forum / Hacks And Addons /

NEW Cheating Possiblity Stopped (Rate Pro)

 
Author Anonymous
Guest
#1 Posted: 10 Jan 2005 18:31:53
Reply 
With the current script, it is possible for someone to create a Webpage with the same for used for voting. I made a hack to stop it.

In the "ratepro.php" script, just add the follow code to require your site as the referrer to be able to vote. If it is coming from another referrer other that your site, then it forwards it silently to your homepage. SWEET!

<?php

//change by John Alexander 01/10/2005 START
//list of URLs allowd to be referred from
$AllowedURL = array("http://yoururl.com", "http://www.yoururl.com");

//get the referrer info
$Referrer = $_SERVER['HTTP_REFERER'];


//search for occurances of allowed urls in $AllowedURL from Referrer, when found, replace with Allowed
//then grab the first 7 characters of the result, becuase if it's not "allowed" we don't care who it is
$ActualURL = substr(str_replace($AllowedURL, "Allowed", $Referrer),0,7);

if($ActualURL != "Allowed")
{header("Location: http://www.yoururl.com/");}

else{

//current ratepro code

}
?>
Author software
Admin
#2 Posted: 11 Jan 2005 10:44:25
Reply 
Thanx :-)
We will release it in 2.2 with some new things.
Author theprynce
Guest
#3 Posted: 10 Apr 2005 11:20:20
Reply 
Won't work on Star Rating System but it isn't slated to. Anyone know how to make it work? I dunno much about PHP, but I can't see why it doesn't work.

-=The Prynce
Author software
Admin
#4 Posted: 10 Apr 2005 14:00:13
Reply 
Usually our protection should be enough, but you can check referrer if you feel important. We have added a new verification in version 2.2
 
Your Reply

» Username  » Password 
Only registered users are allowed to post here. Please enter your login/password details upon posting a message, or sign up first.