全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
楼主: hqt

BT反代本站问题

[复制链接]
 楼主| 发表于 2021-8-20 16:31:37 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2021-8-20 17:12:08 | 显示全部楼层
这个能登录回复
https://www.loc.pp.ua/
发表于 2021-8-20 18:30:48 来自手机 | 显示全部楼层
没有强制定义来源referer,没有设置使用http1.1,没有cookie转换,没有内容替换,我建议直接用apache反代,少一堆麻烦
发表于 2021-8-20 18:35:23 | 显示全部楼层
caddy饭袋



本帖最后由 hjvn2211445 于 2021-3-12 23:24 编辑





https://www.loc.pp.ua/







###caddy v1



https://www.loc.pp.ua/ {

gzip

tls admin@hostloc.com

proxy / https://hostloc.com {

        header_upstream X-Real-IP {remote}

        header_upstream User-Agent {>User-Agent}

        header_upstream Accept-Encoding identity

#        header_upstream cookie “”

}

Log / caddy.log {combined}

Filter rule {

        Content_type text/.*

        Search_pattern https://www.hostloc.com

        Replacement https://www.loc.pp.ua

}

Filter rule {

        Content_type text/.*

        Search_pattern https://hostloc.com

        Replacement https://www.loc.pp.ua

}

Filter rule {

        Content_type text/.*

        Search_pattern static/image/common/logo.png

        Replacement https://p.pstatp.com/origin/137c90001d2f4b46c8349

}

Filter rule {

        Content_type text/.*

        Search_pattern 全球主机交流

        Replacement 全球MJJ交流

}

Filter rule {

        Content_type text/.*

        Search_pattern

        Replacement https://p.pstatp.com/origin/13829000392fe5a2de0c2

}

Filter rule {

        Content_type text/.*

        Search_pattern https://ceranetworks.com/

        Replacement https://www.hostloc.com/

}

Filter rule {

        Content_type text/.*

        Search_pattern hjvn2211445

        Replacement cpuer

}

Filter rule {

        Content_type text/.*

        Search_pattern “积分: “

        Replacement “积分: 12000”

}

Filter rule {

        Content_type text/.*

        Search_pattern “用户组: 论坛元老”

        Replacement “用户组: 管理员”

}

Filter rule {

        Content_type text/.*

        Search_pattern “uid=2049”

        Replacement “uid=1”

}

Filter rule {

        Content_type text/.*

        Search_pattern “uid-2049”

        Replacement “uid-1”

}

Filter rule {

        Content_type text/.*

        Search_pattern admin@xxxx.xxxx

        Replacement admin@hostloc.com

}

}
发表于 2021-8-20 18:40:13 | 显示全部楼层

caddy还要加个才能回帖
  1. header_upstream referer "https://hostloc.com/"
复制代码



Nginx大概是
  1. proxy_set_header Referer "https://hostloc.com/";
复制代码
发表于 2021-8-20 19:03:23 | 显示全部楼层
禁止访问 发表于 2021-8-20 16:19
无法访问此网站检查 hostloc.ca 中是否有拼写错误。
如果拼写无误,请尝试运行 Windows 网络诊断。
DNS_P ...

再试
哈哈
发表于 2021-8-20 19:29:00 | 显示全部楼层
hjvn2211445 发表于 2021-8-20 18:40
caddy还要加个才能回帖

好像找不到http.cors的gzip插件
发表于 2021-8-20 19:45:44 | 显示全部楼层
Lemon0 发表于 2021-8-20 19:29
好像找不到http.cors的gzip插件

没用这个插件
在proxy里面加的 header_upstream referer
 楼主| 发表于 2021-8-20 19:50:42 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2021-8-20 19:59:00 | 显示全部楼层
直接宝塔就行,啥也不用改
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2026-5-11 12:52 , Processed in 0.058801 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表