NodeJS HTTP Server - How To Verify Client's IP and Login?

Viewed 14636

If I decide to use http module for my server, which module/method(s) I need to do the following?

  • To Verify the source IP address of connecting client?
  • If the server requires the URL like http://username:password@exmaple.com/method1, how do i setup the Http server of NodeJS to accept such authentication and how do i verify the credentials provided from the client's connection?

Thanks.

3 Answers
Related