通过JavaScript在单独的浏览器中运行的JavaScript的代理网络流量

发布于 2025-01-31 12:55:29 字数 720 浏览 4 评论 0原文

我想在一台计算机上通过另一台计算机上的另一个浏览器在一台计算机上运行浏览器。

我相信它可能会起作用:

  user
   |
+--------------+
| user browser |
+--------------+
   |
   \/
+--------------+
| proxy server |
+--------------+
   | websocket traffic
   \/
+----------------+   
| second browser |  special "proxy page" javascript   
+----------------+   
   |
   \/
+------------+
| web server | web site A
+------------+

更详细地说:

  1. 用户的浏览器照常使用代理服务器,因此所有传出的Web流量都贯穿代理Sever。

  2. 然后,代理服务器通过Websocket将所有流量发送到第二个浏览器,该浏览器已在特殊页面上打开。

  3. 特殊页面上的JavaScript然后将传入的流量直接转发到网站A。对于所有意图和目的,它像用户使用第二个浏览器一样转移到网站。

我希望对代理服务器和第二个浏览器上运行的特殊页面中的匹配JavaScript以及可能出现的任何陷阱的匹配Javascript提出一些技术建议。

I want to have a browser running on one machine proxy its traffic through a different browser on another machine.

Here's how I believe it might work:

  user
   |
+--------------+
| user browser |
+--------------+
   |
   \/
+--------------+
| proxy server |
+--------------+
   | websocket traffic
   \/
+----------------+   
| second browser |  special "proxy page" javascript   
+----------------+   
   |
   \/
+------------+
| web server | web site A
+------------+

In more detail:

  1. The user's browser is set up as usual to use the proxy server, so all outgoing web traffic goes through the proxy sever.

  2. The proxy server then sends all of that traffic, via websockets, to the second browser, which is already open at a special page.

  3. The javascript on the special page then forwards the incoming traffic directly to web site A. To all intent and purposes, it looks to the web site like the user is using the second browser.

I'd like some technology suggestions for both the proxy server and also the matching javascript inside the special page running on the second browser, and any gotchas that might arise.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不必在意 2025-02-07 12:55:29

由于 same-origin策略限制您需要在该计算机上运行其他应用程序。

This is not possible due to same-origin policy restrictions applied by the second browser. You'll need a different application running on that computer.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文