A simple proxy that echo the response a website.
-
Download Bun.sh
-
Download this repo
-
Download dependencies:
bun install
-
Set up environment:
HOSTNAME=<hostname, default is 127.0.0.1> PORT=<port, default is 7000> -
Run it:
bun run index.ts
Make a request to the proxy. Put the target url in url query (/?url=<put the target url here>).
The proxy will make a request to the target use the method of your request, then response the response from that server.
The header is sliced. Which mean the header in your request and from server response is not included.