Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Matching IP-address to location

Matching IP-address to location 3 years 11 months ago #85358

  • ElToro1966
  • ElToro1966's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 15
  • Karma: 0
We want to be able to match IP-addresses gathered in surveys to specific locations (County, city, and / or state) and generate reports based on those locations. Are there any plugins / scripts available for LimeSurvey that can help us do this?

Thanks. :)
The administrator has disabled public write access.

Matching IP-address to location 3 years 11 months ago #85361

  • holch
  • holch's Avatar
  • Online
  • LimeSurvey Team
  • Posts: 5112
  • Thank you received: 756
  • Karma: 227
The tag words should be "geo location" or "geo targeting". There should be lists that can match (to a certain extent - in some cases ISPs are not very exact in this) IPs to locations. Most of them you probably will have to pay for.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Matching IP-address to location 3 years 11 months ago #85439

You need the IP to country mapping info to get your result. If you are looking for free mapping service, below are a few link you may consider:

1. www.ipinfodb.com
2. www.fraudlabs.com (free license)

if you are looking for more accurate data, i will recommend: www.ip2location.com
The administrator has disabled public write access.

Matching IP-address to location 3 years 11 months ago #85458

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9305
  • Thank you received: 1330
  • Karma: 386
Yep and for ipinfodb, you have sole javascript example (with ip2country lite)
www.ipinfodb.com/ip_location_api_json.php

You can use your own database (dowload one here : www.maxmind.com/app/geoip_country) or some php script github.com/maxmind/geoip-api-php .

And make an ajax call to fill a question with country from $_SERVER.

Denis
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.

Matching IP-address to location 3 years 11 months ago #85480

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5984
  • Thank you received: 368
  • Karma: 260
...and if someone manages to create a nice plugin for Limesurvey (2.x), please get back in touch with us :-)

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Matching IP-address to location 3 years 11 months ago #85693

  • ElToro1966
  • ElToro1966's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 15
  • Karma: 0
Thanks a bunch, guys. Really appreciate the feedback :)
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.654 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form