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 origin of the Rejected, too many connections from this host error and associated HTTP errors that may occur when visiting a website hosted by Infomaniak.
Origin of the errors
HTTP Error 429: Too Many Requests
The HTTP 429 error occurs when the web server receives an excessive number of requests from the same visitor or script within a short period. This situation is usually related to very high traffic, excessive automated use, or an attempt to abuse the system.
HTTP Error 503: Service Temporarily Unavailable
The HTTP 503 error indicates that the web server cannot process the visitor's request for one of the following reasons: scheduled maintenance operations on the server, a temporary overload due to a traffic spike, or a script executed by the website that exceeds the allocated resource limits.
“Rejected, too many connections from this host” error
The Rejected, too many connections from this host error appears when the server refuses new connections because a single IP address exceeds the maximum number of allowed simultaneous connections. You can identify this issue in the access and error logs of your hosting dashboard (❓: help). These logs display 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:30 In this example, the IP address 222.111.123.123 generates 30 simultaneous connections to load the page elements. The server automatically blocks this IP address because such a high volume of simultaneous requests resembles the behavior of an aggressive indexing bot or a scanning attempt.
Troubleshooting steps
Here are the main steps to resolve these errors on your website:
- Identify the scripts on your website that generate multiple simultaneous requests to the server to load data or multimedia files.
- Optimize the source code of the scripts in question (❓: help) to reduce their server resource consumption.
- Adjust the hosting limits (❓: help) to allow for more execution time and increase the threshold for simultaneous connections (this option is particularly recommended on a Cloud Server).
- Migrate your web hosting to a Cloud Server (❓: help) to benefit from dedicated and scalable resources.
Link to this FAQ: https://faq.infomaniak.com/231
Has this FAQ been helpful?