Restrict access to functionality for user by IP address
问题 I have a website that allows a functionality for any user but each user is only allowed to use it a fixed amount of times. Allow me to go into some more detail, our "anonymous/guest" user is allowed to search on the database for entries only 3 times per 24 hours. Is there a way I can use the IP to track the users attempts at this, restricting them after 3 attempts and then get it to expire after 24 hours? The website is built in PHP but whatever language serves this functionality, I am open