Okay in this case since the server treats each incoming request as a new request,storing the ip addresses was a good idea.You can declare a counter field in your table.during each request by the login form you check if the value of the counter field is equal to 5 for that ip address.If it is block registration appropriately for the specified time after which you reset the counter.
Sarama2030
Junior Poster in Training
74 posts since May 2009
Reputation Points: 10
Solved Threads: 4