2

初心者の質問です。

ユーザーの現在の位置を特定し、それを Web サービスに投稿して何かを実行するために、html5 のジオロケーション (技術的には別の仕様であることはわかっていますが、それでも) を使用してモバイル サイトを作成しようとしています。基本的にはフォースクエアのブラウザ版。

ユーザーが本当にその場所にいることを確認できる方法はありますか? 偽の緯度/経度をサービスに送信するコンソールアプリなど、誰かが何かを作成するのを防ぎたいです。

100% 達成できなくても、どんな提案でも大歓迎です。ありがとう、SOコミュニティ!

4

3 に答える 3

4

The short answer is no. All you can know for sure is where the browser claims to be. A sufficiently determined user could fake this.

A feature like this is really best used for convenience, not for security.

于 2010-07-23T15:09:09.740 に答える
0

Ask the user to take a photo of the area, and compare that with Google Street View images near their stated location.

Or no. You might be able to get location information from DNS LOC (RFC1876), which might be accurate to within a few tens of kilometres, and only then if the DNS information is also accurate.

于 2010-07-23T15:09:18.973 に答える
0

はい - GoWalla (iPhone アプリ ストアで無料で入手可能) では、ユーザーがチェックインする前に特定の場所にいる必要があるため、存在することはわかっています。

残念ながら、私は彼らがこれをどのように行ったかについてよく知りません。

于 2010-07-23T15:09:46.020 に答える