davidvii — 2010-09-22T21:14:13-04:00 — #1
Hi everyone! I'm currently interested in displaying a quick line or two of copy if a visiter's IP address falls between a certain IP range. Do any of you have any resources or ideas of how I can go about it?
I'd like to use JS (maybe jQuery?) for this. I'd imagine I can use JS to detect the IP then use an IF statement to display said content. I'm pretty new to JS and is the reason why I would love some help from ya'll
Any help is MUCH appreciated. Thnx!
davidvii — 2010-09-23T02:17:16-04:00 — #2
As always, much appreciated...
force — 2010-09-23T12:01:34-04:00 — #3
force — 2010-09-22T21:36:28-04:00 — #4
You'll probably have to use a server side language with maxmind, then with JS, you can do an AJAX request. Same goes for hostip, since it would be from a different domain.