I have this code in my php file and I want to change this site because it can't handle many requests I want to change to https://ipinfo.io/json or any other site that handles a lot of requests Please replace this code with my new code on another site
<?php
$uid = $_GET['userid'];
if (isset($_SERVER['HTTP_CLIENT_IP']))
{
$real_ip_adress = $_SERVER['HTTP_CLIENT_IP'];
}
if (isset($_SERVER['HTTP_X_FORWARDED_FOR']))
{
$real_ip_adress = $_SERVER['HTTP_X_FORWARDED_FOR'];
}
else
{
$real_ip_adress = $_SERVER['REMOTE_ADDR'];
}
$cip = $real_ip_adress;
$iptolocation = 'http://www.geoplugin.net/json.gp?ip=' . $cip;
$creatorlocation = file_get_contents($iptolocation);
$json = file_get_contents($iptolocation);
$data = json_decode($json);
$country = $data->geoplugin_countryName;
?>