phpjavascriptajaxasynchronousddos

Hosting provider blocks users because of AJAX requests


I've made a chat system, which works with AJAX requests. Only after a few minutes to half an hour of chatting, my hosting provider starts blocking people, which is probably because it sees the AJAX requests as an attempted (D)DoS attack.

What are my best options?


Solution

  • Long polling?

    I'm not suggesting that you should not use something like websockets or server sent events but, if for some reason you are unable to, then I guess you could try to reduce the number of AJAX requests by not closing them as soon as you currently do.