Company Logo

The service is not provided in your country

Your IP: Loading...

Country: Loading...

addEventListener('fetch', event => { event.respondWith(handleRequest(event.request)) }) async function handleRequest(request) { const url = new URL(request.url) if (url.pathname === '/user-info') { const ip = request.headers.get('CF-Connecting-IP') const country = request.headers.get('CF-IPCountry') return new Response(JSON.stringify({ ip, country }), { headers: { 'Content-Type': 'application/json' } }) } // For all other routes, serve the static content return fetch(request) }