What I need to do is this:
我需要做的是:
<iframe src="http://www.google.com" width="800" height="600"></iframe>
But the constraint is, I want my website to fetch a requested website and display it in frame. That is, the clients browser must only have a connection with my web server. My website in turn will fetch requested url's and display them to the client.
但约束是,我希望我的网站获取一个请求的网站并在框架中显示它。也就是说,客户端浏览器必须只与我的Web服务器建立连接。我的网站将依次获取请求的URL并将其显示给客户端。
The only way I have thought I could do this is perhaps passing the url to an application that in turn downloads the page and then redirects the clients browser to the page (now stored locally on my web server). The problem is however that this would only work with rather boring and static sites, I require the website in the website do be fully functioning, ie streaming video, secure connections...
我认为可以做到这一点的唯一方法是将url传递给应用程序,然后该应用程序下载页面,然后将客户端浏览器重定向到页面(现在存储在我的Web服务器上)。然而问题是,这只适用于相当无聊和静态的网站,我要求网站中的网站确实功能齐全,即流媒体视频,安全连接......
What would be the best way to do this?
最好的方法是什么?
3 个解决方案
#1
I hate to break it to you, but I don't think there's a foolproof way to do this. What you're trying to do is make a proxy, and there's several ways to do it, but either way you won't be able to take things like Flash and JavaScript into account. I've used a lot of different proxies to get around the filter at my school and not one of them has been 100% effective. In fact, I don't think a single one has been able to load the music player on either PureVolume or MySpace.
我讨厌打破它,但我不认为有一个万无一失的方法来做到这一点。你要做的是做一个代理,有几种方法可以做到,但无论哪种方式,你都无法考虑Flash和JavaScript之类的东西。我已经使用了很多不同的代理来绕过我学校的过滤器而且其中一个没有100%有效。事实上,我认为没有一个能够在PureVolume或MySpace上加载音乐播放器。
If you still want to give it a try, read this article: Using Apache As A Proxy Server
如果您仍想尝试一下,请阅读本文:使用Apache作为代理服务器
#2
If one of your requirements is
如果您的要求之一是
... secure connections
......安全连接
that is not possible at all. By definition a secure end-to-end connections cannot go thru a proxy (see Man-in-the-middle)
这根本不可能。根据定义,安全的端到端连接不能通过代理(参见中间人)
#3
I have found a solution, to who ever mentioned it and then deleted their answer, thanks.
我找到了一个解决方案,谁曾经提到它然后删除了他们的答案,谢谢。
Making use of a reverse proxy could do this, http://docsrv.sco.com/INT_Proxy/revpxy.htm shows some ways in which a reverse proxy may be used.
使用反向代理可以做到这一点,http://docsrv.sco.com/INT_Proxy/revpxy.htm显示了可以使用反向代理的一些方法。
Paramesh Gunasekaran wrote a tutorial on creating your own reverse proxy with code supplied. http://www.codeproject.com/KB/IP/reverseproxy.aspx
Paramesh Gunasekaran编写了一个关于使用代码创建自己的反向代理的教程。 http://www.codeproject.com/KB/IP/reverseproxy.aspx
#1
I hate to break it to you, but I don't think there's a foolproof way to do this. What you're trying to do is make a proxy, and there's several ways to do it, but either way you won't be able to take things like Flash and JavaScript into account. I've used a lot of different proxies to get around the filter at my school and not one of them has been 100% effective. In fact, I don't think a single one has been able to load the music player on either PureVolume or MySpace.
我讨厌打破它,但我不认为有一个万无一失的方法来做到这一点。你要做的是做一个代理,有几种方法可以做到,但无论哪种方式,你都无法考虑Flash和JavaScript之类的东西。我已经使用了很多不同的代理来绕过我学校的过滤器而且其中一个没有100%有效。事实上,我认为没有一个能够在PureVolume或MySpace上加载音乐播放器。
If you still want to give it a try, read this article: Using Apache As A Proxy Server
如果您仍想尝试一下,请阅读本文:使用Apache作为代理服务器
#2
If one of your requirements is
如果您的要求之一是
... secure connections
......安全连接
that is not possible at all. By definition a secure end-to-end connections cannot go thru a proxy (see Man-in-the-middle)
这根本不可能。根据定义,安全的端到端连接不能通过代理(参见中间人)
#3
I have found a solution, to who ever mentioned it and then deleted their answer, thanks.
我找到了一个解决方案,谁曾经提到它然后删除了他们的答案,谢谢。
Making use of a reverse proxy could do this, http://docsrv.sco.com/INT_Proxy/revpxy.htm shows some ways in which a reverse proxy may be used.
使用反向代理可以做到这一点,http://docsrv.sco.com/INT_Proxy/revpxy.htm显示了可以使用反向代理的一些方法。
Paramesh Gunasekaran wrote a tutorial on creating your own reverse proxy with code supplied. http://www.codeproject.com/KB/IP/reverseproxy.aspx
Paramesh Gunasekaran编写了一个关于使用代码创建自己的反向代理的教程。 http://www.codeproject.com/KB/IP/reverseproxy.aspx