从 Glype 迁移到 Squid
我有一个使用 Glype 代理的网站。我使用 Glype 在框架中显示远程网站。我开始使用 Glype 是因为我需要一种与框架网站“对话”并确定其大小的方法。为了实现这一点,我使用 DOM 的 window.postMessage。我用脚本注入框架网站,然后就可以进行通信了。
我最近在整个事情中添加了 Squid 代理。现在我纯粹将它用于缓存手段。 Glype 通过 Squid 接收所有网站的内容。
有什么方法可以完全删除 Glype 并只使用 Squid 吗?更具体地说:
如何通过 Squid 加载框架内容? 使用 Squid 将脚本注入框架网站的最合适方法是什么?
顺便说一下,正如我在开头提到的。我使用的脚本注入纯粹是为了确定网站的大小。没有别的了。此线程中没有邪恶。
我想放弃 Glype 的原因是,尽管它很好,但它经常无法正确显示页面。
谢谢!
I have a website that uses Glype proxy. I use Glype to display remote websites in a frame. I started using Glype because I needed a way to "speak" to the frame website and determine it's size. To accomplish this I use DOM's window.postMessage. I inject the frame website with a script and then I can communicate.
I recently added Squid proxy into this whole thing. Right now I use it purely for caching means. Glype receives the content of all of the websites through Squid.
Is there any way to remove Glype completely out of this, and just use Squid? To be more specific:
How can I load frame content through Squid?
What would be the most appropriate way to inject a script into the frame website, using Squid?
By the way, as I mentioned in the beginning. The script injection that I use is purely for determining website's size. Nothing else. No evil in this thread.
The reason why I want to drop Glype is because, as good as it is, it often doesn't display pages properly.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论