weixin_33671935 2015-12-06 14:42 采纳率: 0%
浏览 32

Http Post URL安全性

I am performing a $http.post to my node.js server with the following

$http.post('http://68.xx.xxx.xxx:3000/login', {foo:'foo'});

I assume it is not best practice to have the IP address of my server unprotected like this? Anyone with a browser can easily see the IP address.

What are the security impacts of this?
And what are the best ways to make this more secure?

I guess since they are interacting with the server anyways they could get the IP address through other methods. So I may be overthinking this.
Is this less dangerous than I fear?

  • 写回答

2条回答 默认 最新

  • weixin_33726318 2015-12-06 14:56
    关注

    There are no direct security implications of using the ip address instead of a domain name, that's because anyone can resolve the ip address from a domain name.

    However, you may have problems when you have to move your server to another hosting (since the ip address will be modified and your application may stop working) or if your hosting provider doesn't guarantee that you'll always have the same ip address.

    评论

报告相同问题?