---
title: "Free proxy for web scraping: get one, plug it in, test it"
description: "Where your first proxy comes from (free trial, free list or paid plan), how to add it to your scraper, and how to check it works. Plus a prompt for your AI."
url: "https://scrapenews.com/guides/free-proxy-for-web-scraping"
updated: "2026-11-17T00:00:00Z"
---

# Free proxy for web scraping: get one, plug it in, test it

By [scrapenews.com newsroom](https://scrapenews.com/authors/newsroom.md) · Published 16 Nov 2026 · Updated 17 Nov 2026

**TL;DR**

- A proxy sends your scraper’s requests out through another IP address, so the site sees that IP, not yours.
- Your first one can be free: several paid providers give a small free trial. Free public proxy lists are slow, mostly dead and sometimes hostile.
- Put the login in environment variables, check your IP before and after, then let your AI wire it in with the prompt below.

## A proxy is another door out to the web

With a proxy, each request goes to a middleman server first. The site sees the middleman’s IP. The four kinds of proxy are in [residential vs datacenter proxies](https://scrapenews.com/guides/residential-vs-datacenter-proxies.md).

**You need one when:**

- a site blocks your IP (403 errors, endless CAPTCHAs; see [how to avoid getting blocked](https://scrapenews.com/guides/how-to-avoid-getting-blocked-scraping.md))
- you need to see a site as people in another country do
- one IP can’t carry all your requests

You don’t need one when the site lets you in already. Slowing down and sending normal headers is free.

What the middleman sees depends on the address.

- `http://` pages: your scraper hands the whole request to the proxy, which fetches the page for you. It can read and change everything.
- `https://` pages: your scraper asks the proxy to open a tunnel with the `CONNECT` method. After that, [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110#section-9.3.6) says the proxy only forwards data blindly. It learns the host and port you visit, not the page or your cookies.

Your proxy login rides on that first `CONNECT` request, in a `Proxy-Authorization` header.

One limit: a proxy changes your IP and nothing else. Your headers, your TLS handshake and your speed still look the same. If a site catches you on those, a new IP won’t help.

## Five steps to a working proxy

1. Get one: a free trial from the table below gives you a host, port, username and password.
2. Keep the login out of your code: put it in environment variables or a `.env` file that git ignores.
3. Test it alone. Ask an IP-echo service (a site that tells you your IP) who you are, without the proxy, then through it:
   ```bash
   curl https://api.ipify.org
   curl -x "$PROXY_HOST:$PROXY_PORT" -U "$PROXY_USER:$PROXY_PASS" https://api.ipify.org
   ```
   Two different IPs = the proxy works. To see what the site sees (your IP leaking, proxy headers, the anonymity level), run the same curl against our free [proxy checker](https://scrapenews.com/proxy-checker.md).
4. Wire it in: paste the prompt below into ChatGPT, Claude or your coding assistant.
5. Run ten pages first, not ten thousand. Watch the errors.

Why environment variables: code gets pasted into chats, pushed to GitHub and shared. Values in your shell or in a git-ignored `.env` stay on your machine.

The [Requests docs](https://requests.readthedocs.io/en/latest/user/advanced/#proxies) go further. They call storing a password in an environment variable or a version-controlled file a security risk. Our advice: on your own laptop, a `.env` is fine. On a shared server, use the host’s secret store.

The curl test, decoded:

- `-x` sets the proxy, `-U` sends the proxy login. Oxylabs’ docs use the same pattern.
- The double quotes keep a password with symbols in one piece.
- [ipify](https://www.ipify.org) answers with your IP in plain text. Add `?format=json` to get `{"ip":"…"}`, or use `api64.ipify.org` if you have IPv6.

Why only ten pages: trial data runs out fast. The trials section shows the maths.

## Paste this into your AI

Fill in the `<…>` parts. Keep your password out of the chat: the prompt tells the AI not to ask for it.

```text
Add a proxy to my existing scraper. Keep my scraping logic as it is.

My setup: <language + HTTP library, e.g. Python + requests, Node + fetch, Playwright>
My proxy: <provider + product>, <rotating endpoint (new IP on every request) / sticky session / a list of IP:port lines>
My scraper: <paste the code, or name the file>

Do this:
1. Read the proxy from environment variables PROXY_HOST, PROXY_PORT, PROXY_USER, PROXY_PASS (a .env file is fine). If one is missing, stop and name it. Never hard-code them, never print or log the password, and never ask me to paste it into this chat. Add a .env.example with empty values and make sure .env is in .gitignore.
2. URL-encode the user and password before you build the proxy URL (an @ or : in a password breaks it). Send both http:// and https:// traffic through the proxy. Pass the proxy on every request, so a stray HTTP_PROXY variable can't override it.
3. Add an IP check I can run alone: ask https://api.ipify.org?format=json for my IP once without the proxy, then through it. Print both. Same IP = the proxy is not in use: stop.
4. If my proxy rotates, call the IP check 3 times through it and print the IPs, so I can see them change. If I gave a list of IP:port lines instead, use the next one on each request.
5. Timeouts: 10 s to connect, 30 s to read. On a timeout, retry up to 2 times with a short pause, then skip that URL and log it.
6. Catch these and print one plain line saying what each means:
   - 407 = the proxy refused my login: wrong or missing user or password, or my IP is not on its allowlist. Don't retry. Stop.
   - can't connect / connect timeout = wrong host or port, or the proxy is down.
   - read timeout = the proxy or the site is slow. Retry.
   - 403 or 429 from the site = the proxy works, but the site blocked this IP or my speed. Wait, then retry up to 2 times. If the reply has a Retry-After header, wait that long (it can be a number of seconds or a date). If not, wait 30 s, then 60 s. If Retry-After asks for more than 5 minutes, or it still fails, skip that URL and log it.
7. Show me every changed file in full, then the exact commands to set the variables, run the IP check and run the scraper.
```

Why each rule is there:

- Rule 2: Requests lets environment variables like `HTTPS_PROXY` overwrite proxies set on a session, [its docs warn](https://requests.readthedocs.io/en/latest/user/advanced/#proxies). Passing the proxy on every request closes that gap.
- Rule 5: Requests has [no timeout by default](https://requests.readthedocs.io/en/latest/user/advanced/#timeouts), so a dead proxy can hang your script “for minutes or more”. The connect timeout covers opening the connection. The read timeout is the wait between bytes from the server.
- Rule 6: a `Retry-After` header comes as seconds (`120`) or a date, [MDN shows](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Retry-After). The 5-minute cap is our advice, so one URL can’t stall the run. On a rotating proxy, each retry already leaves from a new IP.

We ran this prompt through Claude Sonnet 5.5 on 2026-11-16 with a small Python + requests scraper. The code it wrote did all seven things, including both `Retry-After` forms.

## Free trials from paid providers

These are the free starts in our tool data, checked **2026-11-16**. Sorted A–Z. Most are one-time.

| provider | what you get free | source |
| --- | --- | --- |
| Astro | $3 balance, no time limit, via support | [FAQ](https://astroproxy.com/en/faq) |
| Byteful | 1 GB residential | [residential page](https://byteful.com/proxy-service/residential-proxies) |
| Decodo | 100 MB for 3 days (residential, datacenter, ISP) | [pricing](https://decodo.com/proxies/residential-proxies/pricing), [FAQ](https://decodo.com/faq/billing/do-you-offer-a-free-trial) |
| IPFoxy | 200 MB rotating data plus 3 days of shared IPv4 and IPv6, after you add a phone number | [help page](https://www.ipfoxy.com/help/docs/c2WaoP) |
| Oxylabs | $5 welcome credit | [pricing](https://oxylabs.io/pricing/residential-proxy-pool) |
| Proxidize | 7 days: 1 GB residential, 1 GB mobile, 1 mobile proxy, after an identity check | [residential page](https://proxidize.com/residential-proxies-pricing/) |
| Roundproxies | 500 MB residential, valid 24 hours | [pool page](https://roundproxies.com/residential-proxies-pool/) |
| Webshare | 10 shared proxies, 1 GB a month, no time limit | [pricing](https://www.webshare.io/pricing) |

Webshare’s free amount comes back every month, so it keeps working for small jobs after you’ve tried it.

Some trials cost a little: ProxyScrape gives [1 GB residential for $1](https://proxyscrape.com/products/residential-proxies), ProxyEmpire has a [$1.97 trial](https://proxyempire.io/pricing/), NodeMaven [750 MB for $3.50](https://nodemaven.com/pricing/), Infatica a [$4 7-day trial](https://infatica.io/pricing/).

Ready to pay? Compare entry prices by type: [residential](https://scrapenews.com/compare/residential-proxies.md), [datacenter](https://scrapenews.com/compare/datacenter-proxies.md), [ISP](https://scrapenews.com/compare/isp-proxies.md), [mobile](https://scrapenews.com/compare/mobile-proxies.md).

How far a trial goes depends on what you download. The [2025 Web Almanac](https://almanac.httparchive.org/en/2025/page-weight) puts the median mobile home page at 2.56 MB, but its HTML at just 22 KB. Images are the biggest part.

| trial size | HTML only (22 KB) | full page (2.56 MB) |
| --- | --- | --- |
| 100 MB | about 4,500 fetches | about 39 loads |
| 1 GB | about 45,000 fetches | about 390 loads |

A plain HTTP library like Requests only downloads the HTML. A headless browser loads everything, so block images and fonts in it.

Two more things to know:

- Oxylabs’ $5 credit works on [any of its products](https://oxylabs.io/pricing/isp-proxies), not just one.
- Webshare’s free proxies are shared: you are not the only user of those IPs.
- Webshare’s free plan needs [no credit card](https://www.webshare.io/pricing) and works over HTTP and SOCKS5 (another proxy protocol that many tools accept).

## Free proxy lists: mostly dead, sometimes dangerous

Sites that list thousands of free “open proxies” look tempting. Two research teams tested them at scale.

- Most don’t answer. Georgetown researchers checked more than 107,000 listed proxies over 50 days in 2018: [over 92% were unresponsive](https://arxiv.org/abs/1806.10258). A 2024 study of over 640,600 proxies from 11 list sites found [only 34.5% were active even once](https://arxiv.org/abs/2403.02445) in 30 months.
- **Some change what you get.** The 2024 team caught 16,923 proxies manipulating content. In 2018, Georgetown found proxies adding crypto-mining code to pages, intercepting HTTPS connections, and slipping remote-access trojans into downloaded programs.
- Many run on hacked or broken devices. The 2024 study found 4,452 distinct vulnerabilities on the proxies’ IPs, 1,755 of them allowing remote code execution. 42,206 proxies appeared to run on MikroTik routers. The authors think some are misconfigured by accident and some were set up by attackers.
- They are slow. In 2018, the free Tor anonymity network was roughly twice as fast as the open proxies (median speed).
- Sites can spot them. IP databases such as MaxMind’s carry an [`is_public_proxy` flag](https://dev.maxmind.com/geoip/docs/web-services/responses/).

Our advice: if you try one anyway, send nothing secret through it. No logins, cookies or API keys, and HTTPS only.

An open proxy forwards traffic for anyone on the internet. List sites collect them.

Why HTTPS only: through a tunnel, the proxy just moves encrypted bytes. In 2018, only 70% of the working proxies Georgetown tested (14,607 of 20,893) [let HTTPS through](https://arxiv.org/abs/1806.10258) at all.

A proxy can still fake a site’s certificate to read your traffic. A browser warns you. Your script only notices if certificate checks stay on, so never switch them off (`verify=False` in Requests). The 2024 team notes that proxy owners may count on people running old or vulnerable software.

You can’t filter the bad ones out either. In 2018, the worst proxy returned malicious content 100% of the time it was reachable. None of the 469 malicious proxies Georgetown found were listed on a public service that reports misbehaving proxies.

## Rotating or sticky: pick per job

Paid proxies usually come in two modes:

- Rotating: a new IP on every request. Oxylabs residential proxies [do this by default](https://developers.oxylabs.io/products/proxies/residential-proxies/session-control). Good for many pages from one site.
- Sticky: the same IP for a while. Oxylabs keeps it for 10 minutes by default, or until 60 seconds pass with no request. Good for logins and carts, where a new IP mid-session looks odd.

Webshare’s free plan gives you a list of 10 proxies instead. The prompt above tells your AI to take the next one on each request.

How the big sellers run both modes, and what rotating costs per GB: [Rotating proxies](https://scrapenews.com/guides/rotating-proxies.md).

You usually pick the mode in the username. At Oxylabs it looks like this:

```text
customer-USERNAME-cc-DE-sessid-abcd1234:PASSWORD
```

`cc-DE` asks for a German IP. `sessid-abcd1234` is any random string: same string, same IP; new string, new IP.

Oxylabs’ [session docs](https://developers.oxylabs.io/products/proxies/residential-proxies/session-control) add three options:

- `sesstime` keeps a session alive for up to 1,440 minutes (24 hours).
- `sessid_oneip` binds you to one exit IP. If that IP goes offline, you get HTTP 502 and should start a new session.
- Sticky ports 10001 to 49999 keep an IP for up to 10 minutes, no username change needed.

Other providers use other names for the same ideas, so check their docs. Then run the IP check three times to see which mode you really got.

## When the check fails

| you see | it means | read |
| --- | --- | --- |
| `407 Proxy Authentication Required` | the proxy, not the site, refused your login | [407 fix](https://scrapenews.com/errors/407-proxy-authentication-required.md) |
| same IP with and without proxy | your code isn’t using the proxy | step 3 of the prompt |
| connect timeout, “Cannot connect to proxy” | wrong host or port, or the proxy is down | your provider’s dashboard |
| 403 or 429 through the proxy | the proxy works; the site blocks this IP or your speed | [how to avoid getting blocked](https://scrapenews.com/guides/how-to-avoid-getting-blocked-scraping.md) |

A 407 shows up in two shapes, and the prompt catches both:

- On an `https://` page, the proxy refuses the tunnel. Any answer other than success means [no tunnel was formed](https://www.rfc-editor.org/rfc/rfc9110#section-9.3.6), so Requests raises a `ProxyError` that mentions 407. The site never sees you.
- On an `http://` page, you get a normal response with status 407.

Timeouts can take longer than you set. Requests says its timeouts are [not wall-clock time](https://requests.readthedocs.io/en/latest/user/advanced/#timeouts), and a host with both IPv4 and IPv6 addresses can double the connect wait.

A [429](https://scrapenews.com/errors/429-too-many-requests.md) means too many requests. If it carries `Retry-After`, wait that long.

A [403](https://scrapenews.com/errors/403-forbidden.md) through the proxy but not from home points at the proxy’s IP. [Residential vs datacenter proxies](https://scrapenews.com/guides/residential-vs-datacenter-proxies.md) shows which kind of IP to try next.

## Related

- [Proxy types](https://scrapenews.com/guides/residential-vs-datacenter-proxies.md)  (Read next)
- [Why am I blocked? How to avoid getting blocked while scraping](https://scrapenews.com/guides/how-to-avoid-getting-blocked-scraping.md)  (Previous)
- [Datacenter proxies](https://scrapenews.com/compare/datacenter-proxies.md)  (Compare)
- [407 Proxy Authentication Required](https://scrapenews.com/errors/407-proxy-authentication-required.md)  (Error)
- [ERR_PROXY_CONNECTION_FAILED](https://scrapenews.com/errors/err-proxy-connection-failed.md)  (Error)
- [ERR_TUNNEL_CONNECTION_FAILED and ERR_PROXY_CONNECTION_FAILED](https://scrapenews.com/errors/err-tunnel-connection-failed.md)  (Error)

## Tools for this

| Tool | Price |
| --- | --- |
| [Astro Residential Proxies](https://scrapenews.com/compare/astroproxy.md): Rotating home-user IPs in 100+ countries, with rotating and sticky sessions, bought as ports and paid by traffic. | $7.87/GB |
| [Byteful Residential Proxies](https://scrapenews.com/compare/byteful.md): Rotating home IPs from 35 million+ addresses in 195+ countries, sold by the gigabyte, with sticky sessions up to 24 hours. | $3.25/GB |
| [Decodo](https://scrapenews.com/compare/decodo.md): Decodo Datacenter Proxies: Shared and dedicated datacenter proxies from Decodo, sold per GB or per IP on monthly plans. Decodo ISP Proxies: Static residential (ISP) proxies from Decodo, sold per IP per month, with per-GB and dedicated options. Decodo Residential Proxies: Rotating residential proxies from Decodo (formerly Smartproxy), billed per GB with pay as you go or monthly plans. · Datacenter Proxies **$0.60/GB** ISP Proxies **$3.33/IP/mo** Residential Proxies **$4.00/GB** | $0.60/GB |
| [IPFoxy Residential Proxies](https://scrapenews.com/compare/ipfoxy.md): Rotating home IPs from a pool of 90 million in 200+ countries. Rotates per request or keeps a sticky session. HTTP and SOCKS5. | $5.99/GB |
| [Oxylabs](https://scrapenews.com/compare/oxylabs.md): Oxylabs Datacenter Proxies: Shared and dedicated datacenter proxies from Oxylabs, priced per IP or per GB from one credit plan. Oxylabs Residential Proxies: Rotating residential proxies from Oxylabs, billed per GB from one credit plan that also pays for their other proxies and APIs. · Datacenter Proxies **$1.00/IP/mo** Residential Proxies **$5.00/GB** | $1.00/IP/mo |
| [Proxidize Mobile Proxies](https://scrapenews.com/compare/proxidize.md): Pooled 4G/5G mobile IPs with city and ASN targeting, rotating or sticky sessions up to 3 days. | $2.00/GB |
| [Requests](https://scrapenews.com/compare/requests.md): The classic simple HTTP library for Python. | Free |
| [Roundproxies Residential Proxies](https://scrapenews.com/compare/roundproxies.md): Rotating home IPs from real devices in 195+ countries. You buy a bucket of data in GB. | $7.00/GB |
| [Webshare Datacenter Proxies](https://scrapenews.com/compare/webshare.md): Fast datacenter IP addresses in shared, private or dedicated form, with 10 free proxies to start. | $0.03/IP/mo |

## Sources

1. [Requests docs: Proxies](https://requests.readthedocs.io/en/latest/user/advanced/#proxies) requests.readthedocs.io
2. [ipify: A Simple Public IP Address API](https://www.ipify.org) ipify.org
3. [Requests docs: Timeouts](https://requests.readthedocs.io/en/latest/user/advanced/#timeouts) requests.readthedocs.io
4. [RFC 9110 §9.3.6: CONNECT](https://www.rfc-editor.org/rfc/rfc9110#section-9.3.6) rfc-editor.org
5. [MDN: Retry-After header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Retry-After) developer.mozilla.org
6. [HTTP Archive Web Almanac 2025: Page Weight](https://almanac.httparchive.org/en/2025/page-weight) almanac.httparchive.org
7. [Oxylabs: ISP proxy pricing ($5 welcome credit, any product)](https://oxylabs.io/pricing/isp-proxies) oxylabs.io
8. [Oxylabs docs: Session Control & IP Rotation](https://developers.oxylabs.io/products/proxies/residential-proxies/session-control) developers.oxylabs.io
9. [Mehanna, Rudametkin, Laperdrix, Vastel: Free Proxies Unmasked (MADWeb'24, 2024)](https://arxiv.org/abs/2403.02445) arxiv.org
10. [Mani, Vaidya, Dworken, Sherr (Georgetown): An Extensive Evaluation of the Internet's Open Proxies (2018)](https://arxiv.org/abs/1806.10258) arxiv.org
11. [MaxMind: GeoIP API responses (is_public_proxy)](https://dev.maxmind.com/geoip/docs/web-services/responses/) dev.maxmind.com
12. [Astro: FAQ (free trial)](https://astroproxy.com/en/faq) astroproxy.com
13. [Byteful: Residential proxies (free trial)](https://byteful.com/proxy-service/residential-proxies) byteful.com
14. [Decodo: Residential proxy pricing (free trial)](https://decodo.com/proxies/residential-proxies/pricing) decodo.com
15. [Decodo: Do you offer a free trial?](https://decodo.com/faq/billing/do-you-offer-a-free-trial) decodo.com
16. [IPFoxy: Free trial](https://www.ipfoxy.com/help/docs/c2WaoP) ipfoxy.com
17. [Oxylabs: Residential proxy pricing ($5 welcome credit)](https://oxylabs.io/pricing/residential-proxy-pool) oxylabs.io
18. [Proxidize: Residential proxies (free trial)](https://proxidize.com/residential-proxies-pricing/) proxidize.com
19. [Roundproxies: Residential proxy pool (free trial)](https://roundproxies.com/residential-proxies-pool/) roundproxies.com
20. [Webshare: Pricing (free plan)](https://www.webshare.io/pricing) webshare.io
21. [ProxyScrape: Residential proxies (paid trial)](https://proxyscrape.com/products/residential-proxies) proxyscrape.com
22. [ProxyEmpire: Pricing (paid trial)](https://proxyempire.io/pricing/) proxyempire.io
23. [NodeMaven: Pricing (paid trial)](https://nodemaven.com/pricing/) nodemaven.com
24. [Infatica: Pricing (paid trial)](https://infatica.io/pricing/) infatica.io

## Up

- [Home](https://scrapenews.com/index.md)
- [Guides](https://scrapenews.com/guides.md)
