Git Product home page Git Product logo

gus-proxy's Introduction

Gus-Proxy

"gus - 绝命毒师里的大毒枭"

Build Status Go Report Card

README.English


运行

# prepare the proxies
mkdir -p data
touch data/proxies.txt
# put your proxies in data/proxies.txt
# the format could be:
# socks5://127.0.0.1:1080
# http://user:[email protected]:1081
# socks4://127.0.0.1:1082
# direct://0.0.0.0

# then:
sudo docker run --rm -ti --name gus-proxy \
    -p 8080:8080 \
    -v `pwd`/data:/data \
    wrfly/gus-proxy

思路

打一枪换一个地方

  1. 每次请求都从代理池中选取一个代理
  2. 但是这样会不会触发server端的验证,即session与IP匹配
  3. 但是如果server端有这种IP验证的话,就没必要用这东西了
  4. 要解决的是server限制某一IP访问频率的问题

没问题。

设计

  1. 程序对上层表现为一个HTTP代理
  2. 程序加载一个代理列表(HTTP/Socks5) [或者默认配置一个代理列表]
  3. 每次的请求都从代理列表中选取一个
  4. 选取的算法可能是轮询、随机、或其他目前没想到的
  5. 要验证proxy的可用性
  6. 每次请求替换UA
  7. 请求资源的时候,查询目标资源地址全部的IP,随机

效果

Gus-Running Curl-test

gus-proxy's People

Contributors

wrfly 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.