# Connection errors: the site times out or refuses to load

> Find why you or your visitors cannot connect to a site, whether DNS, an IP deny rule, bot protection, or a stopped environment, and fix the one that applies.

Source: https://docs.wpwaterfall.com/troubleshooting-connection-errors

A connection error means the browser never got a page, unlike a server error where the site answered with a failure. First find out who can connect. If you can and a visitor cannot, a rule is the likely cause. If nobody can, look at DNS and the environment.

## How do I find the cause?

1. **Try the temporary address.** Copy the temporary hostname from **Info** and load it. If it loads, the environment is fine and the problem is the domain or a rule. If it does not, check the environment on **Environments** and read the latest job on **Jobs**.
2. **Check the domain.** Open **Domains** and confirm the domain is active and its records match. Press **Verify** on the domain. See [Domain not resolving](https://docs.wpwaterfall.com/troubleshooting-domain-not-resolving).
3. **Check IP deny.** Open **Tools**, then **IP Deny**, and look for a rule that covers the blocked address. A block at the edge stops the connection before it reaches the site. The tab appears only while IP deny is on.
4. **Check bot protection.** Open **Protection** and look at the **Bot protection** card for the protection level. At **Challenge everyone**, scripts, webhooks, and apps that call the site fail unless you add them as exceptions.
5. **Check for a stopped environment.** An environment that is stopped or restarting answers nothing. Wait for the restart job to finish. A sleeping environment wakes by itself when you connect, in a few seconds.

## How do I fix it?

- **An IP deny rule blocks visitors.** Delete it, narrow its range, or add the address as **Always allow these addresses**. See [IP deny](https://docs.wpwaterfall.com/ip-deny).
- **Bot protection blocks real people or a service.** Lower the level, or add an exception for the path, address, or user agent. Verified search engine bots always pass. See [Bot protection](https://docs.wpwaterfall.com/bot-protection).
- **DNS is wrong.** Correct the record at your DNS host or in [Cloudflare DNS](https://docs.wpwaterfall.com/dns), then wait for it to spread.
- **The environment is down.** Restart PHP from **Tools**. If the restart does not finish, read its job on **Jobs**.

## Still stuck

Message Nami from the chat button with the domain, the time of the failure, the browser's error text, the result of the temporary address test, and the IP address you tested from.

## Related

- [IP deny](https://docs.wpwaterfall.com/ip-deny)
- [Bot protection](https://docs.wpwaterfall.com/bot-protection)
- [Domains](https://docs.wpwaterfall.com/domains)
- [Cloudflare DNS](https://docs.wpwaterfall.com/dns)
- [Jobs and progress](https://docs.wpwaterfall.com/jobs-and-progress)
- [502 after a deploy](https://docs.wpwaterfall.com/troubleshooting-502-after-deploy)
