Knowledge base
1000 FAQs, 500 tutorials and instructional videos. Here, there are only solutions!
Troubleshooting a 429 or 503 Error (Related to the Web Server)
This guide details the Rejected, too many connections from this host error if it occurs when visiting a website.
Cause of the error
429 Too Many Requests
This error occurs when the server is overwhelmed by a large number of requests in a short period of time, which may be due to heavy site usage or abuse.
503 Service Temporarily Unavailable
This error may be caused by several factors, including planned server maintenance, server overload due to high traffic, or the execution of a script that exceeds the server's resource limits.
Rejected, too many connections from this host
This error occurs when the server rejects connections due to the high number of simultaneous connections from the same IP address. Consult the "Access and Error Logs" on your hosting dashboard to find multiple entries in the following format:
[Fri Sep 02 11:40:31] [error] [client 222.111.123.123] Rejected, too many connections from this host. (vhost:domain.xyz uri:/js/modules/blocktopmenu/js/superfish-modified.js current:34 limit:30
[Fri Sep 02 11:40:31] [error] [client 222.111.123.123] Rejected, too many connections from this host. (vhost:domain.xyz uri:/js/modules/blocktopmenu/js/hoverIntent.js current:34 limit:30
[Fri Sep 02 11:40:31] [error] [client 222.111.123.123] Rejected, too many connections from this host. (vhost:domain.xyz uri:/js/modules/productscategory/productscategory.js current:34 limit:30
[Fri Sep 02 11:40:31] [error] [client 222.111.123.123] Rejected, too many connections from this host. (vhost:domain.xyz uri:/modules/feeder/rss.php current:35 limit:30
[Fri Sep 02 11:40:31] [error] [client 222.111.123.123] Rejected, too many connections from this host. (vhost:domain.xyz uri:/js/modules/favoriteproducts/favoriteproducts.js current:34 limit:30In this example, the IP address 222.111.123.123 is making 30 simultaneous connections to each page, and is therefore automatically rejected, as this may resemble an attack or scan.
Possible solutions
Here are some possible solutions to resolve these errors:
- Check the scripts that make multiple connections to the server to display data.
- Optimize the script(s) in question so that they require fewer resources.
- Increase the limits for the website in question to allow the script to perform all necessary operations and/or limit the number of simultaneous connections (especially on a Cloud Server where the limits – RAM, execution time, simultaneous connections – can be significantly increased).
- Migrate your hosting to a Cloud Server.
Link to this FAQ: https://faq.infomaniak.com/231
Has this FAQ been helpful?