IP Visit Counter

A simple website that tracks and displays the number of visits from different IP addresses.

Features

  • Records visits from unique IP addresses
  • Displays a count of visits per IP address
  • Shows total visit count

Project Structure

  • backend/ - Server-side code
    • index.ts - Main HTTP handler using Hono
    • database.ts - SQLite database setup and queries
  • frontend/ - Client-side code
    • index.html - Main webpage

How It Works

When a user visits the site, their IP address is recorded in the SQLite database. If the IP already exists, its visit counter is incremented. The page displays a table of all IP addresses and their visit counts.