Skip to content

ixabolfazl/ip-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

IP Information With Cloudflare Worker

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.

What it does

  • 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

Demo

https://5ip.ir/

Web Interface Screenshot

Quick Setup

  1. Using Cloudflare Dashboard:

    • Go to Cloudflare Dashboard → Workers & Pages
    • Click "Create" → "Start with Hello World!"
    • Copy the code from worker.js and paste it
    • Click "Save and Deploy"
  2. Using Wrangler CLI:

    npm install -g wrangler
    wrangler login
    wrangler deploy

Usage

In Browser: Visit your worker URL to see the web interface

In Terminal:

curl 5ip.ir

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Contributors