用于重写远程网页的通用 Node.js 库 Unblocker

码农软件 · 软件分类 · 网络工具包 · 2019-02-24 08:57:03

软件介绍

Unblocker 最初是一个 Web 代理,用于回避互联网审查,类似于 CGIproxy / PHProxy / Glype ,但是在用 Node.js 写后, 它已经变成了用于代理和重写远程网页的通用库。

所有的数据都被处理,并且在不必要的缓冲的情况下被中继到客户端,使得 Unblocker  成为最快的网络代理之一。

使用示例:

npm install --save unblocker

Unblocker 导出与 Express 兼容的 API

var express = require('express')
var Unblocker = require('unblocker');
var app = express();

// this must be one of the first app.use() calls and must not be on a subdirectory to work properly
app.use(new Unblocker({prefix: '/proxy/'}));

app.get('/', function(req, res) {
    //...
});

若是不想用 express 也很简单,请参见 examples / simple / server.js 示例。

本文地址:https://www.codercto.com/soft/d/12.html

Measure What Matters

Measure What Matters

John Doerr / Portfolio / 2018-4-24 / GBP 19.67

In the fall of 1999, John Doerr met with the founders of a start-up he’d just given $11.8 million, the biggest investment of his career. Larry Page and Sergey Brin had amazing technology, entrepreneur......一起来看看 《Measure What Matters》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

SHA 加密
SHA 加密

SHA 加密工具

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具