I would like to allow people to do certain things only once or twice per 24 hours. What is the best/smartest way to implement some kind of counter that resets 24 hours after an action is completed?
I have a button that opens a Jpeg image but I would like it to download it to the users device instead. Is there any way to do this? In html I would do something like this: <a href="mysite.com/image.jpg" download>Download</a>