Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Http post url security

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?

like image 525
erebel55 Avatar asked Jun 23 '26 03:06

erebel55


1 Answers

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.

like image 160
Joanvo Avatar answered Jun 25 '26 18:06

Joanvo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!