阅读:9273回复:8
后缀端口的网址为什么没法访问?
我在地址栏输入http://www.ezikao.com.cn:6000,firefox弹出对话框说”由于安全问题,对所提供端口的访问已被禁用“。这个应该可以修改设置吧?但我没有找到。
|
|
1楼#
发布于:2005-03-09 08:48
补充下,把这条加到个人目录下的 user.js 也能生效。
|
|
2楼#
发布于:2005-03-09 08:48
Firefox这么做似乎是太谨慎了。
而且解除这个限制也似乎太麻烦了。好在这样的网站很罕见。 |
|
|
3楼#
发布于:2005-03-09 08:48
转帖http://www.mozilla.org/releases/mozilla1.5/known-issues.html上的文字(在Security这一段)
For security reasons, Mozilla does not allow connections to certain ports. To override this on a per-port basis, add a comma separated list of ports to defaults/all.js (in your Mozilla installation directory). Note that this pref only works in the all.js file in the Mozilla installation directory and it affects all users of the installation. It does not work if you add it to the prefs.js or user.js files in your personal profile directory. For example, to unblock ports 1, 3, and 7, use the following line: pref("network.security.ports.banned.override", "1,3,7"); 简单的说,为了安全性的理由,Mozilla不允许连接到某些ports,这可以藉由修改all.js这个设定档来解除这个限制,例如要开放port6000的话: pref("network.security.ports.banned.override", "6000"); 请记得要在 Firefox 关闭的情况下修改这个档案……… 如果你是在 Firefox 已开启时修改此档,将没有作用,并且在你关闭 Firefox 后,内存中的设定内容,将会写回 prefs.js,那么你之前所做的,全都白费了。 |
|
|
4楼#
发布于:2005-03-09 08:48
还好我没有这方面的需要。
|
|
|
5楼#
发布于:2005-03-09 08:48
我觉得这应该算是一个BUG,或者是开发小组没有考虑好的一个地方。
|
|
6楼#
发布于:2005-03-09 08:48
Windows 系统不需要 X11 啊
|
|
7楼#
发布于:2005-03-09 08:48
不知道有没有用,先放在这吧
http://lxr.mozilla.org/mozilla/source/n ... ce.cpp#139 |
|
|
8楼#
发布于:2005-03-09 08:48
确实有这个问题,不知道怎么回事。应该不会是限定端口吧,为什么我访问本机的8080(tomcat用到的)就没有问题呢。
|
|