用于重写远程网页的通用 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://codercto.com/soft/d/12.html

New Dark Age

New Dark Age

James Bridle / Verso Books / 2018-7-17 / GBP 16.99

As the world around us increases in technological complexity, our understanding of it diminishes. Underlying this trend is a single idea: the belief that our existence is understandable through comput......一起来看看 《New Dark Age》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

MD5 加密
MD5 加密

MD5 加密工具