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

请问可以做url伪装吗 #5

Closed
Akimio521 opened this issue Apr 21, 2023 · 5 comments
Closed

请问可以做url伪装吗 #5

Akimio521 opened this issue Apr 21, 2023 · 5 comments

Comments

@Akimio521
Copy link

就是不想通过域名就能直接访问,例如直接访问aaa.com就代理到bing.com,访问aaa.com/g00gIe就访问https://www.google.com,输入aaa.com/youtube就代理到https://youtube.com,我看源码好像可以这么做,但我尝试了之后失败了,不知道是不是我代码写错了

@gaowanlu
Copy link
Owner

如果这样就会出现一定问题,例如谷歌搜索后问页面内的图片链接仍指向google域名,这样会影响网页内容的获取

@Akimio521
Copy link
Author

那可不可以绑定多个域名,根据域名的不同再进行不同的反向代理

@gaowanlu
Copy link
Owner

部署多个项目即可,只适用于单域名的网站,例如google可以使用大部分功能,因为html页面的内容的请求域名大多是与浏览器url栏域名相同

@Akimio521
Copy link
Author

项目多了太乱了,而且仓库也多

@Akimio521
Copy link
Author

不知道有没有什么其他的方法可以一个项目代理多个网站

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

No branches or pull requests

2 participants