且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

管理升级到Java 7

更新时间:2023-12-05 12:59:16

有关小应用程序,你可以尝试保存页面的小程序是,加上其JNLP文件,编辑JNLP文件修改版本=1.6 +版本=1.6(或其他),HTML文件,以便该applet点改变的本地版本JNLP文件但一切点到原始网站,把修改过的文件在您的内部网,当你要使用的小程序在你的内部网的页面指向你的网络浏览器。由于applet的codeBase的仍将是外部网站上,而不是在您的Intranet,不可信的小程序仍然能够进行网络连接回到他们的源主机。

For an applet, you could try saving the page the applet is in, plus its JNLP file, edit the JNLP file to change version="1.6+" to version="1.6" (or whatever), change the HTML file so the applet points to the local version of the JNLP file but everything else points to the original site, put the modified files up on your intra-net, and point your web browsers at your intra-net's page when you want to use the applet. Since the applet's codebase still will be on the external website instead of on your intranet, untrusted applets will still be able to make network connections back to their originating host.

当然,这假定外部网站允许当HTTP引用不是他们的网站相关的文件被下载(即,它允许其资源的盗链)。

Of course, this assumes that the external website allows the relevant files to be downloaded when the HTTP referer isn't their site (that is, it allows "hotlinking" of its resources).