GithubHelp home page GithubHelp logo

lybigdata / ipinfo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from helloxz/ipinfo

0.0 2.0 0.0 30.49 MB

整合多接口的IP查询工具。

Home Page: https://ip.ttt.sh/

License: GNU General Public License v3.0

PHP 86.64% HTML 1.85% JavaScript 10.48% CSS 1.03%

ipinfo's Introduction

IPinfo

IPinfo是一个开箱即用的IP查询工具,整合了淘宝、IPIP、GeoIP2、纯真、腾讯等IP查询接口。

主要功能

  • 自动获取内网IP、公网IP
  • 支持多个查询接口
  • 支持一键查询所有IP接口,方便对比数据
  • IP数据缓存

更新记录

2018-07-18

  • 去除新浪查询接口
  • 新增SQLite 3进行数据缓存
  • API支持
  • 增加腾讯IP查询接口

使用说明

环境要求

  • PHP >= 5.6
  • PDO组件
  • SQLite 3

安装说明

  1. 访问check.php获取项目绝对路径
  2. 修改config.php填写项目绝对路径
  3. 确保data目录可读可写,否则缓存无法写入,新手易犯权限问题
  4. 如果需要支持腾讯查询接口,需要在 http://lbs.qq.com/ 申请API,并在config.php中填写自己的key
//设置腾讯API
	define("LBSQQ","");

安全设置

避免您的数据库被别人下载,请在Nginx配置中加入以下规则:

location ~ \.(db3|dat)$ {
	deny all;
}

API接口

请参考文档:https://doc.xiaoz.me/#/api/ipinfo

Demo

联系我

ipinfo's People

Contributors

helloxz avatar

Watchers

James Cloos avatar 我主沉浮 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.