netptop / siteproxy Goto Github PK
View Code? Open in Web Editor NEWreverse proxy, online proxy, 反向代理,免翻墙访问Youtube/twitter/Google, 支持github和telegram web登录(请注意不要通过不信任的代理进行登录)。支持DuckDuckGo AI Chat(可免费访问chatGPT3.5和Claude3)
License: MIT License
reverse proxy, online proxy, 反向代理,免翻墙访问Youtube/twitter/Google, 支持github和telegram web登录(请注意不要通过不信任的代理进行登录)。支持DuckDuckGo AI Chat(可免费访问chatGPT3.5和Claude3)
License: MIT License
TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11731:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
cause: InvalidArgumentError: invalid connection header
at processHeader (node:internal/deps/undici/undici:6674:17)
at new Request (node:internal/deps/undici/undici:6502:13)
at [http1 build request] (node:internal/deps/undici/undici:6595:16)
at [dispatch] (node:internal/deps/undici/undici:7697:139)
at Intercept (node:internal/deps/undici/undici:7377:20)
at [Intercepted Dispatch] (node:internal/deps/undici/undici:6007:16)
at Client.dispatch (node:internal/deps/undici/undici:6023:44)
at [dispatch] (node:internal/deps/undici/undici:6254:32)
at [Intercepted Dispatch] (node:internal/deps/undici/undici:6000:33)
at Pool.dispatch (node:internal/deps/undici/undici:6023:44) {
code: 'UND_ERR_INVALID_ARG'
}
}
Error: No Output Directory named "public" found after the Build completed. You can configure the Output Directory in your Project Settings. Learn More: https://vercel.link/missing-public-directory
无法部署在heroku问
recaptcha 是动态载入的,应该很难通过前端代理吧。
虽然我不知道这个项目的登录是怎样实现的,按理说前端代理也是没法处理动态请求的。如果登录有办法实现,那么动态载入的验证码是否也能实现交互呢?
可不可以直接写Node版本要求?习惯用apt安装了,难道自带的 10.19.0 太低了?
页面header部分错乱了
执行wrangler login,点击“允许”之后会显示“Error”,点击F12后发现报错
Access to () has been blocked by CORS : No ‘Access-Control-Allow-Origin’ header is present on the requested resource,这应该怎么解决呢
Workers调试提示错误。是不是28行有错?
Uh oh...
Error communicating with origin server dash.cloudflare.comhttps:
Details
DNS lookup failed.; params.host = dash.cloudflare.comhttps; params.service = ; gai_strerror(status) = Name or service not known
Performance & security by Cloudflare
worker.js:97 req2middleware, headers:{"accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9","accept-encoding":"gzip","accept-language":"zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6","cf-connecting-ip":"116.25.46.210","cf-ipcountry":"CN","cf-ray":"70682082a4409870-SJC","cf-visitor":"{"scheme":"https"}","dnt":"1","host":"siteproxy.netptop.workers.dev","referer":"https://dash.cloudflare.com/","sec-ch-ua":"\" Not A;Brand";v="99", "Chromium";v="101", "Microsoft Edge";v="101"","sec-ch-ua-mobile":"?0","sec-ch-ua-platform":""Windows"","sec-fetch-dest":"iframe","sec-fetch-mode":"navigate","sec-fetch-site":"cross-site","upgrade-insecure-requests":"1","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/537.36 Edg/101.0.1210.32","x-forwarded-proto":"https"}
worker.js:28 timestr:2022-05-05T08:32:41.484Z, serverName:siteproxy.netptop.workers.dev, middle_req:{"url":"https://siteproxy.netptop.workers.dev/","headers":{"accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9","accept-encoding":"gzip","accept-language":"zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6","cf-connecting-ip":"116.25.46.210","cf-ipcountry":"CN","cf-ray":"70682082a4409870-SJC","cf-visitor":"{\"scheme\":\"https\"}","dnt":"1","host":"siteproxy.netptop.workers.dev","referer":"https://dash.cloudflare.com/","sec-ch-ua":"\" Not A;Brand";v="99", "Chromium";v="101", "Microsoft Edge";v="101"","sec-ch-ua-mobile":"?0","sec-ch-ua-platform":""Windows"","sec-fetch-dest":"iframe","sec-fetch-mode":"navigate","sec-fetch-site":"cross-site","upgrade-insecure-requests":"1","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/537.36 Edg/101.0.1210.32","x-forwarded-proto":"https"},"body":null,"bodyUsed":false,"method":"GET","redirect":"manual"}
worker.js:28 2022-05-05T08:32:41.484Z: after modification, middle_req.url:https://siteproxy.netptop.workers.dev/
worker.js:28 proxy called
worker.js:28 target:https://dash.cloudflare.com
worker.js:97 req2middleware, headers:{}
worker.js:28 calling onProxyReq...
worker.js:28 route:undefined, httpType:https, host:dash.cloudflare.com
worker.js:28 host=dash.cloudflare.com
worker.js:28 ====> after onProxyReq, middle_proxyReq:{"url":"https://siteproxy.netptop.workers.dev/","headers":{"accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9","accept-encoding":"gzip","accept-language":"zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6","dnt":"1","host":"dash.cloudflare.com","referer":"dash.cloudflare.com","sec-ch-ua":"\" Not A;Brand";v="99", "Chromium";v="101", "Microsoft Edge";v="101"","sec-ch-ua-mobile":"?0","sec-ch-ua-platform":""Windows"","sec-fetch-mode":"cors","upgrade-insecure-requests":"1","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/537.36 Edg/101.0.1210.32","Accept-Encoding":"gzip"},"body":null,"bodyUsed":false,"method":"GET","redirect":"manual","path":"https://siteproxy.netptop.workers.dev/"}
worker.js:97 set header:accept, text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9
worker.js:97 set header:accept-encoding, gzip
worker.js:97 set header:accept-language, zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6
worker.js:97 set header:dnt, 1
worker.js:97 set header:host, dash.cloudflare.com
worker.js:97 set header:referer, dash.cloudflare.com
worker.js:97 set header:sec-ch-ua, " Not A;Brand";v="99", "Chromium";v="101", "Microsoft Edge";v="101"
worker.js:97 set header:sec-ch-ua-mobile, ?0
worker.js:97 set header:sec-ch-ua-platform, "Windows"
worker.js:97 set header:sec-fetch-mode, cors
worker.js:97 set header:upgrade-insecure-requests, 1
worker.js:97 set header:user-agent, Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/537.36 Edg/101.0.1210.32
worker.js:97 set header:Accept-Encoding, gzip
worker.js:97 cf_proxyReq.header[accept]=text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9
worker.js:97 cf_proxyReq.header[accept-encoding]=gzip
worker.js:97 cf_proxyReq.header[accept-language]=zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6
worker.js:97 cf_proxyReq.header[dnt]=1
worker.js:97 cf_proxyReq.header[host]=dash.cloudflare.com
worker.js:97 cf_proxyReq.header[referer]=dash.cloudflare.com
worker.js:97 cf_proxyReq.header[sec-ch-ua]=" Not A;Brand";v="99", "Chromium";v="101", "Microsoft Edge";v="101"
worker.js:97 cf_proxyReq.header[sec-ch-ua-mobile]=?0
worker.js:97 cf_proxyReq.header[sec-ch-ua-platform]="Windows"
worker.js:97 cf_proxyReq.header[sec-fetch-mode]=cors
worker.js:97 cf_proxyReq.header[upgrade-insecure-requests]=1
worker.js:97 cf_proxyReq.header[user-agent]=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/537.36 Edg/101.0.1210.32
worker.js:28 fetching: cf_proxyReq:{"signal":{"aborted":false},"fetcher":null,"redirect":"manual","headers":{},"url":"https://dash.cloudflare.comhttps://siteproxy.netptop.workers.dev/","method":"GET","bodyUsed":false,"body":null}
worker.js:97 config.serverName:siteproxy.netptop.workers.dev
worker.js:97 cf_res header: content-length, 1444
worker.js:97 cf_res header: content-type, text/html; charset=UTF-8
worker.js:28 calling onProxyRes...
worker.js:97 on called: data
worker.js:97 on called: end
worker.js:28 1
worker.js:28 2, setCookieHeaders:[]
worker.js:28 3
worker.js:28 4
worker.js:28 after onProxyRes, cf_proxyRes.body:{"locked":false}
worker.js:28 ====> middle_res.send() being called.
worker.js:28 sending response ...
worker.js:97 middle2res 1
worker.js:97 header key:content-type
worker.js:97 header key:set-cookie
worker.js:97 before creating Response, middle_res:{"headers":{"content-type":"text/html; charset=UTF-8","set-cookie":["ORIGINALHOST=https/dash.cloudflare.com; expires=Invalid Date; domain=siteproxy.netptop.workers.dev; path=/"]},"statusCode":502,"ok":true,"body":{"locked":false},"onDict":{},"url":"","replied":true}
worker.js:97 middle2res 2, cf_res:{"webSocket":null,"url":"","redirected":false,"ok":false,"headers":{},"statusText":"Bad Gateway","status":502,"bodyUsed":false,"body":{"locked":false}}
worker.js:28 sent cf_res:{"webSocket":null,"url":"","redirected":false,"ok":false,"headers":{},"statusText":"Bad Gateway","status":502,"bodyUsed":false,"body":{"locked":false}}
worker.js:28 on end 1, bodyList.length:1
worker.js:28 on end 2, body.length:1444
worker.js:28 ====> middle_res.send() being called.
worker.js:28 before getWriter
worker.js:28 after getWriter
worker.js:28 after write data
worker.js:28 writable closed.
这个文件,https://github.com/netptop/siteproxy/blob/master/build/worker.js
搜索www.netptop.com
,换成你自己的域名/链接,自己调一下那个字符串前面的https/http(如果支持https就不用管)
比如通过代理访问 https://www.playemulator.io/gba-online/pokemon-x-and-y/, 可以正常显示页面,一旦点击游戏窗口的开始游戏按钮,就会一直停留在 downloading 界面,并且整个代理页面也停止响应。
真是令人绝望的问题
手机版用chrome和系统自带的浏览器打开 google,可以查询结果,但点击“查看更多结果”就打不开了
为啥搜索稍微长一点的,谷歌就报错431??
推特 API 无法调用,现在网页永远显示页面不存在,几天前测试就这样了
在cloudflare里面如何添加代码设置密码?
它曾经是一个你现在无法部署的问题,但现在它已更改为 vercel,我认为这是可能的。我要你制作 vercel.json。
有无教程
国内和谐了amazon相关网站,海淘、外贸还是挺大需求的,是否打算升级支持登录?
如何添加网站(such as : www.pixiv.net ),搞了半天,部分还是访问不了
502: BAD_GATEWAY
Code: NO_RESPONSE_FROM_FUNCTION
ID: hnd1::jcrw7-1594344104611-15b40ab0c163
在heroku部署的siteproxy无法在iOS上使用(包括Chrome)但在安卓和win一切正常
忘解决
一直卡在generate key这一步
我想用siteproxy实现对某个站点的单独代理,同时代理外链及其它,所以能否设置打开部署后的域名就自动代理这个站点,不显示默认的起始页。
似乎代码中有类似设置,但Workers.js经过压缩我实在是找不到了(
如果Workers搞不定,能否提供其他部署方式的解决方案?
可以进去,但不能使用
访问方式简单,就是速度优点慢,而且上youtube会出现黄色警告:我们很快将停止支持此浏览器。要想获得最理想的体验,请更新您的浏览器。不知为什么为有这个。
我是个Archlinux用户,在下载aur软件时搭配siteproxy时发现,curl下载下来的源码包和许可证文件的sha256会跟PKGBUILD构建脚本里作者给定的值对不上,导致软件编译失败,经过多次尝试,确定会导致文件属性跟源文件不一致,望大佬修复
Can you make it support videos from https://vidembed.io?
rt
按照netptop大神的heroku部署方法,无法打开app
希望早日得到解决
1.Cloud Flare Workers 版本无法登录Telegram Web版,总是卡在generate key这一步
2.Heroku部署的话可以登录web.telegram.org 但是希望可以加上密码访问,保证安全
还有,Telegram官方出了webk.telegram.org和wekz.telegram.org,这2个版本都无法正常访问,希望可以修复一下这个Bug
部署到vps后直接访问正常,套上cloudflare后可以访问首页,其它链接都显示{}
还有config.js文件里的
const siteSpecificReplace = {
是什么时候才需要配置的
##缺点##
1.推特文章只支持搜索出来的,不支持自动渲染展示的,这点不好,相比jsproxy,这个能看推特
2.服务器安装上貌似有点BUG
3.YouTube样版过于简单
##优点##
siteproxy添加自定义功能兼容性很好(滑稽)
js好像是加密了?想修改下首页的模样,删除、添加自用的网站
There is no path traversal chek in index.js when sending local files, so it's possible to read any file by path traversal.
poc: curl --path-as-is http://siteproxy.your.domain.name/../../../etc/passwd
I gotthe server working, but when I try to access youtube videos, it leads to siteproxy.now.sh. It wont use my own server.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.