Get Even More Visitors To Your Blog, Upgrade To A Business Listing >> Security Issues Security Issues


I'm wondering how I could secure my connection to the server from th following.

Security Issues:

  • What would stop malicious users from connecting to the socket server via client side code?


OUTSIDE DOMAIN REQUEST var socket = io.connect('http://Mydomain', {port: 4000});
  • Users can seemingly create thousands of concurrent connections just by opening a different browser window.

How can I prevent these issues?

Problem courtesy of: Trevor


You should be able to check serverside that the HTTP referrer is correct. Check the spec for info on both http referring as well as handshaking.

Also 0.8 has referrer verification. Havent used it before, but this may be a place to start looking:

Solution courtesy of: wesbos


View additional discussion.

This post first appeared on Node.js Recipes, please read the originial post: here

Share the post Security Issues


Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription