> For the complete documentation index, see [llms.txt](https://developers.oxylabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.oxylabs.io/products/es/proxies/residential-proxies/whitelisting-ips.md).

# Lista blanca de IP y autenticación

Aprende a crear o editar una lista blanca de IP para tus Residential Proxies.

La inclusión en lista blanca de IP le permite acceder a Oxylabs Residential Proxies usando sus IPs personales en lista blanca para omitir el requisito de nombre de usuario y contraseña en su solicitud de proxy.

{% hint style="warning" %}
**No mezcle métodos de autenticación.** Si su IP de origen está en la lista blanca, conéctese usando autenticación por IP o autenticación con credenciales, y nunca ambas simultáneamente. Pasar credenciales desde una IP en lista blanca puede causar un comportamiento de enrutamiento inesperado o del navegador `407 Proxy Authentication Required` errores.
{% endhint %}

## Crear una lista blanca de IP

Para habilitar la autenticación basada en IP, registra la dirección IPv4 pública estática de tu servidor en el panel de Oxylabs.

1. Inicia sesión en el [**Panel de Oxylabs**](https://dashboard.oxylabs.io/).
2. Cree una instancia del producto Residential Proxy.
3. En la **configuración de autenticación** selecciona **IPs permitidas**.

   <figure><img src="https://2786356907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBQ7Zf9paoN3FTeGcyfY1%2Fuploads%2FQ2n1AyQHRvSd6CgAJsPE%2FScreenshot%202026-10-05%20at%2004.17.12.png?alt=media&amp;token=0799c543-bb9a-495e-a6b7-d842b6c19fa9" alt=""><figcaption></figcaption></figure>
4. Introduce **hasta 10 IPv4 públicas** direcciones (en `xx.xx.xx.xx` formato).
5. Completa todos los detalles necesarios y haz clic en **Crear instancia**.

{% hint style="warning" %}

* Asegúrate de no estar conectado a una VPN o a un servicio de proxy local al comprobar tu dirección IP pública.
* Si tu equipo comparte una dirección IP pública o necesita seguimiento individual de subusuarios, usa la autenticación con credenciales en lugar del whitelisting de IP.
  {% endhint %}

## Solicitudes con IPs en lista blanca

Al usar la inclusión en lista blanca de IP, los parámetros (como [ubicación](/products/es/proxies/residential-proxies/location-settings.md), [IDs de sesión](/products/es/proxies/residential-proxies/session-control.md), o ASNs) no se pueden incrustar en una cadena de nombre de usuario. En su lugar, todas las banderas del proxy se agregan directamente a la dirección del host del nodo de entrada como un subdominio que apunta a `.bc.pr.oxylabs.io:7777`.

```
cc-us-city-new_york-sessid-test123.bc.pr.oxylabs.io:7777
```

<table><thead><tr><th width="149">Tipo</th><th width="119">Parámetro</th><th>Descripción</th></tr></thead><tbody><tr><td><a href="/products/es/proxies/residential-proxies/location-settings.md#country"><strong>Segmentación por país</strong></a></td><td><code>cc</code></td><td>Código de país ISO de 2 letras.<br>P. ej. <code>cc-de.bc.pr.oxylabs.io:7777</code></td></tr><tr><td><a href="/products/es/proxies/residential-proxies/location-settings.md#city"><strong>Segmentación por ciudad</strong></a></td><td><code>ciudad</code></td><td>Requiere <code>cc</code> parámetro. Los espacios usan <code>_</code>.<br>P. ej. <code>cc-us-city-new_york.bc.pr.oxylabs.io:7777</code></td></tr><tr><td><a href="/products/es/proxies/residential-proxies/location-settings.md#state"><strong>Segmentación por estado</strong></a></td><td><code>st</code></td><td>Estados de EE. UU.; requiere <code>us_</code> prefijo.<br>P. ej. <code>st-us_california.bc.pr.oxylabs.io:7777</code></td></tr><tr><td><a href="/products/es/proxies/residential-proxies/location-settings.md#continent"><strong>Segmentación por continente</strong></a></td><td><code>cn</code></td><td>código de continente de 2 letras (<code>AF</code>, <code>AN</code>, <code>AS</code>, <code>EU</code>, <code>NA</code>, <code>OC</code>, <code>SA</code>).<br>P. ej. <code>cn-eu.bc.pr.oxylabs.io:7777</code></td></tr><tr><td><a href="/products/es/proxies/residential-proxies/location-settings.md#zip-postal-code"><strong>Segmentación por código postal / ZIP</strong></a></td><td><code>postalcode</code></td><td>Código postal de EE. UU. de 5 dígitos; requiere <code>cc-us</code>.<br>P. ej. <code>cc-us-postalcode-90210.bc.pr.oxylabs.io:7777</code></td></tr><tr><td><a href="/products/es/proxies/residential-proxies/location-settings.md#geo-hash"><strong>Segmentación por geohash</strong></a></td><td><code>geohash</code></td><td>Niveles de celdas de la cuadrícula del 1 al 4 (<code>9</code> a <code>drq4</code>).<br>P. ej. <code>geohash-u09.bc.pr.oxylabs.io:7777</code></td></tr><tr><td><a href="/products/es/proxies/residential-proxies/location-settings.md#asn-targeting"><strong>Segmentación ASN</strong></a></td><td><code>ASN</code></td><td>Apunte a números específicos de sistema autónomo.<br>P. ej. <code>asn-21928.bc.pr.oxylabs.io:7777</code></td></tr><tr><td><a href="/products/es/proxies/residential-proxies/session-control.md#default-sticky-sessions-sessid"><strong>Sesión persistente</strong></a></td><td><code>sessid</code></td><td>Vincula las solicitudes secuenciales a la misma IP (10 min por defecto).<br>P. ej. <code>sessid-test123.bc.pr.oxylabs.io:7777</code></td></tr><tr><td><a href="/products/es/proxies/residential-proxies/session-control.md#extend-session-duration-sesstime"><strong>Duración de la sesión</strong></a></td><td><code>sesstime</code></td><td>Extiende la duración de la sesión en minutos.<br>P. ej. <code>sessid-test123-sesstime-15.bc.pr.oxylabs.io:7777</code></td></tr></tbody></table>

#### Ejemplos de código

{% tabs %}
{% tab title="cURL" %}

```shell
curl -x https://cc-us-city-new_york-sessid-test123.bc.pr.oxylabs.io:7777 https://ip.oxylabs.io/location
```

{% endtab %}

{% tab title="PHP" %}

```php
<?php
$session_id = 'test123';  // Su ID de sesión
$city = 'new_york';  // La ciudad que desea segmentar
$proxy = "cc-us-city-$city-sessid-$session_id.bc.pr.oxylabs.io:7777";
$query = curl_init('https://ip.oxylabs.io/location');

curl_setopt($query, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($query, CURLOPT_PROXY, "http://$proxy");
$output = curl_exec($query);
curl_close($query);

if ($output)
    echo $output;
?>

```

{% endtab %}

{% tab title="Python" %}

```python
import urllib.request

session_id = 'test123'  # Su ID de sesión
city = 'new_york'  # La ciudad que desea segmentar
proxy = 'cc-us-city-%s-sessid-%s.bc.pr.oxylabs.io:7777' % (city, session_id)

query = urllib.request.ProxyHandler({
    'http': proxy,
    'https': proxy,
})

execute = urllib.request.build_opener(query)
print(execute.open('https://ip.oxylabs.io/location').read())

```

{% endtab %}

{% tab title="Java" %}

```java
package example;

import org.apache.http.HttpHost;
import org.apache.http.client.fluent.*;

public class Example {
    public static void main(String[] args) throws Exception {
        HttpHost entry = new HttpHost("cc-us-city-new_york-sessid-test123.bc.pr.oxylabs.io", 7777);

        String query = Executor.newInstance()
            .execute(Request.Get("http://ip.oxylabs.io/location").viaProxy(entry))
            .returnContent().asString();
        
        System.out.println(query);
    }
}

```

{% endtab %}

{% tab title="C#" %}

```csharp
using System;
using System.Net;

class Example
{
    static void Main()
    {
        var client = new WebClient();
        
        client.Proxy = new WebProxy("cc-us-city-new_york-sessid-test123.bc.pr.oxylabs.io:7777");

        Console.WriteLine(client.DownloadString("https://ip.oxylabs.io/location"));
    }
}

```

{% endtab %}

{% tab title="Go" %}

```ruby
package main

import (
	"fmt"
	"io/ioutil"
	"net/http"
	"net/url"
)

func main() {
	proxyURL, _ := url.Parse("https://cc-us-city-new_york-sessid-test123.bc.pr.oxylabs.io:7777")
	client := &http.Client{Transport: &http.Transport{Proxy: http.ProxyURL(proxyURL)}}

	resp, err := client.Get("https://ip.oxylabs.io/location")
	if err != nil {
		fmt.Println("Error:", err)
		return
	}
	defer resp.Body.Close()

	body, _ := ioutil.ReadAll(resp.Body)
	fmt.Println(string(body))
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers.oxylabs.io/products/es/proxies/residential-proxies/whitelisting-ips.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
