PDA

View Full Version : How to beat a proxy server


Areku
02-04-2003, 04:33 PM
Hi!

I'm on Spain and main ISP put a proxy for the whole country so now people coming from any region can enter multiple times even if I ban them, since I'd be banning proxy IP.

Someone pointed out this function to retrieve the REAL IP:


function ipReal(){

if ($tmp=getenv("HTTP_X_FORWARDED_FOR")) {
$tmpip=explode(",",$tmp);
return trim($tmpip[0]); }
else return getenv("REMOTE_ADDR");
}


And claimed I have to paste it everywhere an IP is traced.

Can anyone in here be more specific OR point me to a hack that would allow me to ban people behind a proxy?

Thanks!

Icheb
02-04-2003, 04:39 PM
Those IP informations have to be provided by the proxy, so it's not necessaire that this will work since not every proxy sends this information.

Areku
02-04-2003, 04:45 PM
Giving the fact he is in Spain and we have the same proxy...

Any chances? Any other hack?

Icheb
02-04-2003, 05:07 PM
There is nothing you can do. Maybe try your method and pray the proxy provides this information.

Areku
02-04-2003, 06:31 PM
Maybe I just can create a funcion I'd call ONLY when i want to ban someone, i.e. calling admin/whichip.php would report me which real ip a user hides onto.

Assuming proxy provides, it, can you help out?