# Username and password or allowed IP

> How the RH7 proxy checks who is connecting: username and password, or a list of allowed IPs with no password.
> Page: https://rh7proxys.com/en/docs/autenticacao-proxy · Index: https://rh7proxys.com/llms.txt

The proxy checks who is connecting in two ways. You can use one or both.

## Username and password

This is the default. Every connection sends the proxy username and password, as in the examples in [Address, ports and protocols](https://rh7proxys.com/en/docs/conexao). It works from anywhere: your computer, your phone or a server.

Keep the password as safe as your bank password. Anyone with the username and password can spend your GB.

## Allowed IP (no password)

If your program always runs from the same server, you can allow that server's IP. From then on, connections coming from it get in without a username and password:

```bash
curl -x http://auto-rh7proxys.com:823 https://api.ipify.org
```

To allow an IP:

- **In the panel:** open the proxy and add the IP to the list of allowed IPs.
- **Through the API:** `POST /v1/proxies/{id}/whitelist` with `{"ip": "203.0.113.10"}`. To remove it, `DELETE /v1/proxies/{id}/whitelist/203.0.113.10`.

IPv4 is accepted. Use only fixed IPs that belong to you: any connection coming from an allowed IP uses your GB.

## Which one to choose

| Situation | Best option |
|---|---|
| Browser, phone, antidetect, extension | Username and password |
| Server with a fixed IP, bot, scraper | Allowed IP |
| Program that does not accept a proxy password | Allowed IP |

## Error 407

The `407 Proxy Authentication Required` error means the proxy did not recognize you. Check the username and password (no trailing space) or, if you use an allowed IP, check that the IP you are using now is the same one on the list. See more in [Connection errors](https://rh7proxys.com/en/docs/erros-conexao).
