Giter VIP home page Giter VIP logo

Comments (2)

iwestlin avatar iwestlin commented on September 26, 2024

我之前确实考虑过增加这个功能,甚至本地实现了一个这样的版本。实现方法是增加了一个接口来代理传入的url, 不过考虑到如果不做任何限制的话那么任何人都可以构造链接来白嫖别人的workers代理自己想访问的网址,所以没有push到这个仓库里。

有两种解决方案,一种是在接口里增加限制,只代理google相关域名;另一种是设置一个代理接口的passkey,代理url前先检查下passkey是否正确。我倾向于使用第一种方法。

另外有些用户本身是可以直连Google的,给图片加上代理反而减速了……后续我可能增加一个配置来允许用户选择是否开启图片代理。

from gdshare.

wnbh avatar wnbh commented on September 26, 2024

我之前确实考虑过增加这个功能,甚至本地实现了一个这样的版本。实现方法是增加了一个接口来代理传入的url, 不过考虑到如果不做任何限制的话那么任何人都可以构造链接来白嫖别人的workers代理自己想访问的网址,所以没有push到这个仓库里。

有两种解决方案,一种是在接口里增加限制,只代理google相关域名;另一种是设置一个代理接口的passkey,代理url前先检查下passkey是否正确。我倾向于使用第一种方法。

另外有些用户本身是可以直连Google的,给图片加上代理反而减速了……后续我可能增加一个配置来允许用户选择是否开启图片代理。

这样就更好了,期待

from gdshare.

Related Issues (20)

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.