Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

masquerade的proxy模式能否可以实现类似nginx sub_filter功能,来替换proxy网页内的内容 #1295

Open
XxyokixX opened this issue Jan 6, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@XxyokixX
Copy link

XxyokixX commented Jan 6, 2025

你的功能请求是否与某个问题有关?

masquerade: proxy
proxy:
    url: https://some.site.net 
    rewriteHost: true

当使用hysteria2的proxy伪装模式时,hysteria2仅会“简单”的反代一下目标网站,不会替换网页内的域名地址
例如: 当目标地址是https://google.com 时,proxy成功后,点击一下google icon还是会跳转到google.com,而不是我的伪装地址
这导致这个伪装看起来不那么真

所以咱建议能提供一下类似于nginx的sub_filter功能:

location / {
sub_filter  'some.site.net' 'mydomain.com'; //替换目标网页内的some.site.net到mydomain.com
sub_filter_once off;   //替换所有的,默认是on,替换第一个
}

如果能实现这个功能,那么这个masquerade: proxy模式将更加强大,可玩性也将大大提高

@XxyokixX XxyokixX added the enhancement New feature or request label Jan 6, 2025
@stqfdyr
Copy link

stqfdyr commented Jan 7, 2025

啊?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants