Ultraviolet is an open-source, highly sophisticated web proxy library created by Titanium Network. It is widely used to bypass internet censorship and firewalls by intercepting and rewriting HTTP requests directly in the browser via Service Workers. Key Features
// Route for the service worker file (sw.js)
// This is what the browser registers to intercept requests
app.get('/sw.js', (req, res) =>
res.sendFile($uvPath/sw.js, root: '.' );
);
- Acquire a VPS (e.g., DigitalOcean, Linode) outside restrictive jurisdiction.
- Install Node.js (≥18.x) and a web server (nginx recommended for TLS termination).
- Clone the Ultraviolet repository (open-source on GitHub).
- Configure:
Short Example Policy Snippet (pseudocode)
route /api/* require jwt; rate_limit 100/min per_user; cache ttl=60s if method == GET; strip_headers: [X-Forwarded-For]; add_header: [X-Proxy: Ultraviolet];Superior Website Compatibility: It excels at loading interactive elements and complex sites like YouTube, Discord, and Reddit.
- Service Worker Support: It intercepts network requests at the browser level, allowing it to proxy things older proxies couldn't (like WebSocket connections,
fetchAPI calls, and complex JS frameworks). - Modern Compatibility: Works with sites like YouTube, Spotify, Discord, and Reddit.
- CAPTCHA Support: Handles reCAPTCHA and hCaptcha better than legacy proxies.
- Encoding: Uses advanced encoding schemes to bypass standard URL filters.
Using a proxy is generally legal and used by businesses for market research and testing. However, users should always adhere to their local laws and the specific terms of service of the websites they visit. ultraviolet - Codesandbox
- Service Worker Support: It intercepts network requests at the browser level, allowing it to proxy things older proxies couldn't (like WebSocket connections,