All Projects → liyangready → Mini Proxy

liyangready / Mini Proxy

A very mini transparent proxy for http/https by NodeJS.Just like squid. 基于nodejs的迷你易用的proxy

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Mini Proxy

Swagger Combined
Combines all swagger documents in microservices
Stars: ✭ 108 (-9.24%)
Mutual labels:  proxy
Ansible Role Haproxy
Ansible Role - HAProxy
Stars: ✭ 112 (-5.88%)
Mutual labels:  proxy
Quicssh
SSH over QUIC
Stars: ✭ 116 (-2.52%)
Mutual labels:  proxy
Workers
Cloudflare Workers
Stars: ✭ 111 (-6.72%)
Mutual labels:  proxy
S3 Sftp Proxy
An AWS S3 gateway proxying SFTP connections.
Stars: ✭ 112 (-5.88%)
Mutual labels:  proxy
Madelineproto
Async PHP client/server API for the telegram MTProto protocol
Stars: ✭ 1,776 (+1392.44%)
Mutual labels:  proxy
Frp
A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.
Stars: ✭ 51,746 (+43384.03%)
Mutual labels:  proxy
Nassh Relay
Relay Server for the Secure Shell Chromium plugin
Stars: ✭ 118 (-0.84%)
Mutual labels:  proxy
Httpproxy
Go HTTP proxy server library
Stars: ✭ 110 (-7.56%)
Mutual labels:  proxy
Amqproxy
An intelligent AMQP proxy, with connection and channel pooling/reusing
Stars: ✭ 115 (-3.36%)
Mutual labels:  proxy
Http request randomizer
Proxying Python Requests
Stars: ✭ 110 (-7.56%)
Mutual labels:  proxy
Reverse proxy plug
🔛 an Elixir reverse proxy Plug with HTTP/2, chunked transfer and path proxying support
Stars: ✭ 112 (-5.88%)
Mutual labels:  proxy
Martian
Martian is a library for building custom HTTP/S proxies
Stars: ✭ 1,589 (+1235.29%)
Mutual labels:  proxy
Mitm Scripts
🔄 A collection of mitmproxy inline scripts
Stars: ✭ 109 (-8.4%)
Mutual labels:  proxy
Baiducrawler
Sample of using proxies to crawl baidu search results.
Stars: ✭ 116 (-2.52%)
Mutual labels:  proxy
Pysocket
PySocket ,一个通过猴子补丁(monkey patch)动态修改 socket 的项目。在不修改源码的情况下给 socket 增加一些诸如限制客户端数量、前置代理之类的功能。让我们将 Monkey Patch 进行到底吧!
Stars: ✭ 108 (-9.24%)
Mutual labels:  proxy
Gus Proxy
"打一枪换一个地方" 一个HTTP代理
Stars: ✭ 113 (-5.04%)
Mutual labels:  proxy
Free proxy website
获取免费socks/https/http代理的网站集合
Stars: ✭ 119 (+0%)
Mutual labels:  proxy
100 Words Design Patterns Java
GoF Design Patterns, each pattern described with story from real life.
Stars: ✭ 117 (-1.68%)
Mutual labels:  proxy
Glider
glider is a forward proxy with multiple protocols support, and also a dns/dhcp server with ipset management features(like dnsmasq).
Stars: ✭ 1,710 (+1336.97%)
Mutual labels:  proxy

mini-proxy

A very mini transparent proxy for http/https by NodeJS.Just like squid.

可能是最小最轻量的透明web代理,完美支持http&https。

Installation

$ npm install mini-proxy

Features

  • mini.
  • easy to learn and use.
  • support http & https(don't need certificate)
  • support modify request(http&https) and response(http only)

Usage

var MiniProxy = require("mini-proxy");

var myProxy = new MiniProxy({
	"port": 9393,
	"onBeforeRequest": function(requestOptions) {
		console.log("proxy request :" + requestOptions.host + 
			    (requestOptions.path || ''));
	}
});

myProxy.start();
console.log("proxy start at 9393");

change system proxy to 127.0.0.1:9393.

it wroks well! console log:

$ DEBUG=mproxy node demo/test.js
proxy start at 9393
proxy request :www.microsoft.com/pkiops/crl/MicSecSerCA2011_2011-10-18.crl
proxy request :crl.microsoft.com/pki/crl/products/tspca.crl
proxy request :www.baidu.com

Other options

var myProxy = new MiniProxy({
	"port": 9393,
	"onBeforeRequest": function(requestOptions) {
	//u can change the request param here
		console.log("proxy request :" + requestOptions.host + 
			    (requestOptions.path || ''));
	},
	"onBeforeResponse": function(remoteResponse) {
	// u can change the response here
	},
	"onRequestError": function(e, req, res) {}
});

Use DEBUG=mproxy to open error log.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].