Thursday 15 April 2010

node.js - Prevent websocket flood loop -


I am developing an application that I use and nodes, the question is:

How can I protect myself from someone:

  var sockets = [] while (true) {sockets.push (new web site ("ws: // nodejsserver: port");}  

Is IP restriction possible only?

Thanks!

This is a security question. Repeat it again.

Do you prevent while (true) {htt P.request ('google.com');}

This DOS attack (violation of service) is called by flood with connection to the server.

Modern applications have to stop it.

  1. The browser does not allow more than 5 (?) To open connections with the same server.
  2. Something Some smart security dos and ddos ​​near cloud hosting providers (like CloudFlare, DigitalOcean, etc.).
  3. etc.

You try it for yourself And went to show us how it's done.


No comments:

Post a Comment