Pend Proxy v1: isolated proxy browser on Cloudflare Workers — editable device + browser profiles, per-profile cookie jars
This commit is contained in:
commit
5dbf63b227
4 files changed
+328
No files matched your search
@@ -0,0 +1,52 @@
|
||||
# Pend Proxy
|
||||
|
||||
Isolated proxy browser on Cloudflare Workers. Browse any site through the Worker
|
||||
with a device + browser of your choice — each profile is its own isolated session
|
||||
with its own cookie jar.
|
||||
|
||||
## Features
|
||||
|
||||
- **Device & browser profiles** — create/edit profiles: device name, browser
|
||||
(Chrome / Firefox / Safari / Edge), version, OS. The User-Agent is auto-built
|
||||
from your choices and is fully editable.
|
||||
- **Isolated sessions** — every profile keeps its own cookies (stored in your
|
||||
browser's localStorage, per profile). Switching profiles = a clean, separate
|
||||
session. "Clear cookies" wipes one profile only.
|
||||
- **In-page navigation** — links clicked inside the viewer stay inside the proxy.
|
||||
- **Private-host guard** — localhost / private IPs are blocked server-side.
|
||||
|
||||
## Deploy (Cloudflare Workers)
|
||||
|
||||
1. Create a Worker in the Cloudflare dashboard (Workers & Pages → Create).
|
||||
2. Paste `worker.js` as the Worker code and Deploy. No bindings needed.
|
||||
3. Open the Worker's URL. Free tier is enough.
|
||||
|
||||
Or with Wrangler (needs a Cloudflare API token):
|
||||
|
||||
```sh
|
||||
npx wrangler deploy
|
||||
```
|
||||
|
||||
## Local test
|
||||
|
||||
```sh
|
||||
npm install
|
||||
npx wrangler dev worker.js --port 8787
|
||||
# open http://127.0.0.1:8787/
|
||||
```
|
||||
|
||||
## How it works
|
||||
|
||||
- `GET /` serves the UI (embedded in the Worker).
|
||||
- `POST /api/fetch` `{ url, ua, cookies }` → the Worker fetches the URL with
|
||||
your profile's User-Agent + that profile's cookies, and returns
|
||||
`{ status, finalUrl, contentType, body, setCookies }`.
|
||||
- The UI stores each profile's cookies separately and sends only that
|
||||
profile's jar with each request.
|
||||
|
||||
## Honest limits
|
||||
|
||||
- Simple proxy: pages render, but heavy JS apps (YouTube, logged-in apps) may
|
||||
not fully work through it — API calls from inside the page don't all route
|
||||
through the proxy.
|
||||
- A datacenter IP (Cloudflare's) can still be bot-checked by some sites.
|
||||
Reference in new issue
Block a user