Jump to content

Looking for advice on possibly limiting users from hammering my php server


JeremyCanada26

Recommended Posts

I recently wrote a web app made with flash that communicates with php scripts on my web server(apache2). Like most others, I believe my web app is the end all be all and could potentially attract millions of users :D

 

Ok, long story short, in the long haul, there will be people using robots to communicate with my php scripts to do tasks that are in the game in order to cheat. I'd like to limit these users from hammering the server with robotic requests. I no for a fact that no human will make requests to my game more than once per two seconds or so.  So is it best for me to somehow do this type of code with php? or maybe at the apache level somehow? My flash application can detect http error status codes for each request so if any solution would cause a non standard 200, that is fine, i should be able to detect the code, and wait a couple seconds on the flash client, then do a retry hopefully

 

I'm lost on this one and would appreciate some help

I found some advice from a guy that says that maybe I should deal with it on apache level, using mod_evasive

 

He says my client will receive 403 http status code if the client requests too fast, which is easily detectable and workable.

 

Anyone else have a better idea?

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.