精华内容
下载资源
问答
  • GeoIP

    2021-03-12 23:57:38
    GeoIP #!/bin/bash if [ ! -d /usr/local/share/GeoIP ];then mkdir /usr/local/share/GeoIP fi if [ ! -d /usr/local/share/qqIP ];then mkdir /usr/local/share/qqIP fi wget -t 5 -O /tmp/GeoIP.dat.gz ...

    GeoIP

    #!/bin/bash
    if [ ! -d /usr/local/share/GeoIP ];then
        mkdir /usr/local/share/GeoIP
    fi
    
    if [ ! -d /usr/local/share/qqIP ];then
        mkdir /usr/local/share/qqIP
    fi
    
    wget -t 5 -O /tmp/GeoIP.dat.gz http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
    wget -t 5 -O /tmp/GeoLiteCity.dat.gz http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
    wget -t 5 -O /tmp/GeoIPASNum.dat.gz http://geolite.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz
    
    gzip -df /tmp/GeoIP.dat.gz
    gzip -df /tmp/GeoLiteCity.dat.gz
    gzip -df /tmp/GeoIPASNum.dat.gz
    
    mv -f /tmp/Geo*.dat /usr/local/share/GeoIP/
    
    展开全文
  • geoip

    2017-01-11 09:49:48
    [elk@Vsftp logstash]$ cat t1.conf input { stdin { } } filter { geoip { source =>"message" add_field =>["[geoip][aa]","%{[geoip][location]}"] } } output { stdout { codec =>rubyd
    [elk@Vsftp logstash]$ cat t1.conf 
    input {
       stdin {
         }
     }
    
    filter {
      geoip {
      source =>"message"
      add_field =>["[geoip][aa]","%{[geoip][location]}"]
     }
    }
    output {
       stdout {
       codec =>rubydebug
       }
    }
    
    
    [elk@Vsftp logstash]$ logstash -f t1.conf 
    Settings: Default pipeline workers: 4
    Pipeline main started
    202.101.172.35
    {
           "message" => "202.101.172.35",
          "@version" => "1",
        "@timestamp" => "2017-01-11T01:42:59.457Z",
              "host" => "Vsftp",
             "geoip" => {
                        "ip" => "202.101.172.35",
             "country_code2" => "CN",
             "country_code3" => "CHN",
              "country_name" => "China",
            "continent_code" => "AS",
                  "latitude" => 35.0,
                 "longitude" => 105.0,
                  "location" => [
                [0] 105.0,
                [1] 35.0
            ],
                        "aa" => "105.0,35.0"
        }
    }
    
    
    
    [elk@Vsftp logstash]$ cat t1.conf 
    input {
       stdin {
         }
     }
    
    filter {
      geoip {
      source =>"message"
      add_field =>["[scan][aa]","%{[geoip][location]}"]
     }
    }
    output {
       stdout {
       codec =>rubydebug
       }
    }
    
    [elk@Vsftp logstash]$ 
    [elk@Vsftp logstash]$ logstash -f t1.conf 
    Settings: Default pipeline workers: 4
    Pipeline main started
    202.101.172.35
    {
           "message" => "202.101.172.35",
          "@version" => "1",
        "@timestamp" => "2017-01-11T01:45:14.001Z",
              "host" => "Vsftp",
             "geoip" => {
                        "ip" => "202.101.172.35",
             "country_code2" => "CN",
             "country_code3" => "CHN",
              "country_name" => "China",
            "continent_code" => "AS",
                  "latitude" => 35.0,
                 "longitude" => 105.0,
                  "location" => [
                [0] 105.0,
                [1] 35.0
            ]
        },
              "scan" => {
            "aa" => "105.0,35.0"
        }
    }
    
    
    
    [elk@Vsftp logstash]$ cat t1.conf 
    input {
       stdin {
         }
     }
    
    filter {
      geoip {
      source =>"message"
      add_field =>["[scan][aa]","%{[geoip][location]}"]
     }
    }
    output {
       stdout {
       codec =>rubydebug
       }
    }
    [elk@Vsftp logstash]$ cat t1.conf ^C
    [elk@Vsftp logstash]$ vim t1.conf 
    [elk@Vsftp logstash]$ cat t1.conf 
    input {
       stdin {
         }
     }
    
    filter {
      geoip {
      source =>"message"
      add_field =>["[scan][aa]","%{[geoip][location][0]}"]
     }
    }
    output {
       stdout {
       codec =>rubydebug
       }
    }
    
    [elk@Vsftp logstash]$ logstash -f t1.conf 
    Settings: Default pipeline workers: 4
    Pipeline main started
    202.101.172.35
    {
           "message" => "202.101.172.35",
          "@version" => "1",
        "@timestamp" => "2017-01-11T01:48:40.316Z",
              "host" => "Vsftp",
             "geoip" => {
                        "ip" => "202.101.172.35",
             "country_code2" => "CN",
             "country_code3" => "CHN",
              "country_name" => "China",
            "continent_code" => "AS",
                  "latitude" => 35.0,
                 "longitude" => 105.0,
                  "location" => [
                [0] 105.0,
                [1] 35.0
            ]
        },
              "scan" => {
            "aa" => 105.0
        }
    }

    展开全文
  • GeoIP数据库

    2018-06-22 09:53:52
    GeoIP GeoIP GeoIP GeoIP GeoIP GeoIP GeoIP wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
  • Nginx 编译安装 安装 libmaxminddb ...$ tar -zxvf libmaxminddb-1.3.2.tar.gz ...下载 geoip2 数据 $ git clone https://github.com/ar414-com/nginx-geoip2 $ cd nginx-geoip2 $ tar -zxvf GeoLite2-C
  • GeoIP Laravel支持的Geoip Wrapper 支持的驱动程序() 要求 PHP> = 7.2 安装 通过作曲家安装 composer require pulkitjalan/geoip Laravel 有Laravel服务提供商和外观。 将以下内容添加到config/app.php的...
  • laravel-geoip Laravel的IP位置查询模块 平台支持 环境需求 PHP> = 7.2.5 安装 composer require larva/laravel-geoip -vv $ info = \ Larva \ GeoIP \ GeoIP :: get ( '218.1.2.3' ); $ info = \ Larva \ GeoIP ...
  • Laravel开发-geoip Laravel GeoIP 服务集成包 通过IP获取对应的地理位置信息(geoip数据库)
  • GeoIP 快速查找 用法 local Geo = require ( ' geoip ' )() Geo. byIP ( ' 80.246.64.6 ' , print) Geo. byName ( ' ya.ru ' , print) 执照
  • GeoIP旧版Apache模块 生命尽头 MaxMind将于2022年5月底淘汰GeoIP Legacy数据库。在此之前,该库将仅收到重要的安全性和错误修复。 该库的支持将在旧版GeoIP数据库的最新版本中完全终止。 我们建议您升级到我们的...
  • GeoIP2 .NET API 描述 该发行版提供了GeoIP2 和的API。 该API还可以与免费的。 要求 该库可与.NET Framework 4.6.1和更高版本以及.NET Standard 2.0或更高版本一起使用。 该库取决于 。 安装 NuGet 我们建议使用...
  • GeoIP2 Java API Description This distribution provides an API for the GeoIP2 Precision web services and databases. The API also works with the free GeoLite2 databases. Installation Maven We ...
  • Hive :: GeoIP2 . lookup ( '88.174.0.1' , 'GeoLite2-City.mmdb' ) 或者 mmdb = Hive :: GeoIP2 . new ( 'GeoLite2-City.mmdb' ) mmdb . lookup ( '88.174.0.1' ) mmdb . close 结果作为Hash返回: { "city" ...
  • Maxmind GeoIP2 API的Symfony捆绑包 捆绑用于Symfony中的 。 安装 使用简单,运行: composer req gpslab/geoip2 配置 要配置自动更新数据库,您需要生成个人许可证密钥。 生成许可证密钥的步骤 (无需购买) 登录...
  • GeoIP 城市数据库

    2020-10-20 13:25:30
    GeoIP城市数据库,更新时间 20200929,安装wireshark后,可以通过终端命令 mmdbresolve 查询IP地址所在城市。使用方法: echo [IP address] | mmdbresolve -f [数据库文件]
  • IPFS GeoIP 在ipfs上进行geoip查找 安装 NPM npm install -- save ipfs - geoip CDN 您可以请求而不是进行本地安装(和浏览 : <!-- loading the minified version using jsDelivr --> < script src =...
  • geoip2.cr:适用于Crystal的MaxMind GeoIP2阅读器
  • GeoIP-Redis 将 GeoIP 数据库放入 Redis 请参考 readme.html 或 2015 年 5 月更新 前段时间 GeoIP 改变了 CSV 格式。 虽然旧的 CSV 格式仍然可以更新和下载,但我们包含了geoip_import_2.py ,可以导入 GeoLite2-...
  • GeoIP2 - MaxMind 的 GeoIP2 Web 服务和数据库的 Perl API 版本 版本 2.001002 描述 该发行版为 GeoIP2和提供了一个 API。 该 API 也适用于免费的。 有关 Web 服务客户端 API 和的数据库 API 的详细信息,请参阅 。...
  • 烧瓶-geoip2 使用 MaxMind 出色的免费 geoip2 库和数据库的 geoip 服务器的烧瓶服务器 安装 Maxmind C 扩展 brew install libmaxminddb 下载最新的免费数据库 cd data wget ...
  • 在编写的GeoIP查找服务 弃用:喜欢使用lambda服务: : 或其他 :grinning_face_with_sweat: 但是,如果您想为这个项目做贡献-永远欢迎您。 Geoip 待办事项:在此处写说明 图片大小: 363MB 370MB 367MB 315MB :...
  • GeoIP2-用于访问GeoIP2数据库的库 GeoIP2是与MaxMind GeoIP2数据库的haskell绑定。 它根据MaxMind DB解析数据库,支持该版本2。 可以从下载免费的geolite2数据库。 有关详细信息,请参见haddock文档。 {-# ...
  • This package provides an API for the GeoIP2 web services and databases. The API also works with the free GeoLite2 databases. Install via Composer We recommend installing this package with Composer. ...
  • MaxMind GeoIP旧版Python扩展API 生命尽头 MaxMind将于2022年5月底淘汰GeoIP Legacy数据库。在此之前,该库将仅收到重要的安全性和错误修复。 该库的支持将在旧版GeoIP数据库的最新版本中完全终止。 我们建议您升级...
  • geoip-Go最快的GeoIP国家图书馆geoip-最快的geoip国家图书馆入门包main import(“ fmt”“ net”“ github.com/phuslu/geoip”)func main(){fmt.Printf(“%s”, geoip.Country(net.ParseIP(“ 2001:4860:...
  • geoip_GeoIP技术:简介

    千次阅读 2020-08-08 21:49:23
    geoip The GeoIP technology enables a webmaster to grab useful information about the location of the visitors using their website. It helps in determining the country, city, area code etc. about a spe...

    geoip

    The GeoIP technology enables a webmaster to grab useful information about the location of the visitors using their website. It helps in determining the country, city, area code etc. about a specific user. It can deliver customization of content based on the geographical location, targeted advertisements, web logs and statistics, spam detection, geo-location based access and some other beneficial solutions.

    GeoIP技术使网站管理员可以使用其网站来获取有关访客位置的有用信息。 它有助于确定有关特定用户的国家,城市,区号等。 它可以基于地理位置,目标广告,Web日志和统计信息,垃圾邮件检测,基于地理位置的访问以及其他一些有益的解决方案来提供内容的自定义。

    Though, there can be multiple methods of implementing it, but its usage as an Apache module is one of the widely used alternatives. An enhanced functionality can be achieved with the installation of Apache module for GeoIP mod_geoip.

    尽管可以有多种方法来实现它,但是将其用作Apache模块是广泛使用的替代方法之一。 可以通过安装用于GeoIP mod_geoip的Apache模块来实现增强的功能。

    GeoIP is basically a paid database that is capable of mapping IP addresses to their respective locations which includes the country, ISP and city. The APIs offered by MaxMind can be integrated with C, Java and PHP for accessing the GeoIP database, which can further simplify your process of using the data in your applications.

    GeoIP基本上是一个付费数据库,能够将IP地址映射到各自的位置,包括国家/地区,ISP和城市。 MaxMind提供的API可以与C,Java和PHP集成在一起,以访问GeoIP数据库,这可以进一步简化您在应用程序中使用数据的过程。

    More information on GeoIP can be found at its site here.

    有关GeoIP的更多信息,请参见此处

    Leaving out the technical details, lets see where GeoIP can be used:

    省略技术细节,让我们看看可以在哪里使用GeoIP:

    GeoIP如何受益? (How can GeoIP be beneficial ?)

    If you are targeting a particular geographic location ie. a state, county or country, GeoIP would analyze the visitor information and present him/er with the appropriate webpage. For example: if you have a business website which sells products of services to consumers in the UK and the US, then using the GeoIP technology, you’ll be able to show the relevant pages to the visitors browsing your website with the correct sort of pages. Choosing an affordable web hosting provider offering servers in the targeted geographic location or nearer should be a better choice to suffice your needs as well.

    如果您定位到特定地理位置,即 在州,县或国家/地区,GeoIP会分析访问者信息并向其显示适当的网页。 例如:如果您有一个向英国和美国的消费者出售服务产品的商业网站,则可以使用GeoIP技术,向浏览您网站的访问者显示正确的相关页面,其中包括页面。 选择负担得起的网络托管提供商,在目标地理位置或更近的地理位置提供服务器,这也是满足您需求的更好选择。

    In order to keep your website secure from attacks and hacks, you can identify different regions on the globe which you seem insecure and block the IP’s from there in your server firewall. This can be a smarter way to avoid any future hassles and hacking attempts can be reduced upto a great extent.

    为了使您的网站免受攻击和黑客攻击,您可以识别全球范围内似乎不安全的不同区域,并在服务器防火墙中阻止该区域的IP。 这是避免将来出现麻烦的更明智的方法,并且可以最大程度地减少黑客尝试。

    Since advertisements are one of the preferred means of online promotions, with GeoIP technology, you can run geo-targeted ads ie. displaying ads that are relevant to providers of the region closer to the user. Hence allowing you to achieve a better click-through rate.

    由于广告是在线促销的首选方式之一,因此,借助GeoIP技术,您可以投放按地理位置定位的广告。 展示与该区域的提供者(更靠近用户)相关的广告。 因此,可以使您获得更好的点击率。

    Moreover, GeoIP is smart enough to detect proxy servers, a service known as “minFraud” can be useful in such detections. It monitors the behavior of a user using a particular IP and keeps a history in its database.

    此外,GeoIP足够智能,可以检测代理服务器,称为“ minFraud ”的服务在此类检测中可能很有用。 它监视使用特定IP的用户的行为并将历史记录保留在其数据库中。

    One can relate the use of GeoIP to the restriction set by Google in its YouTube section, where it has restricted the access to certain videos to certain countries and regions on the planet. This is world over referred as Digital Rights Management (DRM). Such a restricted access can be achieved by anyone by using the GeoIP technology.

    可以将GeoIP的使用与Google在其YouTube部分中设置的限制相关联,该限制已将地球上某些国家和地区的某些视频的访问权限限制为。 这在世界范围内被称为数字版权管理(DRM)。 任何人都可以使用GeoIP技术来实现这种受限访问。

    Cloud Hosting

    翻译自: https://www.eukhost.com/blog/webhosting/geoip-technology-an-introduction/

    geoip

    展开全文
  • GeoIP获取

    2020-12-21 18:05:26
    wget https://mirrors.slackware.com/mb-sources/GeoIP/GeoIP.dat.gz wget https://mirrors.slackware.com/mb-sources/GeoIP/GeoIPASNum.dat.gz wget ...
    wget https://mirrors.slackware.com/mb-sources/GeoIP/GeoIP.dat.gz
    wget https://mirrors.slackware.com/mb-sources/GeoIP/GeoIPASNum.dat.gz
    wget https://mirrors.slackware.com/mb-sources/GeoIP/GeoLiteCity.dat.gz
    wget https://github.com/zhengkw/GeoLite2/raw/master/GeoLite2-ASN.mmdb
    wget https://github.com/zhengkw/GeoLite2/raw/master/GeoLite2-City.mmdb

     

    展开全文

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 10,780
精华内容 4,312
关键字:

geoip