Giter Site home page Giter Site logo

dumpmemory / cfdohpw Goto Github PK

View Code? Open in Web Editor NEW

This project forked from irinesistiana/cfdohpw

0.0 1.0 0.0 6 KB

Cloudflare DoH proxy worker. 借助 Cloudflare CDN 平台中转加速任意 DoH (RFC8484) 流量。无需自备服务器和域名。

License: MIT License

JavaScript 100.00%

cfdohpw's Introduction

cfdohpw

Cloudflare DoH proxy worker。

借助 Cloudflare CDN 平台中转加速任意 DoH (RFC8484) 流量。无需服务器和域名。

如何使用

Worker 的代码在项目根目录的 index.js

不用软件只需浏览器点鼠标

可以用 Cloudflare 网页控制台部署 worker。Cloudflare 经常更新它的网页,此处省略一万字,请 Google,教程很多。

命令行

需要 Cloudflare 官方工具 wrangler。详见官方说明。此处省略一万字。

如何避免所有人都能使用该 worker

虽然平常见到的 DoH 服务器的地址都是 https://<server_addr>/dns-query。但这个路径 /dns-query 其实是可以随意改的。

可以修改 index.js 中的 endpointPath 参数来改变该路径。

比如设定

const endpointPath = '/dns-query-with-my-passwd-123456';

则服务器地址变成 https://<server_addr>/dns-query-with-my-passwd-123456。只有知道路径的用户才能使用该 worker。

Credit

cfdohpw's People

Contributors

irinesistiana avatar

Watchers

 avatar

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.