V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
svon
V2EX  ›  推广

发福利了,免费开源一个 http 代理服务

  •  
  •   svon · 93 天前 · 2693 次点击
    这是一个创建于 93 天前的主题,其中的信息可能已经有所发展或是发生改变。

    代理地址: https://proxy.iprouter.top/

    支持常见的 GET/POST/PUT/PATCH/DELETE 默认处理 CORS 自动隐藏客户端真实 IP

    比如要代理 V2EX 完整的请求地址为 https://proxy.iprouter.top/https://www.v2ex.com/

    每天有限额,单个 IP 2000 次请求

    16 条回复    2024-01-26 12:57:22 +08:00
    vueli
        1
    vueli  
       93 天前
    开源地址在哪
    hongfs
        2
    hongfs  
       93 天前
    @vueli https://github.com/Snawoot/dumbproxy

    可以试下这个,支持 auth
    chocolatesir
        3
    chocolatesir  
       93 天前 via Android   ❤️ 3
    开源新定义。
    actar
        4
    actar  
       93 天前
    InDom
        5
    InDom  
       93 天前
    代理网站 ❌
    用来盗链 ✅

    https://proxy.iprouter.top/
    InDom
        6
    InDom  
       93 天前
    这个锅得 V2EX 背...
    Andim
        7
    Andim  
       93 天前 via iPhone
    @actar 欧洲人之前开发了一个工具跟这个类似 中间服务器劫持 所有传输的密码都能捕获
    collen
        8
    collen  
       93 天前
    好好好,还有什么福利吗
    imzcg2
        9
    imzcg2  
       93 天前
    xingchenxf
        10
    xingchenxf  
       93 天前
    开源代码在哪?
    svon
        11
    svon  
    OP
       93 天前
    @xingchenxf
    @vueli

    const main = async function (request: Request): Promise<Response> {
    // 获取客户端传入的数据
    // 需要跟进请求类型与 ContentType 来做处理
    const body = await request.arrayBuffer();

    // 代理请求
    const res = await fetch(request.url, {
    body: body,
    method: request.method,
    // 如果要隐藏客户端 IP, 需重新构造 Headers
    headers: new Headers(request.headers),
    });

    const status = res.status;
    const statusText = res.statusText;
    const value = await res.arrayBuffer();

    return new Response(value, {
    status,
    statusText,
    headers: res.headers,
    });
    }
    wusheng0
        12
    wusheng0  
       93 天前 via Android   ❤️ 1
    重新定义 开源
    重新定义 福利
    nodejsexpress
        13
    nodejsexpress  
       93 天前
    @svon 这个是 node.js 代码? 怎么没头没尾的?
    program9527
        14
    program9527  
       93 天前 via Android
    跟我的 https://pd.zwc365.com 差不多啊😯
    fuzzsh
        15
    fuzzsh  
       93 天前 via Android
    @nodejsexpress cloud flare workers
    cybort
        16
    cybort  
       92 天前 via Android
    你这属于打广告
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1204 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 23:36 · PVG 07:36 · LAX 16:36 · JFK 19:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.