打开注册Cloudflare账号 看图 ![](/usr/uploads/2021/05/660945262.png) ![](/usr/uploads/2021/05/3330993944.png) ![](/usr/uploads/2021/05/2636778040.jpg) 把这行代码粘贴到下图位置 ```php const whitelist = ["/bot"]; const tg_host = "api.telegram.org"; addEventListener('fetch', event => { event.respondWith(handleRequest(event.request)) }) function validate(path) { for (var i = 0; i < whitelist.length; i++) { if (path.startsWith(whitelist[i])) return true; } return false; } async function handleRequest(request) { var u = new URL(request.url); u.host = tg_host; if (!validate(u.pathname)) return new Response('Unauthorized', { status: 403 }); var req = new Request(u, { method: request.method, headers: request.headers, body: request.body }); const result = await fetch(req); return result; } ``` ![](https://uploader.shimo.im/f/TvmFsWUQBMEiNecH.jpg) 4. 复制左上角的网址填入TG_API_HOST WMI Scripting HTML 当前访问者IP地址及地址归属: Last modification:May 26th, 2021 at 02:57 pm © 允许规范转载 Support 如果觉得我的文章对你有用,请随意赞赏 ×Close Appreciate the author Sweeping payments