HEREHERE1
Code
<?php
if(isset($_SERVER["GD_PHP_HANDLER"])) {
	echo("A ". $_SERVER["GD_PHP_HANDLER"] ."<br>\n");
}
if(isset($_SERVER["HTTP_AKAMAI_ORIGIN_HOP"])) {
	echo("B ". $_SERVER["HTTP_AKAMAI_ORIGIN_HOP"] ."<br>\n");
}
if(isset($_SERVER["HTTP_X_SUCURI_CLIENTIP"])) {
	echo("C ". $_SERVER["HTTP_X_SUCURI_CLIENTIP"] ."<br>\n");
}
if(isset($_SERVER["HTTP_CF_CONNECTING_IP"])) {
	echo("D ". $_SERVER["HTTP_CF_CONNECTING_IP"] ."<br>\n");
}
if(isset($_SERVER["HTTP_CLIENT_IP"])) {
	echo("E ". $_SERVER["HTTP_CLIENT_IP"] ."<br>\n");
}
if(isset($_SERVER["HTTP_FASTLY_CLIENT_IP"])) {
	echo("F ". $_SERVER["HTTP_FASTLY_CLIENT_IP"] ."<br>\n");
}
if(isset($_SERVER["HTTP_FORWARDED"])) {
	echo("G ". $_SERVER["HTTP_FORWARDED"] ."<br>\n");
}
if(isset($_SERVER["HTTP_FORWARDED_FOR"])) {
	echo("H ". $_SERVER["HTTP_FORWARDED_FOR"] ."<br>\n");
}
if(isset($_SERVER["HTTP_X_FORWARDED_FOR"])) {
	echo("I ". $_SERVER["HTTP_X_FORWARDED_FOR"] ."<br>\n");
}
if(isset($_SERVER["HTTP_INCAP_CLIENT_IP"])) {
	echo("J ". $_SERVER["HTTP_INCAP_CLIENT_IP"] ."<br>\n");
}
if(isset($_SERVER["HTTP_TRUE_CLIENT_IP"])) {
	echo("K ". $_SERVER["HTTP_TRUE_CLIENT_IP"] ."<br>\n");
}
if(isset($_SERVER["HTTP_X_CLIENTIP"])) {
	echo("L ". $_SERVER["HTTP_X_CLIENTIP"] ."<br>\n");
}
if(isset($_SERVER["HTTP_X_CLUSTER_CLIENT_IP"])) {
	echo("M ". $_SERVER["HTTP_X_CLUSTER_CLIENT_IP"] ."<br>\n");
}
if(isset($_SERVER["HTTP_X_FORWARDED"])) {
	echo("N ". $_SERVER["HTTP_X_FORWARDED"] ."<br>\n");
}
if(isset($_SERVER["HTTP_X_IP_TRAIL"])) {
	echo("O ". $_SERVER["HTTP_X_IP_TRAIL"] ."<br>\n");
}
if(isset($_SERVER["HTTP_X_REAL_IP"])) {
	echo("P ". $_SERVER["HTTP_X_REAL_IP"] ."<br>\n");
}
if(isset($_SERVER["HTTP_X_VARNISH"])) {
	echo("Q ". $_SERVER["HTTP_X_VARNISH"] ."<br>\n");
}
echo("R ". $_SERVER["REMOTE_ADDR"] ."<br>\n");
echo("----------<br>\n\n");

if(isset($_SERVER["GD_PHP_HANDLER"])) {
	echo("A ". $_SERVER["GD_PHP_HANDLER"] ."<br>\n");
} elseif(isset($_SERVER["HTTP_AKAMAI_ORIGIN_HOP"])) {
	echo("B ". $_SERVER["HTTP_AKAMAI_ORIGIN_HOP"] ."<br>\n");
} elseif(isset($_SERVER["HTTP_X_SUCURI_CLIENTIP"])) {
	echo("C ". $_SERVER["HTTP_X_SUCURI_CLIENTIP"] ."<br>\n");
} elseif(isset($_SERVER["HTTP_CF_CONNECTING_IP"])) {
	echo("D ". $_SERVER["HTTP_CF_CONNECTING_IP"] ."<br>\n");
} elseif(isset($_SERVER["HTTP_CLIENT_IP"])) {
	echo("E ". $_SERVER["HTTP_CLIENT_IP"] ."<br>\n");
} elseif(isset($_SERVER["HTTP_FASTLY_CLIENT_IP"])) {
	echo("F ". $_SERVER["HTTP_FASTLY_CLIENT_IP"] ."<br>\n");
} elseif(isset($_SERVER["HTTP_FORWARDED"])) {
	echo("G ". $_SERVER["HTTP_FORWARDED"] ."<br>\n");
} elseif(isset($_SERVER["HTTP_FORWARDED_FOR"])) {
	echo("H ". $_SERVER["HTTP_FORWARDED_FOR"] ."<br>\n");
} elseif(isset($_SERVER["HTTP_X_FORWARDED_FOR"])) {
	echo("I ". $_SERVER["HTTP_X_FORWARDED_FOR"] ."<br>\n");
} elseif(isset($_SERVER["HTTP_INCAP_CLIENT_IP"])) {
	echo("J ". $_SERVER["HTTP_INCAP_CLIENT_IP"] ."<br>\n");
} elseif(isset($_SERVER["HTTP_TRUE_CLIENT_IP"])) {
	echo("K ". $_SERVER["HTTP_TRUE_CLIENT_IP"] ."<br>\n");
} elseif(isset($_SERVER["HTTP_X_CLIENTIP"])) {
	echo("L ". $_SERVER["HTTP_X_CLIENTIP"] ."<br>\n");
} elseif(isset($_SERVER["HTTP_X_CLUSTER_CLIENT_IP"])) {
	echo("M ". $_SERVER["HTTP_X_CLUSTER_CLIENT_IP"] ."<br>\n");
} elseif(isset($_SERVER["HTTP_X_FORWARDED"])) {
	echo("N ". $_SERVER["HTTP_X_FORWARDED"] ."<br>\n");
} elseif(isset($_SERVER["HTTP_X_IP_TRAIL"])) {
	echo("O ". $_SERVER["HTTP_X_IP_TRAIL"] ."<br>\n");
} elseif(isset($_SERVER["HTTP_X_REAL_IP"])) {
	echo("P ". $_SERVER["HTTP_X_REAL_IP"] ."<br>\n");
} elseif(isset($_SERVER["HTTP_X_VARNISH"])) {
	echo("Q ". $_SERVER["HTTP_X_VARNISH"] ."<br>\n");
} else {
	echo("R ". $_SERVER["REMOTE_ADDR"] ."<br>\n");
}
echo("----------<br>\n\n");

function fetch_ip() {
	if(isset($_SERVER["GD_PHP_HANDLER"])) {
		return($_SERVER["GD_PHP_HANDLER"]);
	} elseif(isset($_SERVER["HTTP_AKAMAI_ORIGIN_HOP"])) {
		return($_SERVER["HTTP_AKAMAI_ORIGIN_HOP"]);
	} elseif(isset($_SERVER["HTTP_X_SUCURI_CLIENTIP"])) {
		return($_SERVER["HTTP_X_SUCURI_CLIENTIP"]);
	} elseif(isset($_SERVER["HTTP_CF_CONNECTING_IP"])) {
		return($_SERVER["HTTP_CF_CONNECTING_IP"]);
	} elseif(isset($_SERVER["HTTP_CLIENT_IP"])) {
		return($_SERVER["HTTP_CLIENT_IP"]);
	} elseif(isset($_SERVER["HTTP_FASTLY_CLIENT_IP"])) {
		return($_SERVER["HTTP_FASTLY_CLIENT_IP"]);
	} elseif(isset($_SERVER["HTTP_FORWARDED"])) {
		return($_SERVER["HTTP_FORWARDED"]);
	} elseif(isset($_SERVER["HTTP_FORWARDED_FOR"])) {
		return($_SERVER["HTTP_FORWARDED_FOR"]);
	} elseif(isset($_SERVER["HTTP_X_FORWARDED_FOR"])) {
		return($_SERVER["HTTP_X_FORWARDED_FOR"]);
	} elseif(isset($_SERVER["HTTP_INCAP_CLIENT_IP"])) {
		return($_SERVER["HTTP_INCAP_CLIENT_IP"]);
	} elseif(isset($_SERVER["HTTP_TRUE_CLIENT_IP"])) {
		return($_SERVER["HTTP_TRUE_CLIENT_IP"]);
	} elseif(isset($_SERVER["HTTP_X_CLIENTIP"])) {
		return($_SERVER["HTTP_X_CLIENTIP"]);
	} elseif(isset($_SERVER["HTTP_X_CLUSTER_CLIENT_IP"])) {
		return($_SERVER["HTTP_X_CLUSTER_CLIENT_IP"]);
	} elseif(isset($_SERVER["HTTP_X_FORWARDED"])) {
		return($_SERVER["HTTP_X_FORWARDED"]);
	} elseif(isset($_SERVER["HTTP_X_IP_TRAIL"])) {
		return($_SERVER["HTTP_X_IP_TRAIL"]);
	} elseif(isset($_SERVER["HTTP_X_REAL_IP"])) {
		return($_SERVER["HTTP_X_REAL_IP"]);
	} elseif(isset($_SERVER["HTTP_X_VARNISH"])) {
		return($_SERVER["HTTP_X_VARNISH"]);
	} else {
		return($_SERVER["REMOTE_ADDR"]);
	}
}
echo(fetch_ip());
?>

HEREHERE2

Last edited by id242; 03/04/17 05:58 AM.

Signature goes here.