A simple Cloudflare Worker that displays visitor's IP address, location, device information, and timezone data. Shows a modern web interface for browsers and terminal output for curl requests.
- Shows your IP address and geolocation (country, city, ISP)
- Detects your browser, operating system, and device type
- Displays timezone comparison between your system and IP location
- Works in browsers (web interface) and terminal
-
Using Cloudflare Dashboard:
- Go to Cloudflare Dashboard → Workers & Pages
- Click "Create" → "Start with Hello World!"
- Copy the code from
worker.jsand paste it - Click "Save and Deploy"
-
Using Wrangler CLI:
npm install -g wrangler wrangler login wrangler deploy
In Browser: Visit your worker URL to see the web interface
In Terminal:
curl 5ip.ir