Free proxy for web scraping: get one, plug it in, test it
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.
You need one when:
- a site blocks your IP (403 errors, endless CAPTCHAs; see how to avoid getting blocked)
- 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 theCONNECTmethod. After that, RFC 9110 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
-
Get one: a free trial from the table below gives you a host, port, username and password.
-
Keep the login out of your code: put it in environment variables or a
.envfile that git ignores. -
Test it alone. Ask an IP-echo service (a site that tells you your IP) who you are, without the proxy, then through it:
curl https://api.ipify.org curl -x "$PROXY_HOST:$PROXY_PORT" -U "$PROXY_USER:$PROXY_PASS" https://api.ipify.orgTwo 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.
-
Wire it in: paste the prompt below into ChatGPT, Claude or your coding assistant.
-
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 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:
-xsets the proxy,-Usends the proxy login. Oxylabs’ docs use the same pattern.- The double quotes keep a password with symbols in one piece.
- ipify answers with your IP in plain text. Add
?format=jsonto get{"ip":"…"}, or useapi64.ipify.orgif 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.
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_PROXYoverwrite proxies set on a session, its docs warn. Passing the proxy on every request closes that gap. - Rule 5: Requests has no timeout by default, 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-Afterheader comes as seconds (120) or a date, MDN shows. 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 |
| Byteful | 1 GB residential | residential page |
| Decodo | 100 MB for 3 days (residential, datacenter, ISP) | pricing, FAQ |
| IPFoxy | 200 MB rotating data plus 3 days of shared IPv4 and IPv6, after you add a phone number | help page |
| Oxylabs | $5 welcome credit | pricing |
| Proxidize | 7 days: 1 GB residential, 1 GB mobile, 1 mobile proxy, after an identity check | residential page |
| Roundproxies | 500 MB residential, valid 24 hours | pool page |
| Webshare | 10 shared proxies, 1 GB a month, no time limit | 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, ProxyEmpire has a $1.97 trial, NodeMaven 750 MB for $3.50, Infatica a $4 7-day trial.
Ready to pay? Compare entry prices by type: residential, datacenter, ISP, mobile.
How far a trial goes depends on what you download. The 2025 Web Almanac 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, 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 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. A 2024 study of over 640,600 proxies from 11 list sites found only 34.5% were active even once 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_proxyflag.
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 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. 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.
You usually pick the mode in the username. At Oxylabs it looks like this:
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 add three options:
sesstimekeeps a session alive for up to 1,440 minutes (24 hours).sessid_oneipbinds 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 |
| 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 |
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, so Requests raises aProxyErrorthat 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, and a host with both IPv4 and IPv6 addresses can double the connect wait.
A 429 means too many requests. If it carries Retry-After, wait that long.
A 403 through the proxy but not from home points at the proxy’s IP. Residential vs datacenter proxies shows which kind of IP to try next.
Related
Tools for this
| Tool | Price |
|---|---|
| $7.87/GB | |
| $3.25/GB | |
| $0.60/GB | |
| $5.99/GB | |
| $1.00/IP/mo | |
| $2.00/GB | |
| Free | |
| $7.00/GB | |
| $0.03/IP/mo |
Sources
Requests docs: Proxies requests.readthedocs.io
ipify: A Simple Public IP Address API ipify.org
Requests docs: Timeouts requests.readthedocs.io
RFC 9110 §9.3.6: CONNECT rfc-editor.org
MDN: Retry-After header developer.mozilla.org
HTTP Archive Web Almanac 2025: Page Weight almanac.httparchive.org
Oxylabs: ISP proxy pricing ($5 welcome credit, any product) oxylabs.io
Oxylabs docs: Session Control & IP Rotation developers.oxylabs.io
Mehanna, Rudametkin, Laperdrix, Vastel: Free Proxies Unmasked (MADWeb'24, 2024) arxiv.org
Mani, Vaidya, Dworken, Sherr (Georgetown): An Extensive Evaluation of the Internet's Open Proxies (2018) arxiv.org
MaxMind: GeoIP API responses (is_public_proxy) dev.maxmind.com
Astro: FAQ (free trial) astroproxy.com
Byteful: Residential proxies (free trial) byteful.com
Decodo: Residential proxy pricing (free trial) decodo.com
Decodo: Do you offer a free trial? decodo.com
IPFoxy: Free trial ipfoxy.com
Oxylabs: Residential proxy pricing ($5 welcome credit) oxylabs.io
Proxidize: Residential proxies (free trial) proxidize.com
Roundproxies: Residential proxy pool (free trial) roundproxies.com
Webshare: Pricing (free plan) webshare.io
ProxyScrape: Residential proxies (paid trial) proxyscrape.com
ProxyEmpire: Pricing (paid trial) proxyempire.io
NodeMaven: Pricing (paid trial) nodemaven.com
Infatica: Pricing (paid trial) infatica.io