<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by ProxiesThatWork on Medium]]></title>
        <description><![CDATA[Stories by ProxiesThatWork on Medium]]></description>
        <link>https://medium.com/@proxiesthatwork?source=rss-41bcc2cf79f0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*cau3xNCNabeOKjqDJU63gA.png</url>
            <title>Stories by ProxiesThatWork on Medium</title>
            <link>https://medium.com/@proxiesthatwork?source=rss-41bcc2cf79f0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 10:27:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@proxiesthatwork/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Best Cheap Datacenter Proxies (2026): Ranked by Cost per IP]]></title>
            <link>https://medium.com/@proxiesthatwork/best-cheap-datacenter-proxies-5c070eec5172?source=rss-41bcc2cf79f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c070eec5172</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[datacenter-proxies]]></category>
            <category><![CDATA[data-collection]]></category>
            <category><![CDATA[proxy]]></category>
            <category><![CDATA[web-scraping]]></category>
            <dc:creator><![CDATA[ProxiesThatWork]]></dc:creator>
            <pubDate>Mon, 16 Nov 2026 19:48:04 GMT</pubDate>
            <atom:updated>2026-11-16T19:48:04.234Z</atom:updated>
            <content:encoded><![CDATA[<h4>What 1,000 IPs actually cost at eight providers, and the bandwidth caps, minimums and shared-IP trade-offs behind each price.</h4><figure><img alt="best cheap datacenter proxies" src="https://cdn-images-1.medium.com/max/1024/1*pp22BPjhhpz9zQ9iXH1jfA.png" /></figure><p>The cheapest datacenter proxies in 2026 cost about two cents per IP. At 1,000 IPs a month, <strong>ProxiesThatWork</strong> costs $20, <strong>PlainProxies</strong> €20, <strong>ProxyScrape</strong> $25 and <strong>Webshare</strong> $26.91. Semi-dedicated and dedicated IPs cost far more: $0.75 to $1.57 per IP. This list ranks eight providers by what 1,000 IPs actually cost, and shows the limits behind each price.</p><h3>TL;DR</h3><ul><li><strong>Cheapest per IP:</strong> ProxiesThatWork, at $0.02 per IP on every plan, from $3 for 150 IPs.</li><li><strong>Cheapest with bandwidth options:</strong> PlainProxies, at €20 for a 1,000-IP pool with 250 GB, or €50 with unlimited bandwidth.</li><li><strong>Cheapest shared pool with SOCKS5:</strong> ProxyScrape, at $25 for 1,000 IPs with 250 GB.</li><li><strong>Best for starting small:</strong> Webshare, with 10 free proxies and 100 IPs for $2.99.</li><li><strong>Cheapest near-dedicated IPs:</strong> Rayobyte semi-dedicated, from $0.75 per IP, shared by up to 3 users.</li><li><strong>Cheapest dedicated IPs:</strong> Squid Proxies, at $0.80 per IP on its 500-IP plan.</li></ul><h3>Comparison table</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sxstuRx-PFXvGI_MBjsu2w.png" /><figcaption>Comparison of 8 cheap datacenter proxy providers. Prices checked November 10–12, 2026.</figcaption></figure><h3>How we evaluated</h3><p><strong>We ranked providers by the monthly cost of 1,000 datacenter IPs, cheapest first.</strong> Where a provider doesn’t publish a 1,000-IP price, we used its largest published tier below 1,000. ProxiesThatWork and PlainProxies cost the same per IP in their own currencies; ProxiesThatWork ranks first because its smallest plan is cheaper ($3 for 150 IPs).</p><p><strong>What we checked for each provider:</strong></p><ol><li><strong>Cost per IP at 1,000 IPs.</strong> The headline number most buyers compare.</li><li><strong>Smallest plan.</strong> What it costs to start, and the minimum number of IPs.</li><li><strong>Bandwidth.</strong> Whether the price includes a cap, and what removing it costs.</li><li><strong>IP type.</strong> Shared, semi-dedicated or dedicated. This explains most of the price gap.</li><li><strong>Locations.</strong> How many countries or cities the plan covers.</li></ol><p><strong>Sources.</strong> Every price comes from the provider’s own pricing page, checked between November 10 and 12, 2026. We did not use coupon codes. Where a page shows a discounted price, we used the price you would pay at checkout.</p><p><strong>What we didn’t score.</strong> Speed and success rates. They depend on your target site, so test them yourself before you scale (see “How to choose”).</p><p><strong>Disclosure.</strong> ProxiesThatWork publishes this list and appears in it. It ranks first because it has the lowest published price per IP at 1,000 IPs. Its limits are listed below with everyone else’s.</p><h3>The 8 cheapest datacenter proxy providers</h3><h3>1. ProxiesThatWork</h3><p><strong>Best for:</strong> the lowest cost per IP.</p><p>ProxiesThatWork charges $0.02 per IP on every plan, so 1,000 IPs cost $20 a month. It also publishes <a href="https://www.proxiesthatwork.com/compatible-websites">which websites its proxies work on</a>, retested every 5 minutes, so you can check your target before you buy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_sx4RofozFTY5bymwRKh0w.png" /><figcaption><em>ProxiesThatWork’s plans, all at $0.02 per proxy. Captured November 12, 2026.</em></figcaption></figure><ul><li><strong>Plans:</strong> 150 IPs for $3, 1,000 for $20, 2,500 for $50.</li><li><strong>Protocols and auth:</strong> HTTP/HTTPS. IP authentication.</li><li><strong>Locations:</strong> multiple US cities.</li><li><strong>IP type:</strong> shared datacenter IPs, sold by quantity. There’s no separate dedicated tier.</li><li><strong>Bandwidth:</strong> not stated. Ask support if it matters for your workload.</li><li><strong>Guarantee:</strong> 7-day money-back guarantee. Cancel any time.</li></ul><p><strong>Pros</strong></p><ul><li>Lowest price per IP on this list.</li><li>Same per-IP price from 150 IPs up, so small buyers aren’t penalized.</li><li>Per-site compatibility results before you buy.</li></ul><p><strong>Cons</strong></p><ul><li>US locations only.</li><li>No SOCKS5 or username/password auth listed.</li><li>Shared IPs, with no dedicated option.</li><li>No published bandwidth terms.</li></ul><p><strong>Pricing (checked Nov 12, 2026):</strong> $3/month for 150 proxies, $20 for 1,000, $50 for 2,500.</p><h3>2. PlainProxies</h3><p><strong>Best for:</strong> big pools where you want to choose your bandwidth.</p><p>PlainProxies sells a 1,000-IP datacenter pool for €20 a month with 250 GB. The same pool costs €27 with 1 TB, or €50 with unlimited bandwidth. Its IPs are shared, but it says it keeps “strict user-to-IP ratios” to prevent overcrowding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0vh0qPzeRXfhaC8WFzc0Gg.png" /><figcaption><em>PlainProxies’ datacenter pricing at 250 GB and 1,000 IPs. Captured November 12, 2026.</em></figcaption></figure><ul><li><strong>Plans:</strong> €20 (250 GB), €27 (1 TB) or €50 (unlimited), each with 1,000 IPs.</li><li><strong>Note:</strong> its pricing FAQ says plans start at €27 for 1 TB. The price box on the same page shows €20 for 250 GB.</li><li><strong>Locations:</strong> 6 cities in 5 countries: Berlin, Frankfurt, Amsterdam, London, Toronto and Auburn (US), with 15,360+ IPs in total.</li><li><strong>Over the cap:</strong> you’re notified before you hit the limit, and you can top up or upgrade.</li></ul><p><strong>Pros</strong></p><ul><li>Ties for the lowest price per IP, in euros.</li><li>Clear bandwidth tiers, including unlimited.</li></ul><p><strong>Cons</strong></p><ul><li>Prices in euros, so the dollar cost moves with the exchange rate.</li><li>Pools start at 100 IPs, but we compared the 1,000-IP price only.</li><li>Shared pool, not IPs reserved for you.</li></ul><p><strong>Pricing (checked Nov 12, 2026):</strong> €20/month for 1,000 IPs with 250 GB. €27 with 1 TB. €50 with unlimited bandwidth.</p><h3>3. ProxyScrape</h3><p><strong>Best for:</strong> a cheap shared pool with SOCKS5.</p><p>ProxyScrape’s Premium Datacenter plan gives you a 1,000-IP pool with 250 GB for $25 a month. The pool draws from 40,000 shared datacenter IPs. It supports HTTP and SOCKS5, with UDP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bxbyTi7cct8FabF9usTHcg.png" /><figcaption><em>ProxyScrape’s Premium Datacenter pricing. Captured November 10, 2026.</em></figcaption></figure><ul><li><strong>Pool:</strong> 1,000 to 40,000 IPs.</li><li><strong>Bandwidth:</strong> 250 GB, 1 TB, 5 TB or unlimited. Fair usage limits apply to unlimited.</li><li><strong>Locations:</strong> 9 global locations.</li><li><strong>Protocols:</strong> HTTP and SOCKS5, with UDP.</li></ul><p><strong>Pros</strong></p><ul><li>SOCKS5 with UDP at a shared-pool price.</li><li>Rental periods as short as 1 day.</li></ul><p><strong>Cons</strong></p><ul><li>Smallest pool is 1,000 IPs.</li><li>Shared IPs.</li><li>Fair usage limits apply to unlimited bandwidth.</li></ul><p><strong>Pricing (checked Nov 10, 2026):</strong> $25/month for a 1,000-IP pool with 250 GB.</p><h3>4. Webshare</h3><p><strong>Best for:</strong> starting small, or for free.</p><p>Webshare is the cheapest way to start. Its free plan gives you 10 shared proxies with 1 GB a month. Paid plans start at $2.99 for 100 IPs, and 1,000 IPs cost $26.91.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mXevjNNIAUlpqO7j4hlDng.png" /><figcaption><em>Webshare’s proxy server plans. Captured November 10, 2026.</em></figcaption></figure><ul><li><strong>Bandwidth:</strong> 250 GB included, with larger amounts up to unlimited.</li><li><strong>Locations:</strong> 50+ countries.</li><li><strong>IP type:</strong> shared. Webshare says the prices on its pricing page are for shared proxies; private (1–2 users) and dedicated proxies cost more.</li><li><strong>Protocols and auth:</strong> HTTP and SOCKS5. Username/password or IP authorization.</li></ul><p><strong>Pros</strong></p><ul><li>Free plan to test with.</li><li>Cheapest 100-IP plan on this list.</li><li>The widest location choice among the shared options.</li></ul><p><strong>Cons</strong></p><ul><li>Shared IPs on the cheapest plans.</li><li>The $26.91 price for 1,000 IPs includes a 10% discount on the listed $29.90.</li></ul><p><strong>Pricing (checked Nov 12, 2026):</strong> free (10 IPs). $2.99/month for 100. $26.91 for 1,000.</p><h3>5. Rayobyte (semi-dedicated)</h3><p><strong>Best for:</strong> near-dedicated IPs for less.</p><p>Rayobyte’s semi-dedicated datacenter IPs are shared by at most 3 users. In the US, they cost $1 per IP for 5–99 IPs, $0.85 for 100–999, and $0.75 for 1,000–4,999. The page lists bandwidth as “unlimited*”, with an asterisk, so check its terms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7eI_yOZGLYzdu5SBt0PJHw.png" /><figcaption><em>Rayobyte’s semi-dedicated datacenter pricing for the US. Captured November 12, 2026.</em></figcaption></figure><ul><li><strong>Users per IP:</strong> up to 3.</li><li><strong>Locations:</strong> datacenter IPs in 11 countries.</li><li><strong>Dedicated option:</strong> fully dedicated IPs start at $2.50 per IP in the US.</li></ul><p><strong>Pros</strong></p><ul><li>Far fewer users per IP than a shared pool.</li><li>Bandwidth not metered per GB.</li><li>Volume discounts start at 100 IPs.</li></ul><p><strong>Cons</strong></p><ul><li>37 times the per-IP price of the shared options.</li><li>UK IPs cost more ($1.20 per IP).</li></ul><p><strong>Pricing (checked Nov 12, 2026):</strong> US semi-dedicated $1/IP (5–99), $0.85 (100–999), $0.75 (1,000–4,999) per month.</p><h3>6. Squid Proxies</h3><p><strong>Best for:</strong> the cheapest dedicated IPs.</p><p>Squid Proxies sells dedicated datacenter IPs with unlimited bandwidth. The price per IP falls from $1.50 at 10 IPs to $0.80 at 500 IPs. Plans above 500 IPs are quoted on request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sIHr6NWELEzCtOxYvDxsjA.png" /><figcaption><em>Squid Proxies’ dedicated datacenter plans. Captured November 12, 2026.</em></figcaption></figure><ul><li><strong>Plans:</strong> 10 IPs for $15, 50 for $55, 100 for $100, 500 for $400.</li><li><strong>IP type:</strong> dedicated, unlimited bandwidth.</li></ul><p><strong>Pros</strong></p><ul><li>Cheapest dedicated IPs on this list at 500 IPs.</li><li>Unlimited bandwidth on every plan.</li></ul><p><strong>Cons</strong></p><ul><li>No published price for 1,000 IPs.</li><li>$1.50 per IP on the smallest plan.</li></ul><p><strong>Pricing (checked Nov 12, 2026):</strong> $15/month for 10 IPs, $55 for 50, $100 for 100, $400 for 500.</p><h3>7. InstantProxies</h3><p><strong>Best for:</strong> testing your exact target before you buy.</p><p>InstantProxies sells dedicated datacenter IPs at $1 each, from $5 a month, with unlimited bandwidth. Its pricing page lets you run a live proxy test against your own URL before you pay.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bMAEc_XneI8pmb23Vk9vlQ.png" /><figcaption><em>InstantProxies’ checkout for 10 datacenter proxies. Captured November 12, 2026.</em></figcaption></figure><ul><li><strong>IP type:</strong> dedicated, unlimited bandwidth.</li><li><strong>Guarantee:</strong> 7-day money-back.</li></ul><p><strong>Pros</strong></p><ul><li>Test your target site before buying.</li><li>Low entry price ($5).</li></ul><p><strong>Cons</strong></p><p><strong>Pricing (checked Nov 12, 2026):</strong> $1 per proxy, from $5/month. At checkout, 10 proxies cost $10/month with unlimited bandwidth.</p><h3>8. IPRoyal</h3><p><strong>Best for:</strong> city-level targeting.</p><p>IPRoyal sells dedicated datacenter IPs in 50+ countries, with state and city targeting. It costs $1.57 per IP on 30-day plans and $1.39 on 90-day plans. You can buy an exact number of proxies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GTqNrTbQFAUEY4taDRCgtg.png" /><figcaption><em>IPRoyal’s datacenter pricing by plan length. Captured November 12, 2026.</em></figcaption></figure><ul><li><strong>Protocols and auth:</strong> HTTP(S) and SOCKS5. Username/password or IP whitelisting.</li><li><strong>Locations:</strong> 50+ countries, with state and city targeting.</li></ul><p><strong>Pros</strong></p><ul><li>The most location control on this list.</li><li>Buy any quantity.</li></ul><p><strong>Cons</strong></p><ul><li>The highest price per IP on this list.</li><li>The lowest rate needs a 90-day plan.</li></ul><p><strong>Pricing (checked Nov 12, 2026):</strong> $1.57/proxy (30 days), $1.48 (60 days), $1.39 (90 days).</p><h3>What “cheap” really costs</h3><p><strong>The sticker price per IP hides three trade-offs: who else uses the IP, how much traffic you get, and how many IPs you must buy.</strong></p><p><strong>Shared, semi-dedicated or dedicated.</strong> The two-cent plans from ProxiesThatWork, PlainProxies, ProxyScrape and Webshare are all shared. Other customers use the same IPs, so a site that blocks one user can block you too. Semi-dedicated IPs (Rayobyte) cap sharing at 3 users. Dedicated IPs (Squid Proxies, InstantProxies, IPRoyal) are yours alone, and cost 30 to nearly 80 times more per IP.</p><p><strong>Bandwidth caps.</strong> The cheapest shared plans include 250 GB. That’s plenty for price checks and API calls, but not for downloading images or video. Removing the cap can more than double the price: PlainProxies goes from €20 to €50. Squid Proxies and InstantProxies include unlimited bandwidth on their dedicated plans.</p><p><strong>Minimum purchases.</strong> A low per-IP price can still mean a large bill. ProxyScrape and PlainProxies show prices from 1,000 IPs. ProxiesThatWork starts at 150 IPs and Webshare at 100 (or 10 free). Rayobyte starts at 5 IPs, Squid Proxies at 10, and InstantProxies at $5 a month.</p><p><strong>Per-GB billing.</strong> Some providers skip per-IP pricing. DataImpulse, for example, charges $0.50 per GB for datacenter traffic, and the traffic doesn’t expire. That suits irregular jobs better than a monthly IP plan.</p><h3>How to choose</h3><p><strong>Start with the IP type your target site tolerates, then compare price at your real volume.</strong></p><ol><li><strong>Test on shared IPs first.</strong> For most price checks, API calls and public data, a two-cent shared IP works. Try a free plan or a $3 plan before paying more.</li><li><strong>Move up only if you get blocked.</strong> If shared IPs fail on your target, try semi-dedicated, then dedicated.</li><li><strong>Price at your real quantity.</strong> At 100 IPs, Webshare ($2.99) and ProxiesThatWork ($3 for 150) are cheapest. At 1,000 IPs, ProxiesThatWork, PlainProxies and ProxyScrape lead.</li><li><strong>Check the bandwidth you need.</strong> Estimate your monthly traffic. If it’s over 250 GB, compare the cost of the next bandwidth tier.</li><li><strong>Measure success, not just price.</strong> Send 50–100 requests to your real target and count the ones that work. A cheap IP that fails half the time costs double. Our list of <a href="https://www.proxiesthatwork.com/blog/budget-proxy-providers-uptime-success-data">budget proxy providers that publish uptime and success data</a> shows which providers let you check this before you buy.</li></ol><h3>FAQ</h3><h4>What is the cheapest datacenter proxy in 2026?</h4><p>ProxiesThatWork has the lowest published price per IP, at $0.02 on every plan. 1,000 IPs cost $20 a month. PlainProxies charges €20 for 1,000 IPs with 250 GB, and ProxyScrape charges $25.</p><h4>Why are some datacenter proxies 50 times more expensive?</h4><p>They’re usually dedicated. The two-cent IPs on this list are shared with other customers, while a $1 IP is reserved for you alone. Dedicated IPs are less likely to be blocked because of other users’ traffic.</p><h4>Are cheap datacenter proxies good enough?</h4><p>For many jobs, yes. Shared datacenter IPs work for price monitoring, API calls and public data on sites without strong bot protection. Test them on your target before you scale.</p><h4>Do cheap datacenter proxies include unlimited bandwidth?</h4><p>Usually not. The cheapest shared plans include about 250 GB a month, and ProxiesThatWork doesn’t publish a bandwidth limit either way. Dedicated plans from Squid Proxies and InstantProxies include unlimited bandwidth, and PlainProxies sells an unlimited tier for €50 for 1,000 IPs.</p><h4>What is the cheapest way to try datacenter proxies?</h4><p>Webshare’s free plan gives you 10 shared proxies with 1 GB a month. Among paid plans, ProxiesThatWork starts at $3 for 150 IPs and Webshare at $2.99 for 100.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c070eec5172" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Async Scraping with aiohttp and Rotating Proxies]]></title>
            <link>https://medium.com/@proxiesthatwork/async-scraping-aiohttp-rotating-proxies-71c40a9ba610?source=rss-41bcc2cf79f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/71c40a9ba610</guid>
            <category><![CDATA[asyncio]]></category>
            <category><![CDATA[proxy]]></category>
            <category><![CDATA[developer-tips]]></category>
            <category><![CDATA[web-scraping]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[ProxiesThatWork]]></dc:creator>
            <pubDate>Wed, 26 Aug 2026 12:11:36 GMT</pubDate>
            <atom:updated>2026-08-26T12:11:36.316Z</atom:updated>
            <content:encoded><![CDATA[<h4>A hands-on guide to rotating proxies correctly inside concurrent aiohttp requests: no dropped tasks, no dead proxies stalling the pool.</h4><figure><img alt="Python async scraper sending concurrent requests through rotating proxy servers to multiple web pages." src="https://cdn-images-1.medium.com/max/1024/1*5715JGQuBmhWoK1W3xIlgA.png" /></figure><p>To scrape asynchronously with rotating proxies in aiohttp, assign a proxy per request rather than per session, pull from a proxy pool with a semaphore to cap concurrency, and handle proxy failures per-task so one dead IP doesn’t block the rest of your event loop. Reusing a single session with a single proxy across concurrent tasks is the most common mistake, it defeats the point of rotation entirely.</p><h3>Why Sync Rotation Logic Doesn’t Translate Directly</h3><p>If you’re used to <a href="https://medium.com/@proxiesthatwork/stop-getting-blocked-how-to-rotate-proxies-in-python-for-web-scraping-beginner-guide-cb367bd87bec">rotating proxies in a synchronous Python script</a>, grab a proxy, make a request, move to the next , that pattern breaks down under asyncio. In sync code, one request finishes before the next starts, so proxy state is easy to reason about. In async code, dozens of requests can be in flight at once, all potentially needing a <em>different</em> proxy, all potentially failing at different times for different reasons.</p><p>The core shift: rotation stops being “pick the next proxy in a list” and becomes “hand out a proxy per task, safely, under concurrency.”</p><h3>Basic Setup: One Proxy Per Request</h3><p>Unlike requests, aiohttp doesn&#39;t take a proxies dictionary on the session. You pass the proxy per-request:</p><pre>import aiohttp<br>import asyncio<br><br>async def fetch(session, url, proxy):<br>    try:<br>        async with session.get(url, proxy=proxy, timeout=aiohttp.ClientTimeout(total=10)) as response:<br>            return await response.text()<br>    except Exception as e:<br>        print(f&quot;Failed with {proxy}: {e}&quot;)<br>        return None</pre><p>Note the proxy argument lives on the request, not the session, this is what makes per-task rotation possible in the first place. The timeout argument matters just as much here as it does in sync code; see <a href="https://medium.com/@proxiesthatwork/python-requests-timeout-errors-with-proxies-725eb04ac6a5">how missing timeouts cause hung Python proxy requests</a> if you&#39;re not already setting one by default.</p><h3>Building a Simple Async Proxy Pool</h3><p>A minimal rotating pool just needs to hand out the next proxy in a cycle:</p><pre>import itertools<br><br>class ProxyPool:<br>    def __init__(self, proxies):<br>        self._cycle = itertools.cycle(proxies)<br><br>    def get(self):<br>        return next(self._cycle)<br><br>proxy_pool = ProxyPool([<br>    &quot;http://user:pass@proxy1:port&quot;,<br>    &quot;http://user:pass@proxy2:port&quot;,<br>    &quot;http://user:pass@proxy3:port&quot;,<br>])</pre><p>itertools.cycle is thread-unsafe under true parallelism, but for asyncio&#39;s single-threaded event loop it&#39;s safe enough for most scraping workloads, each .get() call runs to completion before the next coroutine gets a turn.</p><h3>Controlling Concurrency with a Semaphore</h3><p>Firing off hundreds of requests simultaneously overwhelms both your proxy pool and the target site. A semaphore caps how many requests run at once:</p><pre>async def bounded_fetch(session, url, proxy_pool, semaphore):<br>    async with semaphore:<br>        proxy = proxy_pool.get()<br>        return await fetch(session, url, proxy)<br><br>async def run(urls, proxies, concurrency=10):<br>    proxy_pool = ProxyPool(proxies)<br>    semaphore = asyncio.Semaphore(concurrency)<br><br>    async with aiohttp.ClientSession() as session:<br>        tasks = [bounded_fetch(session, url, proxy_pool, semaphore) for url in urls]<br>        return await asyncio.gather(*tasks, return_exceptions=True)</pre><p>Start conservative: 5 to 10 concurrent requests per proxy is a reasonable baseline before tuning up, depending on how sensitive your target is. Pushing concurrency too high per proxy is one of the more common ways <a href="https://medium.com/@proxiesthatwork/why-proxy-rotation-fails-at-scale-609fd56bd80b">proxy rotation breaks down at scale</a>, async or not.</p><h3>Handling Failed Proxies Without Killing the Batch</h3><p>asyncio.gather(*tasks, return_exceptions=True) matters here: without return_exceptions=True, one failed request can cancel the entire batch. With it, failures come back as exception objects alongside your successful results, so you can filter and retry just the failed ones instead of losing everything.</p><p>For status-code-aware retry logic, when to rotate immediately versus back off, the underlying decision tree is the same whether you’re sync or async, and <a href="https://medium.com/@proxiesthatwork/proxy-rotation-429-403-5xx-retry-strategies-9d7d0c82b5d1">how proxy rotation should respond to 429, 403, and 5xx responses</a> applies directly here.</p><h3>Removing Dead Proxies from the Pool Mid-Run</h3><p>A production-grade pool should stop handing out proxies that are consistently failing:</p><pre>class ProxyPool:<br>    def __init__(self, proxies):<br>        self.proxies = list(proxies)<br>        self.failures = {p: 0 for p in self.proxies}<br><br>    def get(self):<br>        return min(self.proxies, key=lambda p: self.failures[p])<br><br>    def report_failure(self, proxy):<br>        self.failures[proxy] += 1<br>        if self.failures[proxy] &gt;= 3:<br>            self.proxies.remove(proxy)</pre><p>This swaps blind round-robin for a “least-failed” strategy, so a struggling proxy naturally gets used less without needing to track anything more complex. If you want to get more specific than a plain failure count, distinguishing a timeout from a 403 from a connection refused, <a href="https://medium.com/@proxiesthatwork/common-proxy-errors-403-429-timeout-32a05b2994c8">this breakdown of common proxy errors</a> covers what each one actually means and how it should change your handling.</p><h3>Why This Fails at Scale If You Skip Session Reuse</h3><p>Opening a new ClientSession per request instead of sharing one across your batch adds connection overhead per task, exactly the kind of inefficiency async scraping is supposed to eliminate. Keep one session for the life of the run, and pass proxies per-request as shown above rather than per-session.</p><p>If you’re still deciding which library fits your workload, <a href="https://medium.com/@proxiesthatwork/httpx-vs-requests-vs-aiohttp-for-proxy-based-web-scraping-ac3b7118c245">how aiohttp compares to requests and httpx for proxy-based scraping</a> breaks down the trade-offs in more depth.</p><h3>Putting It Together</h3><p>A production async scraper with rotation typically needs: a session shared across the batch, a semaphore to bound concurrency, a proxy pool that deprioritizes failing IPs, and return_exceptions=True so individual failures don&#39;t take down the run. None of these pieces are complicated on their own , the failures usually come from mixing sync-style assumptions into async code, particularly reusing one proxy across a whole session instead of assigning it per request.</p><p>If your proxy pool itself is the bottleneck rather than your async logic, that’s a separate problem, <a href="https://www.proxiesthatwork.com/">clean proxy pools</a> solve it faster than tuning retry logic around bad IPs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71c40a9ba610" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Your Python Proxy Isn’t Working: 10 Common Mistakes]]></title>
            <link>https://medium.com/@proxiesthatwork/why-your-python-proxy-isnt-working-10-common-mistakes-186ea9c73a70?source=rss-41bcc2cf79f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/186ea9c73a70</guid>
            <category><![CDATA[web-scraping]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[developer-tips]]></category>
            <category><![CDATA[proxy]]></category>
            <dc:creator><![CDATA[ProxiesThatWork]]></dc:creator>
            <pubDate>Tue, 25 Aug 2026 13:35:25 GMT</pubDate>
            <atom:updated>2026-08-25T13:35:25.567Z</atom:updated>
            <content:encoded><![CDATA[<h4>10 setup mistakes that look like a dead proxy , and exactly where to fix each one.</h4><figure><img alt="Python logo connected to a proxy server with a red error symbol and warning icon, illustrating a failed Python proxy connection." src="https://cdn-images-1.medium.com/max/1024/1*ArDs7YYtZuQLcVFYnSNTjw.png" /></figure><p>Most “my proxy isn’t working” problems in Python aren’t proxy problems , they’re setup problems. A wrong dictionary format, a missing timeout, blind retries, or treating a 200 response as automatic success will all look like a dead proxy when the proxy is actually fine. This guide walks through the 10 mistakes that cause the vast majority of Python proxy failures, and links to a deeper fix for each one.</p><h3>1. Skipping the Timeout</h3><p>If you don’t set a timeout, a single unresponsive proxy can hang your script indefinitely instead of failing fast. This is one of the most common, and most avoidable, Python proxy mistakes.</p><pre>requests.get(url, proxies=proxies, timeout=5)</pre><p>→ Full breakdown: <a href="https://medium.com/@proxiesthatwork/python-requests-timeout-errors-with-proxies-725eb04ac6a5">How to Handle Python Requests Timeout Errors When Using Proxies</a></p><h3>2. Getting the Proxy Dictionary Format Wrong</h3><p>A surprising number of “broken” proxies are actually just malformed proxies dictionaries: missing the scheme, mixing up http and https keys, or forgetting to wrap credentials into the URL correctly.</p><p>→ Full setup guide: <a href="https://medium.com/@proxiesthatwork/how-to-use-a-proxy-in-python-simple-setup-that-works-26b5a45184a3">How to Use a Proxy in Python: Simple Setup That Works</a></p><h3>3. Never Rotating IPs</h3><p>Sending hundreds of requests from a single IP is the fastest way to get blocked, rate-limited, or silently served fake data. If your script “stops working” after a burst of requests, this is usually why.</p><p>→ Full guide: <a href="https://medium.com/@proxiesthatwork/stop-getting-blocked-how-to-rotate-proxies-in-python-for-web-scraping-beginner-guide-cb367bd87bec">Stop Getting Blocked: How to Rotate Proxies in Python for Web Scraping</a></p><h3>4. Treating 403 and 429 Like Connection Errors</h3><p>A 403 or 429 isn’t a broken proxy , it’s the target site telling you something specific. Handling both the same way (usually: panicking and rotating immediately) wastes good IPs and doesn’t fix the underlying issue.</p><p>→ Full breakdown: <a href="https://medium.com/@proxiesthatwork/common-proxy-errors-403-429-timeout-32a05b2994c8">Common Proxy Errors Explained: 403, 429, Timeout, and Connection Refused</a></p><h3>5. Assuming HTTP 200 Means Success</h3><p>A 200 status code only means the server responded, not that it sent you the page you wanted. Soft blocks, CAPTCHA walls, and empty shells all return 200 while quietly serving you nothing useful.</p><p>→ Full breakdown: <a href="https://medium.com/@proxiesthatwork/soft-blocks-web-scraping-http-200-a5f7c76e5057">Soft Blocks in Web Scraping: Why HTTP 200 Doesn’t Always Mean Success</a></p><h3>6. Getting Proxy Authentication Wrong</h3><p>Confusing IP whitelisting with username/password auth (or trying to mix the two) is a common source of 407 errors that look like the proxy itself is broken.</p><p>→ Full guide: <a href="https://medium.com/@proxiesthatwork/how-proxy-authentication-works-ip-whitelisting-vs-username-password-839f80ab795c">How Proxy Authentication Works (IP Whitelisting vs Username/Password)</a></p><h3>7. Retrying Blindly, Without Backoff</h3><p>Immediately re-sending a failed request through a new proxy, over and over, with no delay, burns through your pool fast and can make your traffic pattern look more suspicious, not less.</p><p>→ Full breakdown: <a href="https://medium.com/@proxiesthatwork/proxy-rotation-429-403-5xx-retry-strategies-9d7d0c82b5d1">How Proxy Rotation Affects 429, 403, and 5xx Retry Strategies</a></p><h3>8. Blaming the Code for a Bad Proxy Pool</h3><p>Sometimes the script is fine and the proxies genuinely are the problem, shared IPs with a burned reputation, inconsistent uptime, or pools that were never suited to the target in the first place.</p><p>→ Full guide: <a href="https://medium.com/@proxiesthatwork/why-your-proxy-gets-blocked-7-reasons-5d16354a5adf">7 Common Reasons Your Proxy Gets Blocked</a></p><h3>9. Ignoring SSL/Certificate Errors (or Silencing Them with verify=False)</h3><p>Slapping verify=False on every request to make an SSL error disappear hides real problems and creates a security blind spot. Most SSL errors through a proxy have a specific, fixable cause.</p><p>→ Full guide: <a href="https://medium.com/@proxiesthatwork/how-to-fix-ssl-certificate-errors-when-using-a-proxy-d550283d4c2d">How to Fix SSL Certificate Errors When Using a Proxy</a></p><h3>10. Not Reusing Sessions</h3><p>Opening a fresh connection for every single request instead of reusing a Session object adds unnecessary overhead and makes concurrent, proxy-based scraping harder to manage cleanly at scale.</p><p>→ Full comparison: <a href="https://medium.com/@proxiesthatwork/httpx-vs-requests-vs-aiohttp-for-proxy-based-web-scraping-ac3b7118c245">HTTPX vs Requests vs AIOHTTP for Proxy-Based Web Scraping</a></p><h3>The Fix Usually Isn’t a New Proxy</h3><p>Before you assume your proxy is dead, work through this list, most “broken” proxies are actually a setup mistake wearing a disguise. And if you’ve ruled all ten out and the proxy really is bad, that’s what <a href="https://www.proxiesthatwork.com/">reliable, tested proxies</a> are for.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=186ea9c73a70" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Use a Proxy in Go and Java: Practical Setup Guide]]></title>
            <link>https://medium.com/@proxiesthatwork/go-java-proxy-setup-guide-8bdcbde75003?source=rss-41bcc2cf79f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/8bdcbde75003</guid>
            <category><![CDATA[web-scraping]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[proxy]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[ProxiesThatWork]]></dc:creator>
            <pubDate>Wed, 19 Aug 2026 12:18:20 GMT</pubDate>
            <atom:updated>2026-08-19T12:18:20.303Z</atom:updated>
            <content:encoded><![CDATA[<h4>A practical developer guide to configuring HTTP and HTTPS proxies in Go and Java, including authentication, rotation, errors, and connection reuse.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zvLcyixoZt3rcAnShfGFDg.png" /></figure><p>Setting a proxy in Go or Java usually takes only a few lines of code. In Go, configure the Transport.Proxy field on an http.Client. In Java, create a Proxy object or configure the HTTP client with a proxy address. For authenticated proxies, credentials normally need to be supplied separately through headers or an authenticator.</p><p>When you start sending automated HTTP requests, adding a proxy is often one of the first infrastructure changes you need. A proxy can route requests through another IP address, separate scraping traffic from your primary network, or let different workers use different endpoints.</p><p>The basic setup is simple in both Go and Java. The bigger challenge is making sure authentication, timeouts, HTTPS requests, and connection reuse behave correctly.</p><p>This guide covers practical implementations for both languages.</p><h3>How Do You Set a Proxy in Go?</h3><p>Go’s standard net/http package supports proxies directly through http.Transport.</p><p>Here is a minimal example:</p><pre>package main<br><br>import (<br>    &quot;fmt&quot;<br>    &quot;io&quot;<br>    &quot;net/http&quot;<br>    &quot;net/url&quot;<br>)<br><br>func main() {<br>    proxyURL, _ := url.Parse(&quot;http://127.0.0.1:8080&quot;)<br><br>    transport := &amp;http.Transport{<br>        Proxy: http.ProxyURL(proxyURL),<br>    }<br><br>    client := &amp;http.Client{<br>        Transport: transport,<br>    }<br><br>    resp, err := client.Get(&quot;https://httpbin.org/ip&quot;)<br>    if err != nil {<br>        panic(err)<br>    }<br>    defer resp.Body.Close()<br><br>    body, _ := io.ReadAll(resp.Body)<br>    fmt.Println(string(body))<br>}</pre><p>The important part is the custom Transport.</p><p>Instead of allowing Go to connect directly to the destination server, http.ProxyURL() tells the transport to send requests through the specified proxy.</p><p>This approach works well when one client consistently uses one proxy endpoint.</p><h3>How Do You Use Proxy Authentication in Go?</h3><p>Many commercial proxy services require a username and password.</p><p>The easiest option is to include the credentials in the proxy URL:</p><pre>proxyURL, _ := url.Parse(<br>    &quot;http://username:password@proxy.example.com:8000&quot;,<br>)</pre><p>Then use that URL with the same transport configuration:</p><pre>transport := &amp;http.Transport{<br>    Proxy: http.ProxyURL(proxyURL),<br>}</pre><p>Go will handle the proxy authorization information during the connection.</p><p>Avoid hardcoding production credentials directly into your source code. Environment variables or secret-management systems are safer choices.</p><p>For example:</p><pre>proxyUser := os.Getenv(&quot;PROXY_USER&quot;)<br>proxyPass := os.Getenv(&quot;PROXY_PASS&quot;)</pre><p>This also makes it easier to deploy the same application across development, staging, and production environments.</p><h3>How Do You Set a Proxy in Java?</h3><p>Java has supported proxies for years, but the exact setup depends on which HTTP client you use.</p><p>For Java’s standard networking classes, you can create a Proxy object:</p><pre>import java.io.BufferedReader;<br>import java.io.InputStreamReader;<br>import java.net.*;<br><br>public class ProxyExample {<br><br>    public static void main(String[] args) throws Exception {<br><br>        Proxy proxy = new Proxy(<br>            Proxy.Type.HTTP,<br>            new InetSocketAddress(&quot;127.0.0.1&quot;, 8080)<br>        );<br><br>        URL url = new URL(&quot;https://httpbin.org/ip&quot;);<br>        HttpURLConnection connection =<br>            (HttpURLConnection) url.openConnection(proxy);<br><br>        BufferedReader reader = new BufferedReader(<br>            new InputStreamReader(connection.getInputStream())<br>        );<br><br>        String line;<br><br>        while ((line = reader.readLine()) != null) {<br>            System.out.println(line);<br>        }<br><br>        reader.close();<br>    }<br>}</pre><p>The proxy is applied specifically to that connection.</p><p>This is often preferable to changing JVM-wide proxy settings because other parts of your application can continue connecting normally.</p><h3>How Do You Configure a Proxy With Java HttpClient?</h3><p>Modern Java applications can use java.net.http.HttpClient.</p><p>A proxy can be configured like this:</p><pre>import java.net.*;<br>import java.net.http.*;<br><br>public class Main {<br><br>    public static void main(String[] args) throws Exception {<br><br>        HttpClient client = HttpClient.newBuilder()<br>            .proxy(<br>                ProxySelector.of(<br>                    new InetSocketAddress(&quot;127.0.0.1&quot;, 8080)<br>                )<br>            )<br>            .build();<br><br>        HttpRequest request = HttpRequest.newBuilder()<br>            .uri(URI.create(&quot;https://httpbin.org/ip&quot;))<br>            .GET()<br>            .build();<br><br>        HttpResponse&lt;String&gt; response =<br>            client.send(<br>                request,<br>                HttpResponse.BodyHandlers.ofString()<br>            );<br><br>        System.out.println(response.body());<br>    }<br>}</pre><p>For most modern Java projects, this API provides a cleaner approach than older HttpURLConnection code.</p><h3>How Does Proxy Authentication Work in Java?</h3><p>Java can provide credentials through an Authenticator.</p><p>For example:</p><pre>Authenticator authenticator = new Authenticator() {<br>    @Override<br>    protected PasswordAuthentication getPasswordAuthentication() {<br>        return new PasswordAuthentication(<br>            &quot;username&quot;,<br>            &quot;password&quot;.toCharArray()<br>        );<br>    }<br>};</pre><p>It can then be attached to the HTTP client:</p><pre>HttpClient client = HttpClient.newBuilder()<br>    .proxy(<br>        ProxySelector.of(<br>            new InetSocketAddress(&quot;proxy.example.com&quot;, 8000)<br>        )<br>    )<br>    .authenticator(authenticator)<br>    .build();</pre><p>One detail worth remembering is that destination-server authentication and proxy authentication can interact with the same authentication mechanisms.</p><p>Test the behavior against your actual proxy service rather than assuming every provider handles authentication identically.</p><h3>Should You Use Environment Proxy Variables in Go?</h3><p>Go provides built-in support for environment-based proxy configuration through:</p><pre>http.ProxyFromEnvironment</pre><p>For example:</p><pre>transport := &amp;http.Transport{<br>    Proxy: http.ProxyFromEnvironment,<br>}</pre><p>Your application can then use environment variables such as:</p><pre>HTTP_PROXY<br>HTTPS_PROXY<br>NO_PROXY</pre><p>This is useful for infrastructure where proxy settings change between deployments.</p><p>If your application needs to rotate proxies request by request, however, explicit proxy selection normally gives you more control.</p><p>Developers coming from Python may notice that the concept is similar even though the client syntax differs. This <a href="https://medium.com/@proxiesthatwork/how-to-use-a-proxy-in-python-simple-setup-that-works-26b5a45184a3">simple guide to using a proxy in Python</a> shows the same underlying pattern: configure a proxy endpoint, attach it to the HTTP client, and verify the outgoing IP.</p><h3>How Do You Rotate Proxies in Go?</h3><p>A basic rotation strategy stores several proxy URLs and chooses one for each request or worker.</p><p>For example:</p><pre>proxies := []string{<br>    &quot;http://proxy1.example.com:8000&quot;,<br>    &quot;http://proxy2.example.com:8000&quot;,<br>    &quot;http://proxy3.example.com:8000&quot;,<br>}</pre><p>You could select proxies randomly or sequentially.</p><p>For high-volume applications, creating a new transport for every request is rarely ideal. Connection pools and keep-alive behavior matter.</p><p>A better design is often to create one reusable client per proxy and distribute requests among those clients.</p><p>That allows Go to reuse TCP connections while still distributing traffic across IP addresses.</p><h3>How Do You Rotate Proxies in Java?</h3><p>The same principle applies to Java.</p><p>Instead of repeatedly rebuilding HttpClient objects, create a small pool of clients, with each client configured for a different proxy.</p><p>Your application can then choose a client based on:</p><ul><li>round-robin rotation;</li><li>target domain;</li><li>previous response status;</li><li>current error rate;</li><li>request volume; or</li><li>session requirements.</li></ul><p>For scraping systems, random rotation is not always the best strategy.</p><p>Some websites associate multiple requests with one session. Changing IP addresses halfway through a session can actually increase suspicious behavior.</p><p>Session-aware rotation is often more reliable.</p><h3>What Proxy Errors Should Go and Java Developers Watch For?</h3><p>A correctly configured client can still fail because of the proxy itself.</p><p>Common issues include:</p><h4>HTTP 407 Proxy Authentication Required</h4><p>The proxy received your request but rejected or did not receive valid authentication credentials.</p><p>Check the username, password, authentication format, and proxy endpoint.</p><h4>Connection refused</h4><p>The host or port may be incorrect, unavailable, or blocked by a firewall.</p><h4>Connection timeout</h4><p>The proxy may be overloaded, geographically distant, or temporarily unreachable.</p><h4>TLS or certificate errors</h4><p>HTTPS traffic normally uses the HTTP CONNECT method through an HTTP proxy.</p><p>Unexpected TLS interception, certificate problems, or unusual proxy configurations can cause certificate validation failures.</p><h4>HTTP 403 or 429 responses</h4><p>These responses may come from the target website rather than the proxy.</p><p>A working proxy connection does not automatically mean the destination accepts your automated requests.</p><h3>What Should You Look for in a Proxy for Go or Java Applications?</h3><p>The programming language rarely determines which proxy service you need. Your workload matters more.</p><p>For development and scraping projects, consider:</p><ul><li>HTTP and HTTPS support;</li><li>stable authentication;</li><li>sufficient concurrent connections;</li><li>predictable latency;</li><li>clean IP reputation;</li><li>simple endpoint formatting; and</li><li>enough IP capacity for your request volume.</li></ul><p>Large enterprise proxy networks can make sense when you need residential geolocation or massive IP diversity. For straightforward automation and datacenter workloads, <a href="https://www.proxiesthatwork.com/">cheap proxies</a> with stable endpoints may be more practical than paying for features your application never uses.</p><h3>Go vs Java: Which Is Better for Proxy-Based Requests?</h3><p>Both languages handle proxies well.</p><p>Go has an especially compact HTTP networking stack and makes it easy to build highly concurrent request workers. Its http.Transport abstraction also gives developers detailed control over connection pooling.</p><p>Java has a mature networking ecosystem and works well for larger applications already built around JVM frameworks and services.</p><p>If you are starting a lightweight crawler from scratch, Go may require less code.</p><p>If your scraping, monitoring, or data-processing infrastructure already runs in Java, switching languages purely for proxy support offers little benefit.</p><p>The proxy itself is simply another network layer.</p><h3>Final Takeaway</h3><p>You do not need a special proxy library to get started with Go or Java.</p><p>In Go, configure http.Transport and attach it to an http.Client. In modern Java, configure HttpClient with a ProxySelector. Add authentication when required, set sensible timeouts, and test the outgoing IP before scaling.</p><p>Once basic connectivity works, focus on the issues that matter more in production: connection reuse, proxy health, retries, rotation strategy, and session consistency.</p><p>Those decisions usually have a much larger effect on reliability than the few lines of code required to enable the proxy itself.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8bdcbde75003" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Real Estate Scraping with Proxies: How to Collect Property Data Reliably at Scale]]></title>
            <link>https://medium.com/@proxiesthatwork/real-estate-scraping-with-proxies-0a2260c36271?source=rss-41bcc2cf79f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/0a2260c36271</guid>
            <category><![CDATA[proxy]]></category>
            <category><![CDATA[data-collection]]></category>
            <category><![CDATA[real-estate]]></category>
            <category><![CDATA[web-data]]></category>
            <category><![CDATA[web-scraping]]></category>
            <dc:creator><![CDATA[ProxiesThatWork]]></dc:creator>
            <pubDate>Tue, 18 Aug 2026 13:38:56 GMT</pubDate>
            <atom:updated>2026-08-19T00:30:33.506Z</atom:updated>
            <content:encoded><![CDATA[<h4>A practical guide to using proxies for reliable property listing collection, IP rotation, geo-targeting, and scalable real estate data pipelines.</h4><figure><img alt="Real estate scraping illustration showing property listings routed through a proxy server to collect data from multiple homes." src="https://cdn-images-1.medium.com/max/1024/1*g976bMfxAMuHGWP_hfch4A.png" /></figure><p>Real estate scraping with proxies lets you collect property listings, prices, rental rates, availability, and other public web data while distributing requests across multiple IP addresses. Proxies are especially useful at scale because they help reduce IP-based rate limits, support location-specific research, and keep individual scraping sessions from generating excessive traffic from one address.</p><p>Real estate websites contain an enormous amount of useful market information. A single listing can reveal asking price, location, property type, number of bedrooms, square footage, amenities, listing status, and sometimes price history.</p><p>Collect enough listings and individual pages become a dataset.</p><p>That dataset can support market research, investment analysis, pricing tools, rental comparisons, lead generation, and competitive intelligence. The challenge is collecting it reliably without overwhelming websites or constantly running into IP-based restrictions.</p><p>That is where proxies become part of the scraping infrastructure.</p><h3>Why Scrape Real Estate Data?</h3><p>Real estate markets change constantly.</p><p>New properties appear. Prices fall. Rentals disappear. Previously sold properties return to the market. Inventory changes neighborhood by neighborhood.</p><p>Manual research works when you need information about five properties. It becomes impractical when you need information about 50,000.</p><p>Automated collection can help businesses monitor:</p><ul><li>Property listings</li><li>Asking prices</li><li>Rental rates</li><li>Listing status</li><li>Days on market</li><li>Price reductions</li><li>Property characteristics</li><li>Agent or brokerage information</li><li>Neighborhood inventory</li><li>Geographic pricing differences</li></ul><p>The value rarely comes from one scraped page. It comes from tracking thousands of records consistently over time.</p><p>For example, a property investor could collect listings every day and identify properties whose asking prices have fallen by more than 10%. A rental analytics company could monitor apartment listings to estimate changing rents across neighborhoods.</p><p>Both depend on reliable data collection.</p><h3>Why Are Proxies Useful for Real Estate Scraping?</h3><p>A scraper normally connects to a website using the IP address of the machine running it.</p><p>If that scraper sends hundreds or thousands of requests from the same IP, the traffic may look very different from normal browsing activity.</p><p>Websites can impose rate limits, return CAPTCHA challenges, temporarily restrict the IP, or reject requests altogether.</p><p>A proxy sits between the scraper and the destination website.</p><p>Instead of:</p><pre>Scraper → Real estate website</pre><p>the connection becomes:</p><pre>Scraper → Proxy → Real estate website</pre><p>With a proxy pool, requests can be distributed across multiple addresses rather than concentrating all traffic on one IP.</p><p>This doesn’t mean requests should be sent as fast as possible. Good scraping systems combine proxies with responsible request rates, retries, caching, and data deduplication.</p><h3>Datacenter or Residential Proxies?</h3><p>The right proxy type depends on the target and workload.</p><p>Datacenter proxies are usually fast, inexpensive, and easy to scale. They can work well for accessible pages and high-volume collection where sophisticated IP reputation isn’t required.</p><p>Residential proxies route requests through consumer ISP-associated IP addresses. They may be useful for more restrictive targets or when geographic diversity matters, but they are generally more expensive.</p><p>Before buying a large pool, test a small sample against the actual sites you intend to collect from.</p><p>For many projects, the most important question isn’t simply which proxy category is “best.” It is which one produces an acceptable success rate at a sustainable cost.</p><p>If cost is an important factor, <a href="https://www.proxiesthatwork.com/">affordable proxies</a> can make it practical to test and scale a real estate data pipeline without immediately committing to a costly proxy network.</p><h3>How Many Proxies Does a Real Estate Scraper Need?</h3><p>There is no universal number.</p><p>The required pool size depends on several variables:</p><ul><li>Number of target pages</li><li>Request frequency</li><li>Number of websites</li><li>Rate limits</li><li>Retry rates</li><li>Allowed requests per IP</li><li>Geographic requirements</li><li>How frequently the dataset must be refreshed</li></ul><p>A scraper collecting 5,000 listings once a week has very different infrastructure requirements from a platform monitoring 500,000 listings several times per day.</p><p>Instead of guessing, estimate your request volume first.</p><p>For example, suppose you need to collect 100,000 pages per day.</p><p>If one proxy can safely process 500 successful requests during that period, the theoretical minimum is:</p><pre>100,000 ÷ 500 = 200 proxies</pre><p>In practice, you should allow additional capacity for failures, retries, slow endpoints, and temporary restrictions.</p><p>For a more detailed framework, see this guide to <a href="https://medium.com/@proxiesthatwork/how-many-proxies-do-you-need-7d5efde0e352">calculating how many proxies you actually need</a>.</p><h3>Build a Proxy Rotation Layer</h3><p>A scalable real estate scraper should not hard-code one proxy into every request.</p><p>Create a proxy pool instead.</p><p>The scraper selects an available proxy, makes the request, records the result, and updates the proxy’s status.</p><p>A basic workflow might look like:</p><ol><li>Load a target URL.</li><li>Select a healthy proxy.</li><li>Send the request.</li><li>Record the response code and latency.</li><li>Parse the required property information.</li><li>Retry temporary failures when appropriate.</li><li>Remove or cool down consistently failing proxies.</li><li>Store normalized data.</li></ol><p>This creates a much more resilient system than blindly cycling through addresses.</p><h3>Don’t Rotate on Every Request Automatically</h3><p>One overlooked issue in proxy scraping is excessive rotation.</p><p>Changing IP addresses on every request isn’t always beneficial.</p><p>Some websites maintain sessions using cookies or other state. If the IP changes constantly during a session, requests may look less consistent rather than more natural.</p><p>Sticky sessions can therefore be useful.</p><p>For example, one proxy might remain assigned while the scraper processes a group of pages before switching to another address.</p><p>Rotation strategy should match the behavior of the target website.</p><h3>Geographic Proxies Can Improve Local Market Research</h3><p>Real estate is inherently geographic.</p><p>Search results, inventory, promoted listings, and other page elements can sometimes differ depending on the visitor’s location.</p><p>Geo-targeted proxies allow researchers to request pages from IP addresses associated with specific regions.</p><p>That can be useful when comparing:</p><ul><li>Local rental markets</li><li>Regional listing inventory</li><li>Search visibility</li><li>Property portals across markets</li><li>Location-dependent website experiences</li></ul><p>However, geographic targeting should only be added when it produces meaningful differences. Paying for highly granular proxy locations adds unnecessary cost when the website serves identical information globally.</p><h3>Reduce Requests Before Adding More Proxies</h3><p>Scaling is not only about increasing proxy count.</p><p>Reducing unnecessary requests is often cheaper.</p><p>Cache pages that do not need immediate refreshing. Avoid repeatedly downloading identical listings. Track listing IDs and update only records likely to have changed.</p><p>If a property’s details changed yesterday but the website still serves the same page today, downloading and parsing it repeatedly provides little value.</p><p>Efficient crawlers prioritize freshness.</p><p>Frequently changing pages can be checked often. Stable records can be refreshed less frequently.</p><p>This reduces bandwidth, infrastructure cost, and pressure on target websites.</p><h3>Monitor Proxy Performance</h3><p>A proxy should not simply be classified as working or broken.</p><p>Track metrics such as:</p><ul><li>Successful request percentage</li><li>HTTP error rate</li><li>CAPTCHA frequency</li><li>Average response time</li><li>Timeout rate</li><li>Retry count</li><li>Cost per successful page</li></ul><p>Cost per successful page is especially useful.</p><p>A cheaper proxy network with a poor success rate may ultimately cost more than a slightly more expensive network that consistently retrieves usable pages.</p><h3>Respect Website Rules and Data Restrictions</h3><p>Publicly accessible pages are not automatically unrestricted data sources.</p><p>Before scraping a real estate website, review applicable terms, robots directives, technical access controls, privacy considerations, contractual restrictions, and relevant laws.</p><p>Avoid collecting personal information unless you have a legitimate and lawful reason to do so.</p><p>Proxies should be infrastructure for distributing legitimate requests, not a justification for ignoring restrictions or circumventing access controls.</p><h3>Real Estate Scraping Works Best as a System</h3><p>Reliable real estate data collection requires more than a scraper and a list of IP addresses.</p><p>The complete system includes request scheduling, proxy management, retries, parsing, caching, deduplication, monitoring, and storage.</p><p>The proxy layer solves one important problem: preventing large workloads from depending entirely on a single IP address.</p><p>But efficiency matters just as much as rotation.</p><p>A well-designed crawler makes fewer unnecessary requests, monitors the health of its proxy pool, adapts request rates to target behavior, and measures success based on usable data rather than raw request volume.</p><p>That is what turns basic scraping into reliable real estate data infrastructure.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0a2260c36271" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Verify Ads Across Locations Using Proxies]]></title>
            <link>https://medium.com/@proxiesthatwork/how-to-verify-ads-across-locations-using-proxies-7ef4f1f295ad?source=rss-41bcc2cf79f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ef4f1f295ad</guid>
            <category><![CDATA[digital-advertising]]></category>
            <category><![CDATA[ad-verification]]></category>
            <category><![CDATA[adtech]]></category>
            <category><![CDATA[proxy]]></category>
            <category><![CDATA[marketing-automation]]></category>
            <dc:creator><![CDATA[ProxiesThatWork]]></dc:creator>
            <pubDate>Fri, 14 Aug 2026 12:33:38 GMT</pubDate>
            <atom:updated>2026-08-14T12:33:38.685Z</atom:updated>
            <content:encoded><![CDATA[<h4>A practical workflow for checking geo-targeting, creatives, placements, and landing pages across different markets.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ecZUfu848aivhDG206_-pg.png" /></figure><p>To verify ads with proxies, connect through an IP in the location you want to test, open the target website or search result in a clean browser session, and record which ad appears, where it appears, and where it leads. Repeat the test across locations, devices, and sessions to identify targeting or placement problems.</p><p>Ad campaigns rarely look identical everywhere.</p><p>A campaign may appear correctly from your office but serve a different creative in another state. A competitor may show an offer in one city that never appears from your normal connection. An affiliate placement may exist only for visitors from a particular country.</p><p>This is where proxies become useful for ad verification.</p><p>Instead of relying entirely on reports from an advertising platform, a proxy lets you inspect what a user connecting from another IP location may actually encounter. IP addresses are one of the signals platforms can use when determining geographic location, although they are not the only location signal involved.</p><p>For advertisers, agencies, affiliate managers, and ad-tech teams, that makes proxy-assisted verification a practical way to add an independent observation layer to campaign QA.</p><h3>What Should You Verify in an Ad Campaign?</h3><p>Ad verification is broader than simply asking whether an advertisement appears.</p><p>A useful verification process can check:</p><ul><li>whether the expected creative is displayed</li><li>whether an ad appears in the intended market</li><li>whether the correct language or currency is used</li><li>whether the destination URL works</li><li>whether tracking parameters survive the redirect</li><li>whether an affiliate or publisher is using the approved creative</li><li>whether competing ads appear beside your campaign</li><li>whether an ad appears on undesirable pages</li><li>whether a mobile visitor receives a different experience</li><li>whether campaigns behave differently by city, state, or country</li></ul><p>The goal is to compare the campaign you intended to run with the advertising experience that can actually be observed.</p><p>That distinction matters because dashboards report campaign activity, while verification attempts to inspect the rendered result.</p><h3>How Do You Verify Ads With Proxies?</h3><p>Start by deciding exactly what you need to test.</p><p>Suppose an advertiser is running campaigns in Phoenix, Dallas, Chicago, and New York.</p><p>Instead of checking from one corporate internet connection, the verification process can route separate sessions through proxy IPs associated with each market.</p><p>A simple workflow looks like this:</p><h4>1. Select the location to test</h4><p>Choose the country, region, or city relevant to the campaign.</p><p>If the advertisement is only targeted nationally, country-level testing may be enough. Local campaigns require more precise testing.</p><h4>2. Start a clean browsing session</h4><p>Cookies, previous searches, account history, and stored location information can influence what a browser sees.</p><p>Use a fresh browser profile, private session, or controlled browser environment so previous activity does not dominate your results.</p><h4>3. Connect through the appropriate proxy</h4><p>Configure the browser or verification script to send traffic through the selected proxy.</p><p>The website or advertising system then sees the proxy IP instead of the IP address of the verification machine.</p><p>That provides a way to observe IP-dependent differences without physically maintaining testers in every market.</p><h4>4. Load the page naturally</h4><p>Open the publisher page, search query, app experience, or landing environment where the advertisement is expected.</p><p>Record what actually loads.</p><p>Avoid repeatedly refreshing an ad simply to force impressions. Advertising platforms actively identify and filter invalid traffic, including activity that artificially inflates impressions or clicks.</p><p>Verification should be controlled observation, not artificial engagement.</p><h4>5. Capture the result</h4><p>Useful evidence can include:</p><ul><li>timestamp</li><li>proxy location</li><li>page URL</li><li>screenshot</li><li>ad creative</li><li>advertiser</li><li>landing-page domain</li><li>placement</li><li>device type</li><li>browser type</li></ul><p>Structured evidence makes discrepancies much easier to investigate later.</p><h3>Why Is Geographic Ad Verification Important?</h3><p>Location targeting creates one of the biggest reasons to perform outside verification.</p><p>An advertiser targeting California, for example, may want to know whether its California-specific creative actually appears to users connecting from different areas of the state.</p><p>Likewise, a national retailer might verify:</p><ul><li>regional promotions</li><li>store-specific ads</li><li>shipping offers</li><li>localized pricing</li><li>language variations</li><li>city-specific landing pages</li></ul><p>Google Ads itself notes that advertisers can target countries, areas within countries, radiuses, and location groups.</p><p>Checking campaigns from representative network locations can therefore expose inconsistencies that are difficult to see from a single connection.</p><h3>Can Proxies Help Detect Unauthorized Ad Placements?</h3><p>Yes, and this is an important use case.</p><p>Brands frequently distribute campaigns through publishers, affiliates, ad networks, and programmatic exchanges.</p><p>The advertiser may approve certain:</p><ul><li>websites</li><li>creatives</li><li>offers</li><li>messages</li><li>countries</li><li>traffic sources</li></ul><p>But the real placement can be difficult to monitor continuously.</p><p>A verification system can sample pages through different proxy locations and compare observed advertisements against approved campaign rules.</p><p>This can help uncover situations such as:</p><ul><li>advertisements appearing on an unexpected publisher</li><li>outdated creative still being served</li><li>promotions running after expiration</li><li>misleading affiliate messaging</li><li>ads displayed in an excluded market</li><li>incorrect landing pages</li></ul><p>For organizations operating many campaigns, automated sampling can turn these checks into a repeatable monitoring process.</p><h3>Datacenter or Residential Proxies for Ad Verification?</h3><p>The right proxy depends on what you are testing.</p><p>Datacenter proxies are useful when you need inexpensive, fast, repeatable checks across many pages or markets.</p><p>Residential proxies may be more appropriate when the test needs to resemble ordinary consumer internet traffic more closely.</p><p>Neither category guarantees that you will see exactly what every real user sees.</p><p>Advertising delivery can also depend on cookies, device information, browser state, user behavior, account history, campaign pacing, and other signals.</p><p>That is why proxy verification should be treated as a sampling method rather than absolute proof of what every person in a location sees.</p><p>For teams performing frequent monitoring, the economics matter as well. Using <a href="https://www.proxiesthatwork.com/pricing">cheap &amp; reliable proxies</a> can make broader geographic sampling more practical without turning every routine verification task into an expensive data-collection project.</p><h3>How Many Locations Should You Test?</h3><p>Do not automatically test every available city.</p><p>Start with markets that carry the greatest business risk.</p><p>For example:</p><p><strong>Tier 1:</strong> Major revenue markets<br>Test frequently.</p><p><strong>Tier 2:</strong> Secondary campaign locations<br>Test on a rotating schedule.</p><p><strong>Tier 3:</strong> Low-volume markets<br>Test periodically or when campaign settings change.</p><p>You can also increase testing after:</p><ul><li>launching new creatives</li><li>changing geo-targeting</li><li>adding publishers</li><li>changing affiliate partners</li><li>modifying landing pages</li><li>launching seasonal promotions</li></ul><p>This risk-based approach produces more useful coverage than checking hundreds of locations without a clear reason.</p><h3>Automating Ad Verification With Proxies</h3><p>Manual checks work for small campaigns.</p><p>At scale, automation becomes more practical.</p><p>A verification script can:</p><ol><li>select a proxy location</li><li>launch a browser</li><li>load the target page</li><li>wait for advertisements to render</li><li>record the placement</li><li>save a screenshot</li><li>extract the destination URL</li><li>log the result</li><li>rotate to the next location</li></ol><p>Browser automation frameworks can make the process repeatable, while proxy rotation expands geographic coverage.</p><p>Teams building this type of infrastructure may also benefit from techniques used in <a href="https://medium.com/@proxiesthatwork/price-monitoring-with-proxies-track-competitor-prices-reliably-b06e72b48e7c">proxy-based price monitoring</a>, where the same core problem appears: collecting location-dependent web observations consistently across many sessions.</p><h3>Avoid Turning Verification Into Invalid Traffic</h3><p>There is an important distinction between checking an advertisement and interacting with it repeatedly.</p><p>Google defines invalid traffic as clicks or impressions that do not result from genuine user interest and may artificially increase advertiser costs or publisher earnings.</p><p>A responsible verification process therefore minimizes unnecessary interactions.</p><p>Prefer:</p><ul><li>controlled page loads</li><li>screenshots</li><li>DOM inspection</li><li>redirect inspection where appropriate</li><li>limited sampling</li></ul><p>Avoid generating large numbers of impressions or clicks solely to test whether an ad system responds.</p><p>The goal is verification, not simulated engagement.</p><h3>What Should an Ad Verification Report Contain?</h3><p>A useful report should allow someone else to reproduce or investigate the observation.</p><p>At minimum, log:</p><p><strong>Location:</strong> Where the proxy IP was based.</p><p><strong>Timestamp:</strong> When the advertisement was observed.</p><p><strong>Page:</strong> Where the ad appeared.</p><p><strong>Creative:</strong> Which advertisement was shown.</p><p><strong>Destination:</strong> Where the advertisement led.</p><p><strong>Placement:</strong> Where it appeared on the page.</p><p><strong>Screenshot:</strong> Visual evidence.</p><p><strong>Expected result:</strong> What campaign rules said should happen.</p><p><strong>Observed result:</strong> What actually happened.</p><p>Once these fields are standardized, verification becomes much easier to automate and compare over time.</p><h3>Proxies Add an Independent View of Your Advertising</h3><p>Advertising dashboards are essential, but they show the campaign through the advertising platform’s reporting system.</p><p>Proxy-assisted verification adds another perspective: what can actually be observed from different network locations.</p><p>Used carefully, proxies can help advertisers confirm geo-targeting, inspect creatives, audit publisher placements, monitor affiliate compliance, compare regional advertising, and catch campaign problems earlier.</p><p>The key is not simply rotating IP addresses.</p><p>It is building a controlled testing process around location, browser state, evidence collection, and repeatability.</p><p>That is what turns proxies from a connectivity tool into useful ad-verification infrastructure.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ef4f1f295ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Fix SSL Certificate Errors When Using a Proxy]]></title>
            <link>https://medium.com/@proxiesthatwork/how-to-fix-ssl-certificate-errors-when-using-a-proxy-d550283d4c2d?source=rss-41bcc2cf79f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/d550283d4c2d</guid>
            <category><![CDATA[web-scraping]]></category>
            <category><![CDATA[ssl]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[proxy]]></category>
            <category><![CDATA[https]]></category>
            <dc:creator><![CDATA[ProxiesThatWork]]></dc:creator>
            <pubDate>Thu, 13 Aug 2026 11:14:38 GMT</pubDate>
            <atom:updated>2026-08-13T11:14:38.380Z</atom:updated>
            <content:encoded><![CDATA[<h4>Diagnose proxy-related SSL certificate errors, identify TLS and CA issues, and fix HTTPS connections without disabling verification.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RuzomzXipiUnOagpp6A5EQ.png" /></figure><p>If a proxy causes an SSL certificate error, compare the direct and proxied HTTPS connections first. Then check the proxy protocol, CONNECT response, certificate issuer, hostname, expiration date, and trusted CA chain. Update outdated CA bundles or install the proxy’s legitimate root CA when necessary. Avoid disabling certificate verification as a permanent fix.</p><p>A certificate error is ultimately a trust failure.</p><p>Your browser, script, API client, or scraper received a certificate but could not verify that the certificate should be trusted for the requested hostname.</p><p>Proxies add another layer to the connection, which gives you another place where that trust chain can break.</p><p>The fastest fix is therefore not trial and error. It is identifying exactly where the certificate changes or validation fails.</p><h3>Start With One Question: Does HTTPS Work Without the Proxy?</h3><p>This single test can save a large amount of debugging time.</p><p>Request the destination normally:</p><pre>curl -I https://example.com</pre><p>Then request it through the proxy:</p><pre>curl -I \<br>  -x http://user:password@proxy.example.com:8080 \<br>  https://example.com</pre><p>There are three useful outcomes.</p><h4>Direct and Proxy Requests Both Fail</h4><p>The destination certificate, DNS environment, operating system, or local trust store may be the problem.</p><h4>Direct Works, Proxy Fails</h4><p>Focus on:</p><ul><li>proxy configuration</li><li>proxy TLS behavior</li><li>certificate interception</li><li>CA trust</li><li>proxy hostname and protocol</li></ul><h4>Both Work in cURL but Your Application Fails</h4><p>The application may use a different CA bundle or TLS implementation.</p><p>That distinction is common with Python, Node.js, Java, containers, and browser automation frameworks.</p><h3>Error: CERTIFICATE_VERIFY_FAILED</h3><p>This is one of the most common SSL messages in Python.</p><p>Example:</p><pre>certificate verify failed:<br>unable to get local issuer certificate</pre><p>The application could not build a complete trusted certificate chain.</p><p>Start by updating your CA certificates.</p><p>For Python environments using certifi:</p><pre>pip install --upgrade certifi</pre><p>You can locate the active bundle with:</p><pre>import certifi<br>print(certifi.where())</pre><p>If your proxy uses a private CA legitimately, add that CA rather than turning verification off.</p><h3>Error: Self-Signed Certificate in Certificate Chain</h3><p>A self-signed certificate does not automatically mean an attack.</p><p>Corporate gateways, antivirus products, debugging tools, and security proxies sometimes inspect encrypted traffic by acting as an intermediary.</p><p>They generate a certificate for the requested website and sign it with their own root CA.</p><p>Browsers managed by the organization may already trust that CA.</p><p>Your Python script or container may not.</p><p>That explains a common situation:</p><pre>Chrome → works<br>Python → certificate error</pre><p>The two applications may simply trust different CA stores.</p><p>If the interception is authorized, install or configure the trusted organizational CA for the affected application.</p><p>If the interception is unexpected, investigate before trusting anything.</p><h3>Error: Hostname Does Not Match Certificate</h3><p>Certificates are issued for specific hostnames.</p><p>If you request:</p><pre>https://api.example.com</pre><p>the certificate must be valid for that domain or an appropriate wildcard.</p><p>A mismatch can happen because:</p><ul><li>the proxy returned its own certificate incorrectly</li><li>the destination server is misconfigured</li><li>DNS resolves unexpectedly</li><li>TLS interception is malfunctioning</li><li>SNI information is not being handled correctly</li></ul><p>Do not suppress hostname verification.</p><p>Check which certificate you actually received.</p><h3>Error Appears Only on One Proxy Endpoint</h3><p>If you have several proxy servers, test each one.</p><p>For example:</p><pre>proxy-1 → works<br>proxy-2 → works<br>proxy-3 → SSL error</pre><p>That strongly suggests an endpoint-specific problem rather than an application-wide CA issue.</p><p>Possible causes include:</p><ul><li>misconfigured proxy node</li><li>stale certificate</li><li>broken TLS routing</li><li>incorrect gateway</li><li>bad upstream</li><li>unusual network interception</li></ul><p>Rotating to another endpoint may restore connectivity, but the failing node should still be reported or removed from production use.</p><h3>Error Appears Before HTTPS Is Established</h3><p>Sometimes what looks like an SSL problem is actually a proxy problem occurring earlier in the connection.</p><p>An HTTPS request through a forward proxy often begins with:</p><pre>CONNECT example.com:443 HTTP/1.1</pre><p>The proxy should respond successfully before the TLS session proceeds.</p><p>If it replies with:</p><pre>407 Proxy Authentication Required</pre><p>fix proxy authentication first.</p><p>The <a href="https://medium.com/@proxiesthatwork/debugging-http-407-proxy-authentication-errors-e8fc0d1e6992">HTTP 407 proxy authentication troubleshooting guide</a> explains how credential formats, authentication methods, environment variables, and tool-specific proxy settings can produce that response.</p><p>Without a successful tunnel, SSL debugging can send you in the wrong direction.</p><h3>Verify the Proxy Scheme</h3><p>Do not assume an HTTPS destination requires an https:// proxy URL.</p><p>Many HTTP forward proxies support HTTPS destinations by using CONNECT.</p><p>A configuration may look like:</p><pre>proxies = {<br>    &quot;http&quot;: &quot;http://proxy.example.com:8080&quot;,<br>    &quot;https&quot;: &quot;http://proxy.example.com:8080&quot;,<br>}</pre><p>The destination remains encrypted:</p><pre>https://example.com</pre><p>The http:// value describes how your application connects to the proxy, not whether the destination uses HTTPS.</p><p>Using an unsupported proxy scheme can produce handshake failures that resemble certificate problems.</p><h3>Inspect the Certificate With Verbose cURL</h3><p>Run:</p><pre>curl -v \<br>  -x http://user:pass@proxy.example.com:8080 \<br>  https://example.com</pre><p>Pay attention to the certificate:</p><pre>subject:<br>issuer:<br>start date:<br>expire date:<br>subjectAltName:</pre><p>Then run the request directly and compare.</p><p>If the certificate issuer suddenly changes when using the proxy, the connection may be undergoing TLS interception.</p><p>That difference is often the missing diagnostic clue.</p><h3>Do Not Make verify=False the Fix</h3><p>Python developers frequently encounter advice like:</p><pre>requests.get(url, verify=False)</pre><p>That suppresses certificate verification.</p><p>It may prove that validation is the part failing, which can make it useful for a short controlled diagnostic test.</p><p>But it should not become normal production configuration.</p><p>The same principle applies to Node.js environment variables and browser settings that disable certificate checks.</p><p>HTTPS protects both confidentiality and server identity. Turning off identity verification undermines part of that protection.</p><h3>Proxy Reliability Matters Beyond IP Availability</h3><p>A proxy is useful only when your software can establish predictable connections through it.</p><p>For scraping, SERP monitoring, API access, QA, automation, and data collection, teams evaluating <a href="https://www.proxiesthatwork.com/">affordable proxies</a> should also test TLS behavior rather than evaluating endpoints only by IP count or advertised bandwidth.</p><p>Useful checks include:</p><ul><li>successful HTTPS CONNECT rate</li><li>certificate consistency</li><li>supported TLS versions</li><li>connection latency</li><li>authentication stability</li><li>timeout rate</li><li>connection reuse</li></ul><p>These factors become increasingly important as request volume grows.</p><h3>What If the Error Happens Inside Docker?</h3><p>Containers deserve special attention.</p><p>Your laptop may have a current trust store while the application container does not.</p><p>That creates the confusing scenario:</p><pre>Local Python script → works<br>Same code in Docker → SSL error</pre><p>Check whether the image contains current CA certificates.</p><p>Rebuild old images after updating dependencies, and test the certificate bundle from inside the running container rather than assuming it matches the host.</p><h3>Quick Decision Tree</h3><p>Use this troubleshooting order:</p><p>Direct HTTPS fails → investigate destination certificate or local CA store.</p><p>Direct works, proxy fails → investigate proxy protocol, TLS interception, or proxy certificate chain.</p><p>One proxy node fails → investigate that endpoint.</p><p>Browser works, script fails → compare CA stores.</p><p>CONNECT returns 407 → fix authentication before TLS.</p><p>Certificate issuer changes through proxy → investigate TLS inspection.</p><p>Hostname mismatch → verify DNS, SNI, proxy routing, and destination configuration.</p><p>Outdated CA bundle → update the runtime.</p><p>Private trusted proxy CA → add that CA explicitly.</p><p>Production app uses SSL bypass → remove the bypass after fixing the root cause.</p><h3>Final Takeaway</h3><p>SSL certificate errors behind proxies are easiest to solve through comparison.</p><p>Compare direct versus proxied traffic, working versus failing endpoints, browser versus application behavior, and certificate issuer details before making configuration changes.</p><p>Once you know where the trust chain changes, the correct fix is usually straightforward: correct the proxy settings, update the CA store, install the legitimate private CA, or repair the affected proxy endpoint.</p><p>That approach fixes the actual SSL problem without weakening security across the rest of your application.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d550283d4c2d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Debugging HTTP 407 Proxy Authentication Errors]]></title>
            <link>https://medium.com/@proxiesthatwork/debugging-http-407-proxy-authentication-errors-e8fc0d1e6992?source=rss-41bcc2cf79f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8fc0d1e6992</guid>
            <category><![CDATA[web-scraping]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[proxy-server]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[https]]></category>
            <dc:creator><![CDATA[ProxiesThatWork]]></dc:creator>
            <pubDate>Thu, 06 Aug 2026 12:29:14 GMT</pubDate>
            <atom:updated>2026-08-12T10:57:31.733Z</atom:updated>
            <content:encoded><![CDATA[<h4>A developer-focused workflow for diagnosing proxy credentials, authentication methods, URL encoding, and client configuration.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OE4jFKZm7Z1Bb9zrD0VJzA.png" /></figure><p>HTTP 407 Proxy Authentication Required means your request reached the proxy, but the proxy rejected the credentials or did not receive them in the expected form. Check whether the proxy uses username-password or IP authentication, validate the endpoint and port, encode special characters, and reproduce the failure with a minimal cURL request.</p><p>Proxy failures are often misdiagnosed because several different problems can produce similar symptoms.</p><p>A scraper may report that a connection failed. A browser may display a generic proxy error. A library may throw a tunnel exception. Underneath those messages, however, the proxy server may be returning one precise signal:</p><pre>407 Proxy Authentication Required</pre><p>When that happens, increasing retries, changing headers, or replacing the target URL is unlikely to help. The proxy is refusing to forward the request because the authentication exchange failed.</p><p>Here is a systematic developer workflow for finding the exact cause.</p><h3>Where HTTP 407 Happens in the Request Lifecycle</h3><p>A proxied HTTPS request generally involves two separate connections:</p><ol><li>The client connects to the proxy.</li><li>The client asks the proxy to open a tunnel to the destination.</li><li>The proxy validates the client.</li><li>The proxy creates the tunnel.</li><li>The client negotiates TLS with the destination through that tunnel.</li><li>The destination handles the HTTP request.</li></ol><p>A 407 error usually occurs at steps two or three.</p><p>That means the request may never reach the website you intended to access. Website cookies, browser fingerprints, target authentication, and anti-bot rules are not yet the primary issue.</p><p>This is why 407 should be logged separately from target responses such as 403 and 429.</p><h3>Start With the Raw Response</h3><p>Do not rely only on the top-level error message produced by your library. Inspect the underlying status code and headers.</p><p>You may see something like:</p><pre>HTTP/1.1 407 Proxy Authentication Required<br>Proxy-Authenticate: Basic realm=&quot;Restricted Proxy&quot;<br>Connection: close</pre><p>The Proxy-Authenticate header tells the client that the intermediary expects authentication. Depending on the proxy, the scheme may be Basic, Digest, NTLM, Negotiate, or a provider-specific implementation.</p><p>Commercial proxy services most commonly use username-password authentication or public-IP authorization.</p><h3>Step 1: Build a Minimal Reproduction</h3><p>Remove your scraper, browser, queue, session manager, rotation logic, and retry middleware from the equation.</p><p>Test one proxy directly:</p><pre>curl -v \<br>  -x http://proxy.example.com:8000 \<br>  -U &quot;username:password&quot; \<br>  https://httpbin.org/ip</pre><p>For an ordinary HTTP destination:</p><pre>curl -v \<br>  -x http://proxy.example.com:8000 \<br>  -U &quot;username:password&quot; \<br>  http://example.com/</pre><p>A minimal reproduction answers three important questions:</p><ul><li>Is the endpoint reachable?</li><li>Are the credentials accepted?</li><li>Can the proxy forward a request?</li></ul><p>If this test fails with 407, your application is not the immediate problem.</p><p>If it succeeds, compare the cURL configuration with your application configuration character by character.</p><h3>Step 2: Confirm the Authentication Model</h3><p>There are two common setups.</p><h4>Username and Password</h4><p>The client authenticates by submitting assigned credentials.</p><p>Depending on the tool, those credentials may be embedded in the URL:</p><pre>http://username:password@proxy.example.com:8000</pre><p>Or supplied through a dedicated option:</p><pre>--proxy-user username:password</pre><p>Dedicated credential fields are preferable because they reduce parsing problems and accidental credential exposure.</p><h4>IP Authentication</h4><p>The proxy provider authorizes requests coming from an approved public IP address.</p><p>No username or password may be required, but the correct outbound IP must be registered.</p><p>This fails frequently in modern deployments because the IP you expect is not necessarily the IP the proxy provider sees.</p><p>The real outbound IP may belong to:</p><ul><li>A NAT gateway</li><li>A cloud load balancer</li><li>A VPN</li><li>A CI/CD runner</li><li>A Kubernetes node</li><li>A serverless platform</li><li>An office firewall</li></ul><p>Run an external IP check from the same runtime environment as the proxy request.</p><h3>Step 3: Inspect Credential Encoding</h3><p>Consider this proxy password:</p><pre>test@proxy:2026</pre><p>Placed directly in a URL, @ may be interpreted as the end of the credential section, while : can be interpreted as a username-password separator.</p><p>The safe approach is to percent-encode both values.</p><p>Python example:</p><pre>from urllib.parse import quote<br><br>username = quote(&quot;customer-name&quot;, safe=&quot;&quot;)<br>password = quote(&quot;test@proxy:2026&quot;, safe=&quot;&quot;)<br><br>proxy = (<br>    f&quot;http://{username}:{password}&quot;<br>    &quot;@proxy.example.com:8000&quot;<br>)</pre><p>Node.js example:</p><pre>const username = encodeURIComponent(&quot;customer-name&quot;);<br>const password = encodeURIComponent(&quot;test@proxy:2026&quot;);<br><br>const proxyUrl =<br>  `http://${username}:${password}` +<br>  `@proxy.example.com:8000`;</pre><p>Do not encode the entire URL at once. Encode the username and password independently.</p><h3>Step 4: Verify That the Library Sends Proxy Credentials</h3><p>A correct-looking proxy URL does not guarantee that the client will send credentials.</p><p>Some libraries:</p><ul><li>Strip credentials from URLs.</li><li>Require a separate proxy-authentication option.</li><li>Handle HTTP and HTTPS proxying differently.</li><li>Ignore proxy settings for certain request adapters.</li><li>Drop credentials during redirects.</li><li>Do not support authenticated proxies in all transports.</li><li>Use environment variables that override code-level settings.</li></ul><p>Inspect debug logs or capture the proxy connection in a controlled test environment.</p><p>For Basic proxy authentication, the proxy typically expects a header similar to:</p><pre>Proxy-Authorization: Basic &lt;encoded-value&gt;</pre><p>Do not log the actual encoded value. Base64 encoding is reversible and should be treated like the original password.</p><h3>Python Requests Example</h3><pre>import requests<br>from urllib.parse import quote<br><br>user = quote(&quot;proxy_user&quot;, safe=&quot;&quot;)<br>password = quote(&quot;proxy_password&quot;, safe=&quot;&quot;)<br>endpoint = &quot;proxy.example.com:8000&quot;<br><br>proxy_url = f&quot;http://{user}:{password}@{endpoint}&quot;<br><br>session = requests.Session()<br>session.proxies.update({<br>    &quot;http&quot;: proxy_url,<br>    &quot;https&quot;: proxy_url,<br>})<br><br>try:<br>    response = session.get(<br>        &quot;https://httpbin.org/ip&quot;,<br>        timeout=(10, 20),<br>    )<br>    response.raise_for_status()<br>    print(response.json())<br>except requests.exceptions.ProxyError as exc:<br>    print(f&quot;Proxy connection failed: {exc}&quot;)<br>except requests.exceptions.HTTPError as exc:<br>    print(f&quot;HTTP error: {exc.response.status_code}&quot;)</pre><p>Remember that an HTTP proxy can carry HTTPS traffic through the CONNECT method. The proxy URL often still begins with http:// even when the destination begins with <a href="https://./">https://.</a></p><p>Changing it blindly to https:// can create a new TLS or compatibility error.</p><h3>HTTPX Example</h3><p>HTTPX proxy configuration varies by version, so confirm the syntax supported by the version installed in your environment.</p><p>A typical synchronous pattern is:</p><pre>import httpx<br>from urllib.parse import quote<br><br>user = quote(&quot;proxy_user&quot;, safe=&quot;&quot;)<br>password = quote(&quot;proxy_password&quot;, safe=&quot;&quot;)<br><br>proxy_url = (<br>    f&quot;http://{user}:{password}&quot;<br>    &quot;@proxy.example.com:8000&quot;<br>)<br><br>with httpx.Client(<br>    proxy=proxy_url,<br>    timeout=20.0,<br>) as client:<br>    response = client.get(&quot;https://httpbin.org/ip&quot;)<br>    response.raise_for_status()<br>    print(response.json())</pre><p>A subtle version mismatch can make an otherwise correct example fail. Check the actual installed package rather than copying configuration syntax from an older tutorial.</p><h3>Axios and Node.js</h3><p>Axios proxy behavior can become confusing when combined with HTTPS destinations, environment variables, and custom agents.</p><p>For complex authenticated proxy workflows, a dedicated proxy agent is often clearer:</p><pre>import axios from &quot;axios&quot;;<br>import { HttpsProxyAgent } from &quot;https-proxy-agent&quot;;<br><br>const user = encodeURIComponent(&quot;proxy_user&quot;);<br>const password = encodeURIComponent(&quot;proxy_password&quot;);<br><br>const proxyUrl =<br>  `http://${user}:${password}` +<br>  `@proxy.example.com:8000`;<br><br>const agent = new HttpsProxyAgent(proxyUrl);<br><br>const response = await axios.get(<br>  &quot;https://httpbin.org/ip&quot;,<br>  {<br>    httpsAgent: agent,<br>    proxy: false,<br>    timeout: 20000<br>  }<br>);<br><br>console.log(response.data);</pre><p>Setting proxy: false prevents Axios from applying a second proxy configuration on top of the custom agent.</p><h3>Browser Automation Complications</h3><p>Puppeteer and Playwright generally need the proxy server configured when the browser launches.</p><p>Puppeteer example:</p><pre>const browser = await puppeteer.launch({<br>  args: [<br>    &quot;--proxy-server=http://proxy.example.com:8000&quot;<br>  ]<br>});<br><br>const page = await browser.newPage();<br><br>await page.authenticate({<br>  username: &quot;proxy_user&quot;,<br>  password: &quot;proxy_password&quot;<br>});</pre><p>Potential failure points include:</p><ul><li>Authentication is called after navigation begins.</li><li>Credentials are assigned to the wrong page.</li><li>Browser contexts do not share the expected authentication state.</li><li>A proxy extension conflicts with launch arguments.</li><li>The browser does not support the provider’s challenge type.</li><li>The application confuses website authentication with proxy authentication.</li></ul><p>Always test a single blank page before adding login flows, cookies, stealth plugins, or parallel contexts.</p><h3>Why Retrying Can Make the Problem Worse</h3><p>Authentication failure is normally deterministic.</p><p>If the username is wrong, retrying it 50 times does not improve the outcome. Instead, it can:</p><ul><li>Flood logs.</li><li>Trigger temporary account protection.</li><li>Waste worker capacity.</li><li>Hide the original error inside retry exceptions.</li><li>Make a deployment look like a network outage.</li></ul><p>Classify 407 as a non-retryable error unless your system can refresh credentials, update an allowlist, or switch to a separately authenticated account.</p><p>For a broader classification of failure responses, see <a href="https://medium.com/@proxiesthatwork/common-proxy-errors-and-how-to-fix-them-76dd1bc27c5d">common proxy errors and how to fix them</a>.</p><h3>Debugging Proxy Pools</h3><p>When using a large proxy pool, test three layers separately:</p><h4>Account Layer</h4><p>Can any proxy authenticate using the account?</p><p>If none can, investigate credentials, subscription status, secret deployment, and allowlisting.</p><h4>Endpoint Layer</h4><p>Can one specific host and port authenticate?</p><p>If most endpoints work but one does not, remove or quarantine the failing endpoint.</p><h4>Application Layer</h4><p>Can the same working endpoint authenticate through your production client?</p><p>If cURL succeeds but production fails, inspect URL parsing, environment variables, agents, browser timing, and secret injection.</p><p>Teams deploying <a href="https://www.proxiesthatwork.com/pricing">bulk datacenter proxies</a> should run a small authentication preflight before starting high-concurrency workloads. This catches expired credentials and deployment mistakes before the main job consumes resources.</p><h3>Recommended 407 Error Log Fields</h3><p>Log enough context to identify patterns without exposing secrets:</p><pre>timestamp<br>worker_id<br>proxy_host<br>proxy_port<br>authentication_mode<br>source_environment<br>response_status<br>proxy_auth_scheme<br>attempt_number<br>configuration_version</pre><p>Never log:</p><pre>proxy_password<br>Proxy-Authorization header<br>complete authenticated proxy URL<br>provider API token</pre><h3>Final Diagnosis Sequence</h3><p>When HTTP 407 appears, use this order:</p><ol><li>Capture the real status code and proxy headers.</li><li>Test one endpoint with cURL.</li><li>Confirm the required authentication model.</li><li>Validate the account and subscription.</li><li>Check the public outbound IP.</li><li>Encode the username and password.</li><li>Verify the host, port, and protocol.</li><li>Compare application behavior with the working cURL request.</li><li>Disable conflicting environment or system proxy settings.</li><li>Treat 407 as non-retryable until configuration changes.</li></ol><p>HTTP 407 is usually straightforward once you stop treating it as a generic connection failure. Isolate the proxy handshake, prove one endpoint works, and only then restore the rest of the application stack.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8fc0d1e6992" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using HTTPX with Proxies (Sync and Async)]]></title>
            <link>https://medium.com/@proxiesthatwork/using-httpx-with-proxies-sync-async-c967f117f4aa?source=rss-41bcc2cf79f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/c967f117f4aa</guid>
            <category><![CDATA[async-programming]]></category>
            <category><![CDATA[proxy]]></category>
            <category><![CDATA[httpx]]></category>
            <category><![CDATA[web-scraping]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[ProxiesThatWork]]></dc:creator>
            <pubDate>Wed, 05 Aug 2026 12:47:12 GMT</pubDate>
            <atom:updated>2026-08-05T12:54:34.074Z</atom:updated>
            <content:encoded><![CDATA[<h4>A practical Python guide to configuring HTTPX proxies, managing sync and async requests, handling errors, and controlling concurrency.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-feMjsO3b87CcwUkNoFpvg.png" /></figure><p>HTTPX lets Python developers send requests through proxies using either a synchronous Client or an asynchronous AsyncClient. Pass the proxy URL through the proxy parameter, reuse the client for connection pooling, and add explicit timeouts and exception handling. Async HTTPX is most useful when many independent network requests must run concurrently.</p><p>Python’s Requests library remains popular, but HTTPX is often a better fit when a scraping or automation project needs both synchronous simplicity and asynchronous concurrency.</p><p>The API feels familiar to anyone who has used Requests. However, HTTPX adds native async support, optional HTTP/2 support, granular timeout controls, connection pooling, and a consistent interface across small scripts and larger data pipelines.</p><p>This guide explains how to use HTTPX with proxies in both sync and async Python code.</p><h3>Install HTTPX</h3><p>Install the standard package with pip:</p><pre>pip install httpx</pre><p>For SOCKS proxy support, install the optional SOCKS dependencies:</p><pre>pip install &quot;httpx[socks]&quot;</pre><p>You can confirm the installation with:</p><pre>import httpx<br><br>print(httpx.__version__)</pre><p>Store proxy credentials in environment variables or a secret manager rather than placing real usernames and passwords directly inside production code.</p><h3>The Basic HTTPX Proxy Format</h3><p>HTTPX accepts a proxy URL through the proxy argument:</p><pre>proxy_url = &quot;http://proxy.example.com:8000&quot;</pre><p>An authenticated proxy normally follows this format:</p><pre>proxy_url = &quot;http://username:password@proxy.example.com:8000&quot;</pre><p>Despite requesting an HTTPS destination, the proxy URL will often still begin with http://. That is normal for many HTTP proxy configurations because the client establishes a connection to the proxy before creating a tunnel to the HTTPS destination.</p><p>Always use the connection format supplied by your proxy provider.</p><h3>Using an HTTPX Proxy Synchronously</h3><p>For a single test request, you can pass a proxy to httpx.get():</p><pre>import httpx<br><br>proxy_url = &quot;http://username:password@proxy.example.com:8000&quot;<br><br>response = httpx.get(<br>    &quot;https://httpbin.org/ip&quot;,<br>    proxy=proxy_url,<br>    timeout=10.0,<br>)<br><br>response.raise_for_status()<br>print(response.json())</pre><p>This is acceptable for testing, but it is not the best design for a crawler that sends many requests.</p><p>Each top-level call may create a new connection. A reusable httpx.Client can preserve connections, cookies, headers, and other session-level settings.</p><h3>Reusing a Synchronous Client</h3><p>Use a context manager so that HTTPX closes its network resources correctly:</p><pre>import httpx<br><br>proxy_url = &quot;http://username:password@proxy.example.com:8000&quot;<br><br>timeout = httpx.Timeout(<br>    connect=10.0,<br>    read=20.0,<br>    write=10.0,<br>    pool=10.0,<br>)<br><br>with httpx.Client(<br>    proxy=proxy_url,<br>    timeout=timeout,<br>    follow_redirects=True,<br>) as client:<br>    response = client.get(&quot;https://httpbin.org/ip&quot;)<br>    response.raise_for_status()<br><br>    print(response.json())</pre><p>A shared client provides connection pooling. That reduces the overhead of repeatedly establishing TCP and TLS connections when the same proxy and destination are used across multiple requests.</p><p>It also gives you one place to configure:</p><ul><li>Default headers</li><li>Cookies</li><li>Authentication</li><li>Redirect behavior</li><li>Timeouts</li><li>Connection limits</li><li>Proxy settings</li></ul><p>For a broader comparison of Python networking libraries, see this breakdown of <a href="https://medium.com/@proxiesthatwork/httpx-vs-requests-vs-aiohttp-proxy-web-scraping-ac3b7118c245">HTTPX, Requests, and AIOHTTP for proxy-based web scraping</a>.</p><h3>Adding Headers</h3><p>A proxy changes where a request originates, but it does not make the request look like a normal browser automatically.</p><p>You may still need realistic, consistent headers:</p><pre>import httpx<br><br>headers = {<br>    &quot;User-Agent&quot;: (<br>        &quot;Mozilla/5.0 (Windows NT 10.0; Win64; x64) &quot;<br>        &quot;AppleWebKit/537.36 Chrome/124.0 Safari/537.36&quot;<br>    ),<br>    &quot;Accept&quot;: (<br>        &quot;text/html,application/xhtml+xml,application/xml;&quot;<br>        &quot;q=0.9,image/avif,image/webp,*/*;q=0.8&quot;<br>    ),<br>    &quot;Accept-Language&quot;: &quot;en-US,en;q=0.9&quot;,<br>}<br><br>with httpx.Client(<br>    proxy=&quot;http://username:password@proxy.example.com:8000&quot;,<br>    headers=headers,<br>    follow_redirects=True,<br>    timeout=15.0,<br>) as client:<br>    response = client.get(&quot;https://example.com&quot;)<br>    print(response.status_code)</pre><p>Randomizing every header on every request can be worse than using one coherent profile. Header combinations, cookies, proxy location, and request behavior should remain logically consistent.</p><h3>Using HTTPX with an Async Proxy</h3><p>The async API uses httpx.AsyncClient.</p><pre>import asyncio<br>import httpx<br><br>async def main() -&gt; None:<br>    proxy_url = &quot;http://username:password@proxy.example.com:8000&quot;<br><br>    async with httpx.AsyncClient(<br>        proxy=proxy_url,<br>        timeout=15.0,<br>        follow_redirects=True,<br>    ) as client:<br>        response = await client.get(&quot;https://httpbin.org/ip&quot;)<br>        response.raise_for_status()<br><br>        print(response.json())<br><br>if __name__ == &quot;__main__&quot;:<br>    asyncio.run(main())</pre><p>The configuration is almost identical to the synchronous version. The main differences are:</p><ul><li>Use AsyncClient</li><li>Enter the client with async with</li><li>Await network operations</li><li>Run the coroutine through an event loop</li></ul><p>Async code does not automatically make one request faster. Its advantage appears when the program can work on other requests while it waits for network responses.</p><h3>Sending Concurrent Requests</h3><p>Use asyncio.gather() to run multiple request coroutines:</p><pre>import asyncio<br>import httpx<br><br>URLS = [<br>    &quot;https://example.com&quot;,<br>    &quot;https://httpbin.org/headers&quot;,<br>    &quot;https://httpbin.org/user-agent&quot;,<br>]<br><br>async def fetch(<br>    client: httpx.AsyncClient,<br>    url: str,<br>) -&gt; tuple[str, int]:<br>    response = await client.get(url)<br>    response.raise_for_status()<br>    return url, response.status_code<br><br>async def main() -&gt; None:<br>    proxy_url = &quot;http://username:password@proxy.example.com:8000&quot;<br><br>    async with httpx.AsyncClient(<br>        proxy=proxy_url,<br>        timeout=15.0,<br>    ) as client:<br>        results = await asyncio.gather(<br>            *(fetch(client, url) for url in URLS),<br>            return_exceptions=True,<br>        )<br><br>    for result in results:<br>        print(result)<br><br>if __name__ == &quot;__main__&quot;:<br>    asyncio.run(main())</pre><p>This works well for a small batch. It becomes risky when thousands of URLs are passed to gather() without a concurrency limit.</p><h3>Limit Async Concurrency</h3><p>A semaphore prevents the crawler from opening too many simultaneous requests:</p><pre>import asyncio<br>import httpx<br><br>CONCURRENCY = 10<br>semaphore = asyncio.Semaphore(CONCURRENCY)<br><br>async def fetch(<br>    client: httpx.AsyncClient,<br>    url: str,<br>) -&gt; dict:<br>    async with semaphore:<br>        response = await client.get(url)<br>        response.raise_for_status()<br><br>        return {<br>            &quot;url&quot;: url,<br>            &quot;status&quot;: response.status_code,<br>            &quot;bytes&quot;: len(response.content),<br>        }</pre><p>Higher concurrency is not always better. Excessive parallelism can:</p><ul><li>Overload the proxy</li><li>Exhaust the connection pool</li><li>Increase timeout rates</li><li>Trigger rate limits</li><li>Produce obvious traffic bursts</li><li>Waste requests on repeated failures</li></ul><p>Start conservatively and increase concurrency only after measuring successful responses, latency, block rates, and proxy utilization.</p><h3>Handle HTTPX Exceptions</h3><p>A reliable scraper should distinguish between request failures and unsuccessful HTTP responses:</p><pre>import httpx<br><br>def fetch_page(client: httpx.Client, url: str) -&gt; str | None:<br>    try:<br>        response = client.get(url)<br>        response.raise_for_status()<br>        return response.text<br><br>    except httpx.ProxyError as exc:<br>        print(f&quot;Proxy error for {url}: {exc}&quot;)<br><br>    except httpx.TimeoutException as exc:<br>        print(f&quot;Timeout for {url}: {exc}&quot;)<br><br>    except httpx.HTTPStatusError as exc:<br>        print(<br>            f&quot;HTTP {exc.response.status_code} &quot;<br>            f&quot;for {exc.request.url}&quot;<br>        )<br><br>    except httpx.RequestError as exc:<br>        print(f&quot;Request failed for {exc.request.url}: {exc}&quot;)<br><br>    return None</pre><p>Do not retry every failure identically.</p><p>A timeout may justify another attempt. A 407 Proxy Authentication Required response usually means the credentials or authorization settings are wrong. A repeated 403 Forbidden response may indicate that changing only the IP will not solve the underlying detection issue.</p><h3>Rotating Through Multiple Proxies</h3><p>For modest workloads, you can assign requests across a proxy list:</p><pre>from itertools import cycle<br>import httpx<br><br>proxies = [<br>    &quot;http://user:pass@proxy1.example.com:8000&quot;,<br>    &quot;http://user:pass@proxy2.example.com:8000&quot;,<br>    &quot;http://user:pass@proxy3.example.com:8000&quot;,<br>]<br><br>proxy_cycle = cycle(proxies)<br><br>for url in [&quot;https://example.com&quot;] * 3:<br>    proxy_url = next(proxy_cycle)<br><br>    try:<br>        with httpx.Client(<br>            proxy=proxy_url,<br>            timeout=10.0,<br>        ) as client:<br>            response = client.get(url)<br>            print(proxy_url, response.status_code)<br><br>    except httpx.RequestError as exc:<br>        print(proxy_url, exc)</pre><p>Creating a new client for every request sacrifices much of the benefit of connection pooling. For sustained jobs, group requests by proxy or maintain a controlled collection of reusable clients.</p><p>As request volume grows, <a href="https://www.proxiesthatwork.com/blog/building-a-scalable-proxy-pool-with-bulk-datacenter-proxies">affordable bulk proxy pools</a> can provide enough IP capacity to distribute traffic without concentrating every request on a few overused addresses.</p><h3>Sync or Async: Which Should You Use?</h3><p>Use synchronous HTTPX when:</p><ul><li>The script sends a small number of requests</li><li>Requests must happen sequentially</li><li>Simplicity is more important than throughput</li><li>The rest of the application is synchronous</li></ul><p>Use asynchronous HTTPX when:</p><ul><li>Many independent URLs must be requested</li><li>The workload is mostly waiting on network I/O</li><li>The surrounding application already uses asyncio</li><li>Concurrency must be controlled precisely</li></ul><p>Async should not be treated as permission to send unlimited parallel traffic. The best implementation balances concurrency, target limits, proxy capacity, and retry behavior.</p><h3>Final Takeaway</h3><p>HTTPX provides a clean path from a simple proxy test to a concurrent Python data collector.</p><p>Start with a reusable synchronous Client when the workload is small. Move to AsyncClient when waiting on many independent requests becomes the bottleneck. In either case, configure timeouts, reuse connections, classify errors, limit concurrency, and monitor proxy health.</p><p>The syntax is the easy part. Reliable proxy use comes from controlling how requests behave over time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c967f117f4aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Proxy Pools Work in Large Scraping Systems]]></title>
            <link>https://medium.com/@proxiesthatwork/how-proxy-pools-work-in-large-scraping-systems-48444c821bf1?source=rss-41bcc2cf79f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/48444c821bf1</guid>
            <category><![CDATA[web-scraping]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[proxy-server]]></category>
            <dc:creator><![CDATA[ProxiesThatWork]]></dc:creator>
            <pubDate>Thu, 30 Jul 2026 16:51:59 GMT</pubDate>
            <atom:updated>2026-07-30T16:51:59.071Z</atom:updated>
            <content:encoded><![CDATA[<h4>Rotation logic, health checks, and proxy types explained and why IP management alone won’t keep a scraper alive in production.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XoZM1sQFkE52vtwQY9-38w.png" /></figure><p>A proxy pool is a managed collection of IP addresses that a scraping system rotates through to spread out requests, avoid rate limits, and prevent bans. Large-scale scrapers draw from pools of hundreds to millions of IPs, rotating them per request or per session so traffic looks like it’s coming from many independent users instead of one bot.</p><h3>What a Proxy Pool Actually Is</h3><p>A proxy pool isn’t just a list of IPs sitting in a config file. In any serious scraping system, it’s a live, managed resource with its own lifecycle: proxies get added, tested, scored, retired, and replaced continuously. The pool has to answer, in real time, a simple question for every outgoing request: <em>which IP should send this one?</em></p><p>That decision depends on several inputs: how recently an IP was used, whether it’s currently rate-limited or banned on the target site, its geographic location, its latency, and sometimes its “reputation” score based on how the target has treated it historically. A pool manager is essentially a small routing layer sitting between your scraper’s request logic and the internet.</p><h3>Why Scale Changes Everything</h3><p>A hobby script scraping a few hundred pages a day can get away with a handful of proxies, or even none. Large scraping systems, the kind pulling millions of pages across e-commerce catalogs, search results, or job boards run into a different problem entirely: target sites actively fingerprint and block based on request volume per IP, request timing, and behavioral patterns.</p><p>Without a large, well-rotated pool, a scraper hits three walls fast:</p><ul><li><strong>Rate limiting</strong>, where the target site slows or throttles a single IP after a request threshold.</li><li><strong>Hard bans</strong>, where an IP gets blacklisted outright, sometimes for hours or permanently.</li><li><strong>CAPTCHA escalation</strong>, where the target starts serving verification challenges instead of data.</li></ul><p>A well-designed proxy pool spreads request volume thin enough, per IP, that none of these triggers fire. This is less about hiding and more about behaving like the thousands of independent, legitimate users a popular site actually expects to see.</p><h3>How Rotation Logic Actually Works</h3><p>Rotation sounds simple, “use a different IP each time” but production systems layer in several strategies depending on the target:</p><p><strong>Per-request rotation</strong> swaps the IP on every single outgoing call. This works well for stateless scraping, like pulling product listings where no login or session continuity is required.</p><p><strong>Sticky sessions</strong> keep one IP assigned to a task for a defined window, often 5 to 30 minutes, because some sites require session continuity (shopping carts, logged-in states, multi-step forms) and will flag an IP switch mid-session as suspicious.</p><p><strong>Weighted rotation</strong> favors IPs with better recent success rates and deprioritizes ones that have thrown errors, been slow, or gotten flagged, without removing them from the pool entirely.</p><p>Most production-grade systems run a hybrid: sticky sessions for stateful flows, aggressive per-request rotation for stateless bulk pulls, and a scoring system underneath both that continuously reshuffles which IPs are “hot” and which are cooling off.</p><h3>Health Checks and Pool Maintenance</h3><p>An unmaintained proxy pool degrades fast. IPs get blacklisted by targets, ISPs reclaim and reassign address blocks, and latency drifts as network conditions change. Serious scraping infrastructure runs continuous health checks, small test requests against the target or a neutral endpoint, to catch dead or degraded proxies before they burn a real scraping job.</p><p>When a proxy fails a health check, it typically gets quarantined rather than deleted outright, since some bans are temporary. A good pool manager tracks failure patterns over time and only permanently retires an IP once it’s been consistently unusable.</p><h3>Choosing Proxy Types for the Pool</h3><p>Not every proxy is interchangeable. Residential proxies route through real consumer ISPs and are harder for targets to detect, but they’re slower and pricier. Mobile proxies carry even more trust with anti-bot systems but cost more still. For high-volume, less fingerprint-sensitive targets, teams often lean on <a href="https://www.proxiesthatwork.com/pricing">bulk datacenter proxies</a> instead, since the lower cost per IP lets you run a much larger rotation pool for the same budget, a reasonable trade when the target isn’t running aggressive residential-IP detection.</p><p>The right mix usually isn’t one type, it’s a blended pool, with datacenter IPs handling bulk low-risk pulls and residential or mobile IPs reserved for higher-scrutiny targets.</p><h3>Where This Goes Wrong in Practice</h3><p>A proxy pool solves IP-level blocking, but it’s only one piece of a much larger reliability puzzle. Teams that build a solid rotation strategy and still watch their scrapers fail in production are usually running into issues further up the stack; request fingerprinting, header consistency, or parsing logic that breaks the moment a site changes its markup. If that sounds familiar, it’s worth reading through <a href="https://medium.com/@proxiesthatwork/why-web-scraping-fails-in-production-c1c6ee3ea36c">a closer look at why scraping systems break down once they leave the test environment</a>, which covers the failure modes a proxy pool alone can’t fix.</p><h3>Building It Right the First Time</h3><p>A proxy pool is infrastructure, not a config toggle. It needs continuous health monitoring, rotation logic matched to the target’s behavior, and a mix of proxy types matched to risk level. Get those three right, and IP-level blocking stops being the bottleneck in your scraping system, freeing you to focus on the parsing and fingerprinting problems that come next.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48444c821bf1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>