This is a serverless function for running a mirror to the Kinozal torrent tracker.
The proxy was created to access the tracker in the Kinozal-Bot project without using a VPN, for this reason, there is an access restriction at the level of checking the agent used when sending requests.
The proxy is not universal and needs improvement to proxy to other domains.
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Use the button below and following the instructions:
Check out Next.js deployment documentation for more details.
To use a mirror in the Kinozal-Bot project, disable the proxy and change the server address:
PROXY="False"
KZ_ADDR="https://kinozal.vercel.app"
To access the mirror from your web browser, you can use UserAgent-Switcher and import the example configuration in the extension settings:
https://raw.githubusercontent.com/Lifailon/Kinozal-Proxy/refs/heads/rsa/user-agent-switcher.json
It is recommended to launch your application from this is repository to avoid unnecessary load on one copy, as well as to ensure the safety of your authorization data in the tracker.
- Handling request redirects via Next.js.
- Getting cookies via the fetch-cookie and saving authorization data for subsequent requests via the tough-cookie library.
- Decoding the page to update the download url on the description page via the iconv-lite library.
- Custom function for decode Cyrillic (
decodeCyrillic
in middleware) when processing search queries in russian language.