Jump to content

Tracking One IP per Day


kevinak

Recommended Posts

I have a site that using phpbb3 forum login integration. Just incase you need to know that.

 

But I'm looking for a way to only allow a person to do the actions on my php script Once per day. As such, when they haven't visited for one day, then it will do the actions of the script, but if they have already visited it in the past 24 hours, I want it to not do these actions and simply say something like you have already done this in the past 24 hours.

 

Any suggestions?

 

Thanks so much for reading and for any responses.

Link to comment
https://forums.phpfreaks.com/topic/122394-tracking-one-ip-per-day/
Share on other sites

Make a table 3 fields

 

ActionID UserID DateTime

 

 

When a user does an action insert into and delete (or update) that users row for that action so the DateTime = NOW()

 

When the user attempts to do the action again check to see if the date of their last action is acceptable for them to do this action now (if so then do it)

Wow. Such a great idea. Thank you for replying, but I forgot to mention something.

 

This is going to have to work on thousands of pages.. haha

 

I used GD commands to render an image. The image then gets information from my database off the extension of the URL.

 

Example. www.whimpsters.net/pets.php/1

 

 

This makes every number gather different information. And there is a potential to have 1,000's.

 

So I would think 1,000+ members each being able to click on of these 1,000+ images, would be overload to your solution?

 

Or am I wrong?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.