开发者 | Patrick Friedl |
---|---|
更新时间 | 2010年1月11日 02:18 |
捐献地址: | 去捐款 |
wp-geolocation-js.php
to the /wp-content/plugins/
directoryAccording to MaxMind.com, their geolocation service is online 99.95% of the time.
No. If your visitor is using a proxy, then their actual geolocation info will be incorrect.
Pretty accurate. This plugin accesses MaxMind's server to get geolocation data, so it's usually on target. However, if your visitor is from a small town, their location may resolve to the nearest large metro area.
The main disadvantage is that the information is saved to JavaScript variables as opposed to PHP variables. This means that you can't have wordpress act differently with post content until the page is loaded. The updside is that the JavaScript service is far more accurate than the free GeoIP database that is offered. If you want more control (but less accuracy), then the pure php geolocation plugin (in development) may be for you.