# Ad Blocking

Source: https://docs.evomi.com/proxy-instructions/residential-proxies/expert-settings/adblocking/

Evomi Residential Proxies offer a built-in ad blocking feature that allows you to block ads and trackers on the websites you visit. This feature is useful when doing any browser-based tasks. Enabling this feature can save you time and bandwidth by blocking unnecessary content.

Most popular ad networks will just not load when using this feature.
![The Speedtest.net homepage loaded through a residential proxy with ad blocking enabled, showing the page content with none of its usual ad banners](/images/adblocking.png)

## Enabling Ad Blocking

To enable ad blocking, add the `adblock-1` parameter to your proxy password. 

## Examples

Below are examples of using The inbuilt Adblock Funcionality in different programming languages: CURL, Python, and JavaScript.

#### CURL

  ```bash
curl -x http://rp.evomi.com:1000 -U testuser:testpassword_country-US_session-sgn34f3e_lifetime-10_adblock-1 https://ip.evomi.com/s
```

#### Python

  ```Python

import requests

proxy_pass = "testpassword_country-US_session-sgn34f3e_lifetime-10_adblock-1"
proxy_url = f"http://testuser:{proxy_pass}@rp.evomi.com:1000"

proxies = {
  "http": proxy_url,
}
response = requests.get("https://ip.evomi.com/s", proxies=proxies)
print(response.text)

proxy_pass = "testpassword_country-US_hardsession-JS9nsq2n_adblock-1"
proxy_url = f"http://testuser:{proxy_pass}@rp.evomi.com:1000"

proxies = {
  "http": proxy_url,
}
response = requests.get("https://ip.evomi.com/s", proxies=proxies)
print(response.text)
```

#### JavaScript

```JavaScript

const fetch = require('node-fetch');

const proxyPass = 'testpassword_country-US_session-sgn34f3e_lifetime-10';
const proxyUrl = `http://testuser:${proxyPass}@rp.evomi.com:1000`;
const url = 'https://ip.evomi.com/s';

fetch(url, { proxy: proxyUrl })
  .then(res => res.text())
  .then(body => console.log(body));

const proxyPass2 = 'testpassword_country-US_hardsession-JS9nsq2n';
const proxyUrl2 = `http://testuser:${proxyPass2}@rp.evomi.com:1000`;
fetch(url, { proxy: proxyUrl2 })
  .then(res => res.text())
  .then(body => console.log(body));
```

Note our easy to use Proxy Generator can generate all this for you.
