Jump to content

Recommended Posts

Hi I have a rating website like hotornot.com and I have the option where I can make my users login to rate but I also want the guests to rate and when I allow guests to rate there is lots of spammers just using a proxy with different Ip's and they give unfair rating to everyone, is there anyway or any php script that I can get rid of these scammers???

Link to comment
https://forums.phpfreaks.com/topic/162194-block-proxy/
Share on other sites

Not really, but you could try this

<?php
$proxyheader = array(
'HTTP_VIA',
'HTTP_X_FORWARDED_FOR',
'HTTP_FORWARDED_FOR',
'HTTP_X_FORWARDED',
'HTTP_FORWARDED',
'HTTP_CLIENT_IP',
'HTTP_FORWARDED_FOR_IP',
'VIA',
'X_FORWARDED_FOR',
'FORWARDED_FOR',
'X_FORWARDED',
'FORWARDED',
'CLIENT_IP',
'FORWARDED_FOR_IP',
'HTTP_PROXY_CONNECTION'
);
$valid = true;
foreach($proxyheader as $p)
{
if(isset($_SERVER[$p]))
{
	$valid = false;
}
}
if(!$valid){
die ("Using proxy");
}
?>

 

Link to comment
https://forums.phpfreaks.com/topic/162194-block-proxy/#findComment-855935
Share on other sites

Why don't you just make the guests' rank weight lower than a regular user.  For instance....a guest's vote is worth 33.3% of a regular vote...meaning it takes 3 different guests to actually make a solid vote.

 

And you can always ceil() the current rank of the user to keep it from showing as a decimal number.

 

\

Edit: Actually I meant floor()

Link to comment
https://forums.phpfreaks.com/topic/162194-block-proxy/#findComment-856058
Share on other sites

Before trying to say you want to "block proxies", maybe you should actually understand what a proxy is and for what reasons it can be used. Proxies may be used in a corporate/school environment to keep external access tight. You could setup the firewall to only allow external access through the proxy and use various forms of content filtering and logging.

 

Besides filtering/logging, another utility caching. Say you run a network with 1000 nodes connected on a daily basis. Instead of each node having their own local cache, you can have a cache on network level by making all the nodes go through that proxy. This means a resource can be downloaded 1 time from the external location, saved and cached somewhere in the LAN and passed on to local clients, thus vastly saving bandwidth because you don't have to download the same things over and over again.

 

Maybe you shouldn't try to block something you don't understand what is and what can be used for. If you do that you won't understand the consequences of it and you probably end up blocking legitimate traffic.

 

There are also some ISPs that route all their customers through a proxy.

Link to comment
https://forums.phpfreaks.com/topic/162194-block-proxy/#findComment-856061
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.