geoip

Identifying country by IP address

此生再无相见时 提交于 2019-11-27 07:24:33
Is there a way to figure out the country name just by looking at an IP address? I mean, do countries have specific ranges of IP addresses? For example, Australia can have IP addresses only in the range of 123.45.56.89 - 231.54.65.98 (just an example) Chris Gessler I think what you're looking for is an IP Geolocation database or service provider. There are many out there and some are free (get what you pay for). Although I haven't used this service before, it claims to be in real-time. https://kickfire.com/kf-api But just do a google search on IP geo and you'll get more results than you need.

geolocating an IP address

依然范特西╮ 提交于 2019-11-27 03:48:05
问题 I'm looking to geolocate my server requests by continent. Basically, after doing some initial research, it seems that there are 3 approaches: 1) using the geolocation provided by browsers (but I think noone seriously click "Yes" when the browser is asking permission to use geolocation); 2) getting a list of IP addresses, putting that list in a database on your server and then every time a request comes in, read from this DB; I'd hate to have have to hit the DB at every request. 3) make an

Geo Location based on IP Address - PHP [closed]

半腔热情 提交于 2019-11-26 20:21:14
We're looking for a fast and accurate way to get the visitors location based on their IP. We have tried ipinfodb.com but their API made our website severely lag when making the API call. What other services do you suggest? David Croft Get Geo-IP Information Requests a geo-IP-server (netip.de) to check, returns where an IP is located (host, state, country, town). <?php $ip='94.219.40.96'; print_r(geoCheckIP($ip)); //Array ( [domain] => dslb-094-219-040-096.pools.arcor-ip.net [country] => DE - Germany [state] => Hessen [town] => Erzhausen ) //Get an array with geoip-infodata function geoCheckIP(

Get Country of IP Address with PHP

青春壹個敷衍的年華 提交于 2019-11-26 11:32:00
Ideally I'm trying to put together a PHP script that I can query from any web browser and it returns the country of the IP address that accessed the PHP script. Is this possible or is there a better solution? sprain There are free, easy APIs you can use, like those: http://ipinfodb.com/ip_location_api.php http://www.ipgeo.com/api/ http://ip2.cc/ http://www.geobytes.com/IpLocator.htm https://iplocate.io/ and plenty others. Which one looks the most trustworthy is up to you :) Otherwise, there are scripts which are based on local databases on your server. The database data needs to be updated

Geo Location based on IP Address - PHP [closed]

房东的猫 提交于 2019-11-26 07:35:40
问题 We\'re looking for a fast and accurate way to get the visitors location based on their IP. We have tried ipinfodb.com but their API made our website severely lag when making the API call. What other services do you suggest? 回答1: Get Geo-IP Information Requests a geo-IP-server (netip.de) to check, returns where an IP is located (host, state, country, town). <?php $ip='94.219.40.96'; print_r(geoCheckIP($ip)); //Array ( [domain] => dslb-094-219-040-096.pools.arcor-ip.net [country] => DE -

Get Country of IP Address with PHP

孤者浪人 提交于 2019-11-26 02:28:02
问题 Ideally I\'m trying to put together a PHP script that I can query from any web browser and it returns the country of the IP address that accessed the PHP script. Is this possible or is there a better solution? 回答1: There are free, easy APIs you can use, like those: http://ipinfodb.com/ip_location_api.php http://www.ipgeo.com/api/ http://ip2.cc/ http://www.geobytes.com/IpLocator.htm https://iplocate.io/ and plenty others. Which one looks the most trustworthy is up to you :) Otherwise, there

elk(elasticsearch、logstast,kibana)filebeat部署与实践

故事扮演 提交于 2019-11-25 23:43:45
1、elk说明 elk全称: elasticsearch: 是一个分布式、高扩展、高实时的搜索与数据分析引擎;简称es logstash: 是开源的服务器端数据处理管道,能够同时从多个来源采集数据,转换数据,然后将数据发送到您最喜欢的“存储库”中;如elasticsearch中 kibana: 是为 Elasticsearch设计的开源分析和可视化平台。你可以使用 Kibana 来搜索,查看存储在 Elasticsearch 索引中的数据并与之交互。你可以很容易实现高级的数据分析和可视化,以图标的形式展现出来。 以上三个组件就是常说的elk~ 2、快速部署配置elk 1)部署环境: Centos7,本文基于7.x部署 172.16.0.213 elasticsearch 172.16.0.217 elasticsearch 172.16.0.219 elasticsearch kibana kibana只要在其中一台部署即可; 2)配置官方yum源 三台均配置repo源 $ cat /etc/yum.repos.d/elast.repo [elasticsearch-7.x] name=Elasticsearch repository for 7.x packages baseurl=https://artifacts.elastic.co/packages/7.x/yum

Getting the location from an IP address

风流意气都作罢 提交于 2019-11-25 22:46:57
问题 I want to retrieve information like the city, state, and country of a visitor from their IP address, so that I can customize my web page according to their location. Is there a good and reliable way to do this in PHP? I am using JavaScript for client-side scripting, PHP for server-side scripting, and MySQL for the database. 回答1: You could download a free GeoIP database and lookup the IP address locally, or you could use a third party service and perform a remote lookup. This is the simpler

ELK7.4-坐标地图映射Nginx用户地理位置

北战南征 提交于 2019-11-25 21:21:07
小生博客: http://xsboke.blog.51cto.com -------谢谢您的参考,如有疑问,欢迎交流 目录 需求 环境 logstash配置 kibana配置 需求 使用Geoip解析nginx用户IP地理位置,然后通过kibana的"coordinates map"实现映射用户地理位置可视化 环境 这里主要展示 logstash filter plugin 和 kibana 的配置,之前的配置请参考: ELK7.4-快速入门实现数据收集 web 172.16.100.251 nignx/filebeat/logstash elasticsearch 172.16.100.252 elasticsearch/kibana Web 配置 添加 pipelines 配置 vim /etc/logstash/conf.d/nginx.conf input { beats { port => 5044 } } filter { if "nginx_access" in [tags] { grok { match => { "message" => "%{NUMBER:request_time}\|%{IPORHOST:access_domain}\|%{IPORHOST:remote_addr}\|%{USERNAME:remote_user}\|\[%{HTTPDATE