Forum Moderators: phranque
I have a website and I am creating a new member based service. I want to limit the amount of times a day a member uses the new service on our site.
I was thinking of something cookie based but I want to avoid abuse by people figuring out they can delete there cookies and re-use the service
So heres an example scenario
- Registered User Logs On
- Uses the service 3 times within that day
- Goes back a 4th time - and at this point I want to display a message "Thank you for using X - Please Come Back tomorrow"
I know my way around HTML but I am stuck on the best way to go about this.
Does anyone have any ideas how I can implement this type of restricted access? Or alternatively know of a good package that will help me implement this
All help really appreciated
Thanks in advance
Chockee
If it were me, I'd use .htaccess/.htpasswd, PHP, and MYSQL. The .htaccess files would limit access to whatever your users are logging into. The PHP would be used to detect the user and would query the MYSQL database to see if they had been there 3 times, and give an output based on the MYSQL output. If the user hadn't been there 3 times that day, then: $LoginNum = $LoginNum +1 and write to the MySQL database. If they had been there >= 3 times, then they get the "come back tomorrow" screen. Then all you would have to do is figure out how to reset the database every day.
Good Luck!
-- Zak