Restricting User based on GeoLocation in asp.net mvc -
in asp.net mvc app have survey model can created anyone. moreover, want people specific part of world participate (vote) in survey. easy job if know location (it city, country or state etc.). want add location restriction @ time of survey creation (i.e user tell people of islamabad or punjab or pakistan) vote or fill out survey form. moreover, want add location restriction applicable (or expected) small number of surveys (5 percent @ most) how efficiently implement functionality.
you couple of ways:
- determine user based on previous question asking location. not bullet proof user somewhere not.
- obtain ip -> country mapping list provide lookup of customer's ip address vs. location. restrict based on this.
Comments
Post a Comment