I have some kind of chat / forum application that checks for new posts using periodic polling (every 15 seconds) using jquery ajax. I was wondering if I can get around the problem of users who are trying to be “funny” by downloading multiple instances of the browser with a lot of tabs, all pointing to the same application. Each tab sends an ajax request that could potentially overwhelm the server if multiple users start doing the same.
I store sessions in a table along with the last access time and IP address, which works fine until users use the same browser. I could store a unique identifier that is sent using an ajax POST or GET request, but this will create problems if a regular (non-abusing) user refreshes his page, which creates a new identifier.
This is not a problem yet, but it is better to catch it before someone thinks about abuse of the system like this :) Any idea how to do this?
source
share