I am using ipstack to receive some geo details from my visitors. The free version allows 10.000 requests per month and according to them I have reached 75% of those already. I have never ever had 7.500 hits this month. I have about 500 hits on this site each and every month.
I do have the following code in my functions.php working correctly.
if ( !is_admin() ) {
$ip = $_SERVER['REMOTE_ADDR'];
$ch = curl_init('http://api.ipstack.com/'.$ip.'?access_key='.ipstack);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$json = curl_exec($ch);
curl_close($ch);
$api_result = json_decode($json, true);
define ( 'lng', strtolower($api_result['country_code']) );
}
I have disabled wp-cron.php
in the wp-config.php
using define('DISABLE_WP_CRON', true);
and run the cronjob every 15 minutes.
So, where do all those requests come from? Any ideas?