# Count Unique Visitors Without Cookies Using Daily Salted Hashes in Express

DevFeed: [Count Unique Visitors Without Cookies Using Daily Salted Hashes in Express](<https://devfeed.tech/articles/count-unique-visitors-without-cookies-using-daily-salted-hashes-in-express-85992.md>)

Original publisher: [Read original article](<https://www.sitepoint.com/count-unique-visitors-without-cookies-tutorial/>)

Author: SitePoint Team

Published: 2026-10-13T15:43:00Z

Content type: tutorial

Language: en

Sources: [SitePoint](<https://devfeed.tech/sources/sitepoint.md>)

Topics: [Back end](<https://devfeed.tech/topics/backend.md>), [Express](<https://devfeed.tech/topics/express.md>), [Azure SQL](<https://devfeed.tech/topics/azure-sql.md>), [sha256](<https://devfeed.tech/topics/sha256.md>)

Tags: [databases](<https://devfeed.tech/tags/databases.md>), [express](<https://devfeed.tech/tags/express.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [programming](<https://devfeed.tech/tags/programming.md>), [server](<https://devfeed.tech/tags/server.md>), [sha-256](<https://devfeed.tech/tags/sha-256.md>), [web](<https://devfeed.tech/tags/web.md>)

## AI overview

This tutorial shows how to build a server-side, cookieless unique visitor counter with Express, PostgreSQL, and Node.js crypto. It uses a daily rotating salt and truncated SHA-256 hashes to deduplicate visits, and explains trade-offs such as shared-IP undercounting, midnight boundary overcounting, hash collisions, and possible privacy obligations.

## Source excerpt

Build a server-side visitor counter in Express and PostgreSQL using daily-salted SHA-256 hashes, and examine failure modes including CGNAT collisions, midnight-UTC splits, and 64-bit hash collision risks. Continue reading Count Unique Visitors Without Cookies Using Daily Salted Hashes in Express on SitePoint.