0

i added the plugin from geoplugin.com to my page, i activated my domain, but in my errorlog i get errors all the time like this:

[20-Mar-2013 11:17:13 CET] PHP Warning: file_get_contents(http://www.geoplugin.net/php.gp?ip=157.55.34.183&amp;base_currency=USD) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
 in /wwwroot.wwwnew/templates/geo/geoplugin.class.php on line 105

How can i solve this problem?

5
  • If you are banned there is no way to solve that problem (only to change/hide your IP perhaps). I am opening that url without problems.. Commented Mar 20, 2013 at 10:37
  • I dont think that im banned. Commented Mar 20, 2013 at 11:05
  • Try this same code on a different machine and it will work ! Probably your IP is blocked as Svetilo said! You can even try a different site from that same machine. It will probably work too, your code is ok and your server connects to remote ones successfully so it's an issue with the remote server forbidding the request Commented Oct 21, 2014 at 14:56
  • please refer this link this may help you. Commented May 20, 2020 at 10:56
  • please refer this link. this may help you. Commented May 20, 2020 at 10:57

1 Answer 1

1

If geoplugin.net was responding perfectly, then stopped, then you have gone over the free lookup limit of 120 requests per minute.

We automatically block all requests coming from an IP or a domain name if the number of requests exceeds 120 lookups per minute. This is explained in our Acceptable Use Policy. This block comes in the form of a HTTP/1.1 403 Forbidden reply from geoplugin.net

This block is automatically removed 1 hour after the last time your server stopped sending more than 120 requests a minute.

- GeoPlugin FaQ

If you need more than 120 requests per minute, you have to whitelist your domain (it's paid).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.