Coder Social home page Coder Social logo

cipr's Introduction

cIPR

将域名转为ip段权重

第一次使用回自动下载 qqwry.dat 和生成配置文件,不好的网络环境会影响使用

用法

admin@admin cIPR % go run cIPR.go domain.txt

 ▄████████  ▄█     ▄███████▄    ▄████████ 
███    ███ ███    ███    ███   ███    ███ 
███    █▀  ███▌   ███    ███   ███    ███ 
███        ███▌   ███    ███  ▄███▄▄▄▄██▀ 
███        ███▌ ▀█████████▀  ▀▀███▀▀▀▀▀   
███    █▄  ███    ███        ▀███████████ 
███    ███ ███    ███          ███    ███ 
████████▀  █▀    ▄████▀        ███    ███ 
                               ███    ███
											v0.0.1
	https://github.com/canc3s/cIPR
www.xxx.com 	 [103.x.x.x]
test.xxx.com 	 [103.x.x.x]

...

124.x.x.0/24 || 194
223.x.x.0/24 || 74
219.x.x.0/24 || 51
106.x.x.0/24 || 37
111.x.x.0/24 || 37
202.x.x.0/24 || 34
103.x.x.0/24 || 25
1.x.x.0/24 || 21
103.x.x.0/24 || 15
101.x.x.0/24 || 12
125.x.x.0/24 || 8
112.x.x.0/24 || 8
210.x.x.0/24 || 6
27.x.x.0/24 || 6
124.x.x.0/24 || 5
42.x.x.0/24 || 5
106.x.x.0/24 || 5
58.x.x.0/24 || 4
221.x.x.0/24 || 3
219.x.x.0/24 || 2
118.x.x.0/24 || 2
220.x.x.0/24 || 2
124.x.x.0/24 || 2
123.x.x.0/24 || 2
36.x.x.0/24 || 2
59.x.x.0/24 || 1
58.x.x.0/24 || 1
106.x.x.0/24 || 1
211.x.x.0/24 || 1
123.x.x.0/24 || 1

config.yml

datPath: ./qqwry.dat    #qqwry.dat的位置
blackList:              #ip段黑名单
    - 阿里巴巴
    - CDN
    - 局域网
    - 美国
    - 阿里
    - Azure
    - 华为
    - 腾讯
    - Microsoft
    - 微软
    - 网宿
    - Amazon

该黑名单屏蔽了cnd和一些云服务器,使用时可以自行调节设置。

Thanks

cipr's People

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.