Ā© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•16mo ago
kiwi

šŸŒŽ Workers Browser Rendering Puppeteer Geolocation

I've created and deployed a Cloudflare Worker that uses Browser Rendering and Puppeteer to crawl a website.
My issue is that the website content is based on the IP location of the Cloudflare Server location, and not the user making the call.

āŒ There is no way of adding a query parameter to the actual url to adjust the locale (gl/hl).
āŒ I've tried to solve this on the Puppeteer level, by implementing various techniques from here, including setGeoLocation: https://zirkelc.dev/posts/puppeteer-language-experiment

Despite making all the changes to the Puppeteer environment, the browser still manages to capture the location of the actual Cloudflare Server location. When visiting https://ipwho.is/, I always get the incorrect data back.

How do I go about to solve this? Are proxies the only way forward? Where in the stack can I approach this issue successfully?
This is the current states of my attempts so far:
ā“ Cloudflare Worker
āš™ļø/āŒ Puppeteer
āŒ URL parameters

Thank you.
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Browser Rendering API Puppeteer not rendering a PDF
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
16mo ago
Browser rendering
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
12mo ago
browser rendering
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
2y ago
Hackathon: Access to Workers Browser Rendering API needed
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago