How to restrict some action to one per day

Hello everyone I am creating an online attendance system for my campus. I managed to create a private server that allows you to connect to the site only on campus wifi.
Now I’m looking to limit the action to once a day, but I have no idea how to achieve this. Can you help me ?
Thank you

I have think with the mac address or the IP but I’m not an expert on network so i don’t know much.