What we can do to prevent this
- Add host: maps.googleapis.com parameter to the request header when application send rest call to that api
In WSO2 ESB we can use below property before send mediator. It will add above parameter to request header when ESB send rest call to maps.googleapis.com.
<property name="REQUEST_HOST_HEADER" value="maps.googleapis.com" scope="axis2"></property>