Disclosure: This site may contain affiliate links. If you make a purchase through these links, we may receive a commission at no additional cost to you. However, all opinions are our own.
Almost everyone has the same first thought: why run a browser on a server when you have curl and a couple of lines of PHP? That’s enough as long as pages are served without protection. Then some sites start returning 403, and it becomes clear that bot protection needs more than a request—it needs a real browser. You can run one on a regular VPS without a monitor or desktop environment; this is called headless mode. Then you add proxies: first datacenter proxies, and when those don’t help either, residential (home) proxies.
Below is my real-world case: checking purchased links on platforms, installing Playwright on Ubuntu, the “ladder” setup, and the test results for 13 pages that wouldn’t open before.
Why run a browser on a server: curl gets 403 and 530
I buy links, mostly crowd profiles on various sites. Every so often, I need to check them again: is the link still on the page, is it dofollow or nofollow, and is the page blocked by a noindex tag? Sounds simple: download the HTML and search for my Domain.
In practice, some sites respond to this kind of request with a 403, and some with a 530. This is bot protection, most often Cloudflare: it sees that the request didn’t come from a browser and blocks it. A third-party SEO service I tried got the same response from those pages, so its report marked the links as “unavailable” or “not found,” and there was no way to tell what had happened to them.
Playwright launches real Chromium: it runs JavaScript, keeps cookies, and passes some checks on its own. It’s a perfect fit for checking links. My server is a regular one: Ubuntu 26.04 LTS, 4 cores, around 4 GB of RAM, no graphical interface. Headless mode doesn’t need a monitor; the browser renders the page in memory.
Installing Playwright and Chromium on Ubuntu without a GUI
If you installed Node.js from the standard Ubuntu repository without a package manager, install it now:
sudo apt install npm From here on, work in the project folder as a regular user. You don’t need to run the browser as root: Chromium complains about the sandbox in that case, and there’s no need to keep extra privileges on the server.
npm init -y
npm i playwright
npx playwright install chromium The last command downloads Chromium and the lightweight Chrome Headless Shell, about 125 MB in total. They’ll be stored in ~/.cache/ms-playwright. You can check that everything worked by looking in this folder: it will contain directories with browser versions.
System libraries are still needed. I recommend not installing them blindly, but first checking what will be installed:
npx playwright install-deps --dry-run chromium The command doesn’t install anything; it only prints a list of missing packages. My server was missing only fonts and xvfb, 13 packages in all. I installed them with the usual sudo apt install ...; you can also do it with a single command: sudo npx playwright install-deps chromium. But with dry-run, you can at least see exactly what will be added to the server and avoid being surprised by extra packages later.
After that, the browser opens pages without any Screen. For searches like “headless chrome on vps” and “playwright ubuntu,” that’s basically all there is to it: no Xorg, VNC, or remote desktop.
A Scraping and 403 Bypass Script: Stealth Settings and a Proxy Ladder
My script is in Node.js. The main idea is simple: use the cheap option first, and the expensive one only when needed.
- First, connect directly from the server’s own IP. Traffic is free.
- If I get a 403 or a CAPTCHA, I retry through datacenter proxies.
- If that’s rejected too, the final step is residential proxies.
This way, proxy traffic is used only for pages that can’t be opened otherwise. The sequence isn’t arbitrary: datacenter IPs sometimes get challenged where the server’s IP got through without any issues, because sites assess networks differently. So it makes more sense to start with a direct connection than to immediately use the “strongest” option.
To make the browser look less like a bot, I changed a few things:
- User-Agent: headless browsers include the word HeadlessChrome in it, so I replace it with a regular Chrome string;
- the language is set to en-US and the window to 1366×768, like an average user’s;
navigator.webdriveris hidden, since it makes a browser controlled by a script easy to identify.
Another way to save: I block images, fonts, and videos using page.route with abort. They aren’t needed to check a link, and proxy traffic is measured in gigabytes.
await page.route('**/*', (route) => {
const type = route.request().resourceType();
['image', 'media', 'font'].includes(type) ? route.abort() : route.continue();
}); If the script sees a Cloudflare challenge page (“Just a moment”), it waits up to 15 seconds: some of these challenges resolve on their own. Then it looks for links to my domain on the page, reads the rel attribute (nofollow, ugc, and similar values) and the meta robots tag. Each page gets one of five results: dofollow, nofollow, noindex, no link, or access denied.
Proxies in Playwright: How to Connect DataImpulse
For the staircase, I needed both datacenter and residential proxies. I chose DataImpulse: the service offers both types, as well as mobile proxies. I was given 5 GB of traffic to test, and all the figures below are based on that.
Connecting to Playwright takes three lines. There’s a single gateway, gw.dataimpulse.com: port 823 for HTTP, port 824 for SOCKS5, with username and password authentication.
const context = await browser.newContext({
proxy: { server: 'http://gw.dataimpulse.com:823', username: 'LOGIN', password: 'PASSWORD' }
}); I keep the username and password in a separate file outside git, not in the code. There are separate credentials in the dashboard for datacenter and residential proxies, so I have two pairs in my script.
Before launching the browser, test the proxy from the command line so you don’t have to track down an error in the code later:
curl -x "http://LOGIN:PASSWORD@gw.dataimpulse.com:823" https://api.ipify.org/ 
You’ll get an IP address in response. Run the command again: the address should change because a new one is assigned for each request (rotation), though you can enable Sticky mode. I configured US addresses. Datacenter proxies use hosting company networks, while residential proxies use home internet providers. SOCKS5 on port 824 is needed when you send more than just web pages through the proxy, such as UDP traffic (WebRTC, QUIC, voice, and video). I didn’t test UDP support, and HTTP on port 823 is enough for checking links. You can choose the country in the dashboard or in the username, but I didn’t test that option in detail.
A note about payment, because it’s easy to get this wrong. DataImpulse charges for traffic, not for an IP address or a subscription. According to the prices on the service’s website: residential proxies start at $1 per GB, datacenter proxies cost $0.50 per GB, and mobile proxies cost $2 per GB. Your traffic doesn’t expire, so you buy an amount once and use it as needed, even over the course of a year. This arrangement works well for my needs: checks run in batches, and the proxies sit idle between them. If I paid per IP address, I’d be paying for idle time too.
One thing to keep in mind: from the browser’s perspective, you’re charged for everything that passes through the proxy, including heavy page scripts. So blocking images and videos, as described in the previous section, directly affects your usage.
What the test on 13 pages showed
I took 13 pages from sites that had previously returned 403 or 530 errors during a regular check and ran them through the escalation ladder.
- Direct server IP. The browser got through on its own on 5 out of 13 pages. That alone is an advantage of headless over curl: no proxies and no extra costs.
- DataImpulse datacenter proxies. They got through on 2 more pages: the server IP received a 403 with a Cloudflare check, while the page opened through a datacenter address.
- Residential proxies. They got through on 2 more pages where both the server and datacenter IPs received 403 errors. A forum with a Cloudflare check opened through a residential address in about 6 seconds. On the major art site deviantart, the direct IP and datacenter proxy received instant 403 errors, while the page opened through a residential proxy.
That makes 9 out of 13. Of the remaining four, two sites are behind Cloudflare Turnstile (an interactive check), one returns a 403 to everyone, and one returns a 530 error, which looks like a problem with the site itself rather than its protection.
The most interesting finding was in the content. Of the 9 pages checked, not a single one had a dofollow link. Most were nofollow, some had noindex, and on one page the link had disappeared entirely. In other words, links listed as active in reports from paid tracking services were actually not working. Without a proper check, I wouldn’t have found this out and would have kept counting them as active.
Now for the bandwidth. With heavy JS pages and images blocked, a page uses 0.4 to 7 MB through a proxy, usually 1–2.5 MB. For comparison, running all 13 pages through all three modes used about 46 MB. In real-world use, proxies are only enabled when a request is blocked, so 5 GB is enough for thousands of checks.
As for timing: a direct request takes 1–8 seconds, while residential proxies usually take 6–20. That’s fine for regular checks, and you can queue up hundreds of pages for an overnight run.
The remaining two sites with Turnstile can’t be accessed with a bare headless browser: it waits for an interactive check that the script can’t pass. For these cases, you need an Antidetect Browser, and in the next article I’ll explain how to set one up on a server.
Recommendations by Scenario
If you’re checking your links on referring domains, start with a direct request from Playwright: five out of thirteen worked for me without using a single megabyte of proxy traffic. Add datacenter proxies as the second step; they’re cheaper.
If some pages return 403 even through a datacenter proxy, you’ll need residential proxies. I’d add them only as the final step in the ladder and start with a small amount to test: paying for traffic means you won’t overpay, and the unused balance won’t expire.
If you’re dealing with pages that use Cloudflare Turnstile, neither proxies nor Playwright will help on their own. You’ll need an Antidetect Browser that can be installed on Linux, such as Vision Antidetect Browser.
And two practical tips: don’t run the browser as root, and always check install-deps --dry-run first. If DataImpulse suits your needs, you can start with a test amount, as I did, and try it on 10–15 of your own problem pages.


