jjLin
jjLin

Reputation: 3291

Android How to hide server url for security in code?

My application need to communicate frequently.
So there are many url: http://abc.php
The question is even if I use proguard, is it possible for people to get the url and hack in the system.
What should I do so that it can hide the link and make my system more secure.

Upvotes: 1

Views: 1657

Answers (2)

Damon Drake
Damon Drake

Reputation: 839

Any URL or web service you are sending them to should only be for uses such as JSON/XML requests. There shouldn't be anything that critical in a wide open base URL. If there is then you have problems to begin with. Plus you may try to hide your URL, but with simple networking tools attached to the application it would be very easy to sniff the IP address and do other public functions to look-up the url. Any URL you have would be public, thus you need to take security measures on another end.

Upvotes: 2

Mikita Belahlazau
Mikita Belahlazau

Reputation: 15434

You can't. Any one can get you app and use sniffers to check where your application sends request. You should provide good security on server.

Upvotes: 4

Related Questions