JeremyCanada26 Posted October 25, 2010 Share Posted October 25, 2010 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 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 Link to comment https://forums.phpfreaks.com/topic/216753-looking-for-advice-on-possibly-limiting-users-from-hammering-my-php-server/ Share on other sites More sharing options...
JeremyCanada26 Posted October 25, 2010 Author Share Posted October 25, 2010 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? Link to comment https://forums.phpfreaks.com/topic/216753-looking-for-advice-on-possibly-limiting-users-from-hammering-my-php-server/#findComment-1126103 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.