c# - Prevent unwanted access to my web service -


i have coded c# mvc5 internet application , have web api 2 web service returns json data. retrieving json data in android application.

how can add feature web service such android application can retrieve json data? wanting other web users cannot hammer url , web service not send data unwanted applications and/or users.

is possible? if so, how should this?

thanks in advance.

you have various ways achieve in fact.

for example, can store key in android application , use send key request webapi. webapi check if key valid , if is, return json.

however, there's no way ensure nobody else can request , data. example reverse engineering android application , extracting key, or monitoring network traffic , find key in there.

you need understand there isn't anthing guarantuees 100% security.

see following:

you have open door right now, can close little little, closing , locking down not possible. there gap. house can't made burglar proof, can make hard buglar enter.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -