I'm running a little social experiment and want to know if I can set up a website that people access through a QR code. The idea is pretty simple: when a user clicks a button on the site, they can't press it again. I also want to display the total number of times the button has been pressed. How difficult would it be to implement this?
1 Answer
Creating a basic website that shows a button and counts clicks can be done in a few hours, but making it so that a user can only click once is much trickier. You could try using cookies to track clicks, but users can clear them or use incognito mode to bypass restrictions. So, while it’s feasible, it’s not foolproof unless you implement some sort of user authentication.
Totally get that! It sounds simple but just having trust in users to only click once might not work.