Implementing site access rate limiting in PHP

anlykerlado

New Member
I am developing a fairly simple site on a LAMP framework + Codeigniter and want to implement a user access rate limit feature to prevent the site being flooded with requests from a single user. The basic function of the site is to take a code input and return some info.I'm only at the planning stages and my first idea is to have a simple database table holding an IP address, last access timestamp and an access count, but as my coding skills are rooted in non web-based apps I would appreciate any thoughts on the best way to approach this task - for example, should I be considering session IDs instead of, or as well as, IP addresses? I've not found much with some general Web searches so any pointers or guidance would be great.Thanks.
 
Back
Top