I'm trying to do a Google Geocode Request with PHP, but I get a 403 Forbidden answer:
Warning: file_get_contents(http://maps.google.com/maps/api/geocode/json?address=Bahnhofstrasse+1,+Zurich&sensor=false): failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in ...
With the same code on a different server the request works. Is it possible that google is blocking my requests from a specific server? Too many requests?
Here is my code:
error_reporting(E_ALL ^ E_NOTICE);
$request = file_get_contents("http://maps.google.com/maps/api/geocode/json?address=Bahnhofstrasse+1,+Zurich&sensor=false");
$json = json_decode($request, true);
print_r($json);