Ok guys i want to test out a simple method to stop a few, yes just a few, as you cant block every proxy. Especially with a htaccess or php method which checks the headers, its almost impossible to block as most fake/remove the needed headers.
This method will work out for proxies not running javascript by default and a few older ones where this method will break their url in the browser.
It is to point out that, if you dont have problems with proxy cheating, skip this. As you will kill legitimate proxy voters.
What we will do is kill the html link to vote on the gateway ( so yes, gateway is required ) and append it again using javascript. Ive tested out a few proxies but more input would be useful to see how many are actually affected with this method
So lets start, open up gateway.html
search for this code ( this is how it looks like in parabolas default file ), if you dont find this code, please let me know how yours look like so you do it correctly.
Change it to this
Ive included also a simple countdown the user needs to wait until he can click vote. If you do not need it, simply change the countdown base value to zero ( 0 )
Next up, find this
Change to
Thats it. Ofcourse if the user is clever enough he might break it. But i find this pretty useful to block at least a few of them
This method will work out for proxies not running javascript by default and a few older ones where this method will break their url in the browser.
It is to point out that, if you dont have problems with proxy cheating, skip this. As you will kill legitimate proxy voters.
What we will do is kill the html link to vote on the gateway ( so yes, gateway is required ) and append it again using javascript. Ive tested out a few proxies but more input would be useful to see how many are actually affected with this method
So lets start, open up gateway.html
search for this code ( this is how it looks like in parabolas default file ), if you dont find this code, please let me know how yours look like so you do it correctly.
Code:
jQuery(document).ready(function(){
jQuery(".visio_button").hover(function(){jQuery(this).stop().animate({opacity:0.8},250)},
function(){jQuery(this).stop().animate({opacity:1.0},250)})
});
Code:
jQuery(document).ready(function(){
jQuery(".visio_button").hover(function(){
jQuery(this).stop().animate({opacity:0.8},250);
},
function(){
jQuery(this).stop().animate({opacity:1.0},250);
});
var countdown = 5;
var vote = $('#vote span');
function doVote() {
var link = '{$list_url}/index.php?a=in&u={$username}&sid={$sid}';
if (countdown > 0){
$('#vote span').html('Please wait '+countdown);
window.setTimeout(function() {
doVote();
}, 1000);
countdown--;
}
else {
$('#vote').attr('href', ($('#mc_user').val()) ? link + "&mc_user=" + $('#mc_user').val() : link);
$('#vote span').html('{$lng->gateway_vote}');
}
}
doVote();
});
Code:
var countdown = 5;
Code:
<a href="{$list_url}/index.php?a=in&u={$username}&sid={$sid}" class="visio_button large_button green" target=""><span>{$lng->gateway_vote}</span></a>
Code:
<a href="#" class="visio_button large_button green" id="vote" target=""><span>{$lng->gateway_vote}</span></a>