Hey WJ dudes,
I've been searching to get something like this one:
There are about ten links and about thousand users (Here each user stands for each unique IP address) will click those ten links at different time zones and spans. What I need is that if one user clicked a link, he shouldn't be able to click that link before exact 24 hours of the last click on that particular link. This condition should be with every link and with every user.
I thought of performing this idea in multiple aspects like logging the IP in row of link in database, prompting user if his IP is found there in db table and for reset, making up a cron to clear out the db table every 24 hours. But what the problem will be that the whole table will reset every 24 hours and not dependent upon the clicked time of a user, i.e. the user who clicked the link even few minutes before the reset will again be able to click after few minutes of reset and that will mean just minutes difference between two clicks made by same IP on same link.
If someone got the point, please be generous to share just a basic overview of how can it be done. I don't need the exact codes, just the hints will too be helpful for me.
Best Regards,
Sam.
I've been searching to get something like this one:
There are about ten links and about thousand users (Here each user stands for each unique IP address) will click those ten links at different time zones and spans. What I need is that if one user clicked a link, he shouldn't be able to click that link before exact 24 hours of the last click on that particular link. This condition should be with every link and with every user.
I thought of performing this idea in multiple aspects like logging the IP in row of link in database, prompting user if his IP is found there in db table and for reset, making up a cron to clear out the db table every 24 hours. But what the problem will be that the whole table will reset every 24 hours and not dependent upon the clicked time of a user, i.e. the user who clicked the link even few minutes before the reset will again be able to click after few minutes of reset and that will mean just minutes difference between two clicks made by same IP on same link.
If someone got the point, please be generous to share just a basic overview of how can it be done. I don't need the exact codes, just the hints will too be helpful for me.
Best Regards,
Sam.