A simple proxy that uses the Cloudflare Worker Fetch API to send requests to the Lodestone. It enables FFXIV Collect and Lodestone News to overcome network restrictions placed on their VPS provider.
git clone https://github.com/skyborn-industries/lodestone-proxy
cd lodestone-proxy
npm install
npm run dev
http://127.0.0.1:8787?url=https://na.finalfantasyxiv.com/lodestone/character/7660136
This will return a response from the given Lodestone URL. Add &mobile=1 to use a mobile user agent.
Since workers have usage-based billing and will gladly send a request to any URL, it is important to secure access. This can be done with some basic custom security rules via Cloudflare.
- Disable the workers.dev and Preview URL domains
- Add a custom domain
- Block traffic to the custom domain unless it comes from your server
(http.host eq "proxy.example.com" and ip.src ne 1.2.3.4)