When You Need Unique Users but Can’t Force Login

Published: (January 19, 2026 at 08:20 AM EST)
1 min read
Source: Dev.to

Source: Dev.to

Introduction

I have a course project that requires presenting information and then collecting user data through a survey. A key concern is ensuring that each user submits only one unique response.

Email‑based Authentication

The most straightforward solution is to use an email‑based authentication system (e.g., Google login). While effective, this approach feels like overkill for a simple survey, especially when there is no incentive for participants.

IP‑based Identification

I tried identifying users by their IP addresses. This method quickly showed its limitations:

  • IP addresses can change frequently, especially on mobile devices when users travel.
  • Even on a home network, I was able to submit multiple votes after some time.
  • Refreshing the page did not reset the restriction, indicating a more complex issue.

Cookie‑based Identification

Using cookies to track users also has significant drawbacks:

  • Switching devices (e.g., from a mobile phone to a desktop) makes it impossible to prevent multiple responses.
  • Some browsers and extensions block cookies by default, reducing reliability.

Conclusion

Reliably identifying unique users without a traditional authentication system (such as Google login) is extremely difficult. Each approach—email authentication, IP tracking, or cookies—has its own advantages and disadvantages, and the best solution depends on the specific requirements and constraints of the project.

Project Link:

Back to Blog

Related posts

Read more »

𝗗𝗲𝘀𝗶𝗴𝗻𝗲𝗱 𝗮 𝗣𝗿𝗼𝗱𝘂𝗰𝘁𝗶𝗼𝗻‑𝗥𝗲𝗮𝗱𝘆 𝗠𝘂𝗹𝘁𝗶‑𝗥𝗲𝗴𝗶𝗼𝗻 𝗔𝗪𝗦 𝗔𝗿𝗰𝗵𝗶𝘁𝗲𝗰𝘁𝘂𝗿𝗲 𝗘𝗞𝗦 | 𝗖𝗜/𝗖𝗗 | 𝗖𝗮𝗻𝗮𝗿𝘆 𝗗𝗲𝗽𝗹𝗼𝘆𝗺𝗲𝗻𝘁𝘀 | 𝗗𝗥 𝗙𝗮𝗶𝗹𝗼𝘃𝗲𝗿

!Architecture Diagramhttps://dev-to-uploads.s3.amazonaws.com/uploads/articles/p20jqk5gukphtqbsnftb.gif I designed a production‑grade multi‑region AWS architectu...