Posts Tagged rm

cPanel License 过期的另一种可能

今天有台VPS服务器的网络节点出错,服务器提供商修了一下午,好了,但登陆cpanel时发过提示License过期

到http://www.cpanel.net/apps/verify/index.cgi输入我的VPS主IP查询并没有过期

于是使用/usr/local/cpanel/cpkeyclt更新,提示如下:

Updating cPanel license…Done. Update Failed!
Error message:
The cPanel license server said that your license has been expired.
For more information visit: http://www.cpanel.net/lic.html

The exact message was: The license is expired. (XXX.XXX.XXX.XXX)!

Building global cache for cpanel…Done

其中那个IP(XXX.XXX.XXX.XXX)是我的VPS上的另一个独立IP,我怀疑是因为网络故障造成了主IP变动,或因为我重启过VPS,造成新加进来的IP又重新自动排序了下,结果也是主IP变动

那就改回来吧,进入/etc/sysconfig/network-scripts/目录,查找ifcfg-venet0:0~ifcfg-venet0:X等文件

将原来的主IP更换到ifcfg-venet0:0,这应该是默认的主IP所在的配置文件

然后/etc/init.d/network reload,使更改生效,提示如下:Shutting down interface venet0:                            [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface venet0:  SIOCADDRT: Network is unreachable
SIOCADDRT: Network is unreachable
SIOCADDRT: Network is unreachable
SIOCADDRT: Network is unreachable
SIOCADDRT: Network is unreachable
                                                           [  OK  ]
再试更新cpanel License

# /usr/local/cpanel/cpkeyclt
Updating cPanel license…Done. Update succeeded.
Building global cache for cpanel…Done

问题解决

  • Share/Bookmark

Tags: , , , , , , ,

Linux系统信息查看命令大全

系统

# uname -a               # 查看内核/操作系统/CPU信息
# head -n 1 /etc/issue   # 查看操作系统版本
# cat /proc/cpuinfo      # 查看CPU信息
# hostname               # 查看计算机名
# lspci -tv              # 列出所有PCI设备
# lsusb -tv              # 列出所有USB设备
# lsmod                  # 列出加载的内核模块
# env                    # 查看环境变量

资源

# free -m                # 查看内存使用量和交换区使用量
# df -h                  # 查看各分区使用情况
# du -sh <目录名>        # 查看指定目录的大小
# grep MemTotal /proc/meminfo   # 查看内存总量
# grep MemFree /proc/meminfo    # 查看空闲内存量
# uptime                 # 查看系统运行时间、用户数、负载
# cat /proc/loadavg      # 查看系统负载

磁盘和分区

# mount | column -t      # 查看挂接的分区状态
# fdisk -l               # 查看所有分区
# swapon -s              # 查看所有交换分区
# hdparm -i /dev/hda     # 查看磁盘参数(仅适用于IDE设备)
# dmesg | grep IDE       # 查看启动时IDE设备检测状况

网络

# ifconfig               # 查看所有网络接口的属性
# iptables -L            # 查看防火墙设置
# route -n               # 查看路由表
# netstat -lntp          # 查看所有监听端口
# netstat -antp          # 查看所有已经建立的连接
# netstat -s             # 查看网络统计信息

进程

# ps -ef                 # 查看所有进程
# top                    # 实时显示进程状态

用户

# w                      # 查看活动用户
# id <用户名>            # 查看指定用户信息
# last                   # 查看用户登录日志
# cut -d: -f1 /etc/passwd   # 查看系统所有用户
# cut -d: -f1 /etc/group    # 查看系统所有组
# crontab -l             # 查看当前用户的计划任务

服务

# chkconfig --list       # 列出所有系统服务
# chkconfig --list | grep on    # 列出所有启动的系统服务

程序

# rpm -qa                # 查看所有安装的软件包
  • Share/Bookmark

Tags: , , , , , , , , , ,

kloxo启动错误:cannot restore segment prot after reloc: Permission denied

按之前写的一键安装kloxo安装好kloxo后,发现重启动时会出错,服务不正常,SSH进去使用

service kloxo restart命令重启kloxo服务,有一大批乱码,主要的错误信息如下:

Failed loading /usr/local/lxlabs/ext/lib/Zend/lib/Optimizer-2.5.7/php-5.2.x/ZendOptimizer.so:  /usr/local/lxlabs/ext/lib/Zend/lib/Optimizer-2.5.7/php-5.2.x/ZendOptimizer.so: cannot restore segment prot after reloc: Permission denied

解决方法:

这是SELinux搞的鬼,解决办法有如下两个
1. 使用chcon 命令
示例: chcon -t texrel_shlib_t    /usr/local/Zend/lib/Optimizer-3.3.3/php-5.2.x/ZendOptimizer.so
2. 禁止掉SELinux
更改/etc/sysconfig/selinux 文件的内容为 SELINUX=disabled

再次重启kloxw,报错如下:

Fatal error: Call to undefined function  mysql_connect() in /usr/local/lxlabs/kloxo/httpdocs/htmllib/phplib/lib/sqlite.php on line 34

mysql_connect()函数找不到了,重启服务器,一切正常

  • Share/Bookmark

Tags: , , , , , , , , , , , ,

firefox不支持的一个javascript

今天刚发现的,类似

<script type=”text/javascript”>
function dosubmit(){
    var form_obj=document.getElementById(‘abc’);
    form_obj.submit();
}
dosubmit();
</script>

在firefox里并不能得到执行,而在IE里是可以的

解决方法是,用

<script>document.abc.submit()</script>

这样更简洁的脚本替换

  • Share/Bookmark

Tags: , , ,

javascript submit()方法不能传submit名称值的解决

改变了批量表单的提交方式,用javascript submit()方法实现,可以有效减少form表单数量,但由于使用的是button按钮,其它表单元素不能再次包含name=”submit”,否则会报错不执行

在javascript函数内也不能再次定义这个值,否则也是报错

解决办法是用多个类似<input type=”submit” name=”submit” onclick=”login(abc)” value=”登陆”>的标签,而不是使用button标签来触发

因为在表单里,只有被点击的submit会被提交

而在<button>里调用表单提交函数的话,会造成没被点击的submit也被提交,结果是报错

不知道这样理解对不对

  • Share/Bookmark

Tags: , ,

CSS input 针对text,image等type显示不同样式

<style type=”text/css”>
<!–
INPUT{
 border: 1px solid #D4D0C8;
 width: 200px;
}
input[type=text]
{
 background-color: #FFCC33;
}
input[type=checkbox],input[type=radio]
{
 width: 20px;border: 0px;
}
–>
</style>
</head>
<body>
<form id=”form1″ name=”form1″ method=”post” action=”">
  <input type=”text” name=”textfield” />
  <input name=”radiobutton” type=”radio” value=”radiobutton” />
  <input type=”checkbox” name=”checkbox” value=”checkbox” />
</form>

IE8和火狐均支持

  • Share/Bookmark

Tags: , ,

GET /?C=N;O=D HTTP/1.1

Site 一个废弃的站,发现只有四个google收录了,分别是:

com/images/?DA

com/images/?SA

com/images/?ND

com/images/?MA

搞不懂

而另一个网站的访问日志也有问题,请求的浏览器是Chrome/4.1.249.1045

当然,也可能是其它的,请求的地址和上面的有关系:

“GET /?C=N;O=D HTTP/1.1″

“GET /?C=M;O=A HTTP/1.1″

“GET /?C=S;O=A HTTP/1.1″

“GET /?C=D;O=A HTTP/1.1″

也是这四个鬼东西

别外,见老外的问答:

Hi,
Googlebot/2.1 (IP is 66.249.72.134) try to get such following starnge URL at our site, which it always get 404 error,

get /sub1/tacmpa.h%20…
get /sub2/ke-es%20…

Also this googlebot/2.1 also try to get some picture at starange format like,

get /pictures/MA/?C=S;O=A HTTP/1.1 200 584
get /pictures/PJ/?C=S;O=A HTTP/1.1 200 5706
get /pictures/IQ/?C=N;O=D HTTP/1.1 200 5904

Here the googlebot get 200 status, we cannot understand why,

1) It try to get picture at such strange URL, we never have such links from external or internal.

2) why googlebot/2.1 to get image? Should have another googlebot which spider images, right?

Thanks.

Here the googlebot get 200 status 
 

The first order of business is fixing that so that you serve a 404 Not Found. Otherwise the 200′s may sink you!

You may never know exactly where those URLs are coming from. Googlebot may have a coding error, or may be testing your server to see how you respond to bad URLs (that happens.) Some competitor might have noticed that you are vulnerable and is now posting those bad links somewhere. Or they may be surfing to those bad urls with the Toolbar turned on. Someone may be directly submitting those URLs. Or you may have a dynamic script on your site that is misfiring somehow.

So the urgent need you have is to start responding with a 404. Then, if you want, you can be a detective and find the source.

get /pictures/MA/?C=S;O=A HTTP/1.1 200 584
get /pictures/PJ/?C=S;O=A HTTP/1.1 200 5706
get /pictures/IQ/?C=N;O=D HTTP/1.1 200 5904
You get those if you rearrange directorylisting depending on Name,Last modified,Size or Description

 不是很清楚,不像是漏洞,而更可能是google的一个测试,或bug

现在才知道,这是目录的索引排序而已,如果网站没有index,并且没禁用目录索引的话

  • Share/Bookmark

Tags: , , , , , , ,

全球的whois服务器列表

whois.arin.net (US IP addrs)
whois.apnic.net (Asia Specific IP Addrs)
whois.ripe.net (European IP Addrs)
whois.lacnic.net (Latin America/Carribean IP addrs)
rs.internic.net (*.COM,*.NET,*.ORG,*.EDU)
whois.nic.uk (*.AC)
whois.nic.ad (*.AD)
whois.uaenic.ae (*.AE)
whois.nic.ag (*.AG)
whois.offshore.com.ai (*.AI)
whois.inima.al (*.AL)
whois.una.net (*.AN)
whois.fccn.pt (*.AO)
whois.nsrc.org (*.AQ)
whois.nic.ar (*.AR)
whois.nic.as (*.AS)
whois.amnic.net (*.AM,*.AU,*.AT)
whois.domain.az (*.AZ)
whois.utic.net.ba (*.BA)
whois.domains.org.bb (*.BB)
whois.dns.be (*.BE)
whois.onatel.bf (*.BF)
whois.digsys.bg (*.BG)
whois.batelco.com.bh (*.BH)
whois.nic.bi (*.BI)
whois.nic.biz (*.BIZ)
whois.bermudanic.bm (*.BM)
whois.brunet.bn (*.BN)
whois.digsys.bo (*.BO)
whois.unibel.by (*.BY)
whois.belizenic.bz (*.BZ)
whois.registro.fapesp.br (*.BR)
whois.nic.bt (*.BT)
whois.norid.no (*.BV)
whois.cira.ca (*.CA)
whois.nic.cc (*.CC)
whois.nic.cd (*.CD)
whois.socatel.intnet.cf (*.CF)
whois.nic.cg (*.CG)
whois.nic.ch (*.CH)
whois.aipdi.ci (*.CI)
whois.oyster.net.ck (*.CK)
whois.nic.cl (*.CL)
whois.info.intelcam.cm (*.CM)
whois.cnnic.net.cn (*.CN)
whois.nic.uniandes.edu.co (*.CO)
whois.nic.coop (*.COOP)
whois.nic.cu (*.CU)
whois.nic.cx (*.CX)
whois.nic.cy (*.CY)
whois.nic.cz (*.CZ)
whois.denic.de (*.DE)
whois.dk-hostmaster.dk (*.DK)
whois.intnet.dj (*.DJ)
whois.nic.do (*.DO)
whois.nic.dz (*.DZ)
whois.nic.ec (*.EC)
whois.educause.net (*.EDU)
whois.eenet.ee (*.EE)
whois.frcu.eun.eg (*.EG)
whois.nic.es (*.ES)
whois.telecom.net.et (*.ET)
whois.ripe.net (*.FI)
whois.usp.ac.fj (*.FJ)
whois.fidc.org.fk (*.FK)
whois.dot.fm (*.FM)
whois.nic.fo (*.FO)
whois.nic.fr (*.FR)
whois.nic.uk (*.GB)
whois.nic.net.ge (*.GE)
whois.nplus.gf (*.GF)
whois.nic.gg (*.GG)
whois.ghana.com (*.GH)
whois.gibnet.gi (*.GI)
whois.nic.gl (*.GL)
whois.nic.gm (*.GM)
whois.psg.com (*.GN)
whois.nic.gov (*.GOV)
whois.nic.gp (*.GP)
whois.getesa.gq (*.GQ)
whois.hostmaster.gr (*.GR)
whois.adamsnames.tc (*.GS)
whois.uvg.edu.gt (*.GT)
whois.gadao.gov.gu (*.GU)
whois.hkdnr.net.hk (*.HK)
whois.registry.hm (*.HM)
whois.nic.hn (*.HN)
whois.carnet.hr (*.HR)
whois.nic.hu (*.HU)
whois.idnet.net.id (*.ID)
whois.domainregistry.ie (*.IE)
whois.isoc.org.il (*.IL)
whois.nic.im (*.IM)
whois.domain.ncst.ernet.in (*.IN)
whois.afilias.com (*.INFO)
whois.iana.org (*.INT)
whois.nic.io (*.IO)
whois.nic.ir (*.IR)
whois.isnic.is (*.IS)
whois.nic.it (*.IT)
whois.isles.net (*.JE)
whois.nic.net.jo (*.JO)
whois.nic.ad.jp (*.JP)
whois.nbnet.co.ke (*.KE)
whois.domain.kg (*.KG)
whois.mptc.gov.kh (*.KH)
whois.clu.edu (*.KN)
whois.nic.or.kr (*.KR)
whois.domainname.net.kw (*.KW)
whois.domain.kz (*.KZ)
whois.aub.edu.lb (*.LB)
whois.isisworld.lc (*.LC)
whois.nic.li (*.LI)
whois.nic.lk (*.LK)
whois.psg.com (*.LR)
whois.co.ls (*.LS)
whois.domreg.lt (*.LT)
whois.dns.lu (*.LU)
whois.nic.lv (*.LV)
whois.nic.ly (*.LY)
whois.iam.ma (*.MA)
whois.nic.mc (*.MC)
whois.ripe.net (*.MD)
whois.nic.mil (*.MIL)
whois.orstom.mg (*.MG)
whois.nic.net.mh (*.MH)
whois.mpt.com.mk (*.MK)
whois.nic.mm (*.MM)
whois.nic.mn (*.MN)
whois.umac.mo (*.MO)
whois.marketplace.mp (*.MP)
whois.nic.mq (*.MQ)
whois.univ-mkc.mr (*.MR)
whois.adamsnames.tc (*.MS)
whois.um.edu.mt (*.MT)
whois.posix.co.za (*.MU)
whois.tarsus.net (*.MW)
whois.nic.mx (*.MX)
whois.mynic.net.my (*.MY)
whois.nambu.uem.mz (*.MZ)
na-nic.com.na (*.NA)
whois.nic.name (*.NAME)
whois.norstom.nc (*.NC)
whois.names.nf (*.NF)
whois.nic.ni (*.NI)
whois.domain-registry.nl (*.NL)
whois.norid.no (*.NO)
whois.mos.com.np (*.NP)
whois.nic.nu (*.NU)
whois.domainz.net.nz (*.NZ)
whois.gto.net.om (*.OM)
whois.nic.pa (*.PA)
whois.ekeko.rcp.net.pe (*.PE)
whois.domreg.org.ph (*.PH)
whois.unitech.ac.pg (*.PG)
whois.pknic.net.pk (*.PK)
whois.nask.pl (*.PL)
whois.nic.pm (*.PM)
whois.nic.pn (*.PN)
whois.uprr.pr (*.PR)
whois.nic.ps (*.PS)
whois.fccn.pt (*.PT)
whois.nic.py (*.PY)
whois.qatar.net.qa (*.QA)
whois.nic.fr (*.RE)
whois.rnc.ro (*.RO)
whois.ripn.net (*.RU)
whois.nic.rw (*.RW)
whois.saudinic.net.sa (*.SA)
whois.sbnic.net.sb (*.SB)
whois.sudatel.sd (*.SD)
whois.nic-se.se (*.SE)
whois.nic.net.sg (*.SG)
whois.nic.sh (*.SH)
whois.arnes.si (*.SI)
whois.norid.no (*.SJ)
whois.sk-nic.sk (*.SK)
whois.intelcom.sm (*.SM)
whois.nic.sn (*.SN)
whois.nic.so (*.SO)
whois.st-registry.tecnisys.net (*.ST)
whois.ripn.net (*.SU)
whois.svnet.org.sv (*.SV)
whois.syriatel.net (*.SY)
whois.iafrica.sz (*.SZ)
whois.adamsnames.tc (*.TC)
whois.tit.td (*.TD)
whois.adamsnames.tc (*.TF)
whois.nic.tg (*.TG)
whois.thnic.net (*.TH)
whois.nic.tj (*.TJ)
whois.nic.tm (*.TM)
whois.ati.tn (*.TN)
whois.tonic.to (*.TO)
whois.nic.tp (*.TP)
whois.metu.edu.tr (*.TR)
whois.nic.tt (*.TT)
whois.twnic.net (*.TW)
whois.psg.com (*.TZ)
whois.networksolutions.com (*.TV)
nic.net.ua (*.UA)
whois.nic.ug (*.UG)
whois.nic.uk (*.UK)
whois.ja.net (*.UK)
whois.ripe.net (*.UK)
whois.isi.edu (*.UM)
whois.nic.us (*.US)
whois.rau.edu.uy (*.UY)
whois.freenet.uz (*.UZ)
whois.nic.ve (*.VE)
whois.nic.fr (*.WF)
whois.adamsnames.tc (*.VG)
whois.nic.vi (*.VI)
whois.batin.com.vn (*.VN)
whois.vunic.vu (*.VU)
samoanic.ws (*.WS)
whois.nic.fr (*.YT)
whois.nic.yu (*.YU)
whois.co.za (*.ZA)
whois.zamnet.zm (*.ZM)

 

.br.com       whois.centralnic.com
.cn.com       whois.centralnic.com
.de.com       whois.centralnic.com
.eu.com       whois.centralnic.com
.gb.com       whois.centralnic.com
.gb.net       whois.centralnic.com
.hu.com       whois.centralnic.com
.no.com       whois.centralnic.com
.qc.com       whois.centralnic.com
.ru.com       whois.centralnic.com
.sa.com       whois.centralnic.com
.se.com       whois.centralnic.com
.se.net       whois.centralnic.com
.uk.com       whois.centralnic.com
.uk.net       whois.centralnic.com
.us.com       whois.centralnic.com
.uy.com       whois.centralnic.com
.za.com       whois.centralnic.com
.com.au       whois.ausregistry.net.au
.net.au       whois.ausregistry.net.au
.org.au       whois.ausregistry.net.au
.asn.au       whois.ausregistry.net.au
.id.au        whois.ausregistry.net.au
.ac.uk        whois.ja.net
.gov.uk       whois.ja.net
.museum       whois.museum
.asia         whois.crsnic.net
.info         whois.afilias.net
.name         whois.nic.name
.aero         whois.information.aero
.coop         whois.nic.coop
.com          whois.crsnic.net
.net          whois.crsnic.net
.org          whois.publicinterestregistry.net
.edu          whois.educause.net
.gov          whois.nic.gov
.int          whois.iana.org
.mil          whois.nic.mil
.biz          whois.neulevel.biz
.as           whois.nic.as
.ac           whois.nic.ac
.al           whois.ripe.net
.am           whois.amnic.net
.at           whois.nic.at
.au           whois.aunic.net
.az           whois.ripe.net
.ba           whois.ripe.net
.be           whois.dns.be
.bg           whois.ripe.net
.br           whois.nic.br
.by           whois.ripe.net
.ca           whois.cira.ca
.cc           whois.nic.cc
.cd           whois.nic.cd
.ch           whois.nic.ch
.cl           whois.nic.cl
.cn           whois.cnnic.net.cn
.cx           whois.nic.cx
.cy           whois.ripe.net
.cz           whois.ripe.net
.de           whois.denic.de
.dk           whois.dk-hostmaster.dk
.dz           whois.ripe.net
.ee           whois.eenet.ee
.eg           whois.ripe.net
.es           whois.ripe.net
.eu           whois.eu
.fi           whois.ripe.net
.fo           whois.ripe.net
.fr           whois.nic.fr
.gb           whois.ripe.net
.ge           whois.ripe.net
.gr           whois.ripe.net
.gs           whois.adamsnames.tc
.hk           whois.apnic.net
.hr           whois.ripe.net
.hu           whois.ripe.net
.ie           whois.domainregistry.ie
.il           whois.isoc.org.il
.in           whois.ncst.ernet.in
.ir           whois.nic.ir
.is           whois.ripe.net
.it           whois.nic.it
.jp           whois.jp
.kh           whois.nic.net.kh
.kr           whois.krnic.net
.li           whois.nic.ch
.lt           whois.ripe.net
.lu           whois.dns.lu
.lv           whois.ripe.net
.ma           whois.ripe.net
.md           whois.ripe.net
.mk           whois.ripe.net
.ms           whois.adamsnames.tc
.mt           whois.ripe.net
.mx           whois.nic.mx
.nl           whois.domain-registry.nl
.no           whois.norid.no
.nu           whois.nic.nu
.nz           whois.srs.net.nz
.pl           whois.dns.pl
.pt           whois.ripe.net
.ro           whois.ripe.net
.ru           whois.ripn.ru
.se           whois.nic-se.se
.sg           whois.nic.net.sg
.si           whois.ripe.net
.sh           whois.nic.sh
.sk           whois.ripe.net
.sm           whois.ripe.net
.su           whois.ripn.net
.tc           whois.adamsnames.tc
.tf           whois.adamsnames.tc
.th           whois.thnic.net
.tj           whois.nic.tj
.tn           whois.ripe.net
.to           whois.tonic.to
.tr           whois.ripe.net
.tv           whois.tv
.tw           whois.twnic.net
.ua           whois.ripe.net
.uk           whois.nic.uk
.us           whois.nic.us
.va           whois.ripe.net
.vg           whois.adamsnames.tc
.ws           whois.nic.ws

  • Share/Bookmark

Tags: , , , , , , , , , , , , ,

比较全的域名whois服务器地址

com & .net:whois.verisign-grs.com 43端口
.org:whois.pir.org 43端口
.cn:whois.cnnic.net.cn 43端口

更多后缀请到 whois.iana.org 查询该后缀的 whois 服务器

Com/net            whois.internic.com                                43端口         
Ws                      whois.worldsite.ws                             43端口
对于上面这两种域名,因真正的whois是保存在注册商处的。所以从此地址中查到的结果,还要在结果中搜索Whois Server(com/net域名)或Registrar Whois(WS域名),找到后面的Whois服务器进行第二次查询域名的各个联系人信息

Org                      whois.publicinterestregistry.net          43端口
Cn                       whois.cnnic.net.cn                                43端口
中文通用            gold.cnnic.net.cn                               43端口
Cc                      whois.nic.cc                                           43端口
Biz                       whois.neulevel.biz                               43端口
Us                       whois.nic.us                                         43端口
In                         whois.inregistry.in                              43端口
Eu                       Whois.eu                                             43端口
Uk                       whois.nic.uk                                         43端口
Name                 www.whois.name                                 43端口
Info                      whois.afilias.info                                 43端口
Tw                       whois.twnic.net.tw                              43端口

 

比较全的whois服务器地址““““

com|whois.crsnic.net

org|whois.publicinterestregistry.net

net|whois.crsnic.net

edu|whois.educause.net

mil|whois.nic.mil

gov|whois.nic.gov

uk|whois.nic.uk

af|NONE

al|whois.ripe.net

dz|whois.ripe.net

as|whois.nic.as

ad|whois.ripe.net

ao|NONE

ai|WEB|http://whois.offshore.ai/

aq|NONE

ag|whois.nic.ag

ar|WEB|http://www.nic.ar/consultas/consdom.html

am|WEB|https://www.amnic.net/whois/

aw|NONE

ac|whois.nic.ac

au|whois.ausregistry.com.au

at|whois.nic.at

az|whois.ripe.net

bs|NONE

bh|NONE

bd|NONE

bb|NONE

by|whois.ripe.net

be|whois.dns.be

bz|whois.belizenic.bz

bj|NONE

bm|WEB|http://www.bermudanic.bm/cgi-bin/BermudaNIC/rwhois_query.pl

bt|NONE

bo|NONE

ba|whois.ripe.net

bw|NONE

bv|NONE

br|whois.nic.br

io|WEB|http://www.io.io/whois.html

bn|NONE

bg|whois.ripe.net

bf|NONE

bi|WEB|http://www.nic.cd/database/bi/

kh|NONE

cm|NONE

ca|whois.cira.ca

cv|NONE

ky|NONE

cf|NONE

td|NONE

cl|nic.cl

cn|whois.cnnic.net.cn

cx|whois.nic.cx

cc|whois.nic.cc

co|WEB|http://www.nic.co/

km|NONE

cd|whois.cd

cg|WEB|http://www.nic.cd/database/cg/

ck|whois.ck-nic.org.ck

cr|WEB|http://www.nic.cr/consulta-dns.html

ci|NONE

hr|whois.ripe.net

cu|NONE

cy|whois.ripe.net

cz|whois.nic.cz

dk|whois.dk-hostmaster.dk

dj|NONE

dm|NONE

do|ns.nic.do

tp|NONE

ec|NONE

eg|whois.ripe.net

sv|WEB|http://www.conacyt.gob.sv/dns

gq|NONE

er|NONE

ee|whois.ripe.net

et|NONE

fk|NONE

fo|whois.ripe.net

fj|whois.usp.ac.fj

fi|whois.ripe.net

fr|whois.nic.fr

gf|NONE

pf|NONE

tf|whois.adamsnames.tc

ga|whois.ripe.net

gm|whois.ripe.net

ge|whois.ripe.net

de|whois.denic.de

gh|NONE

gi|WEB|http://whois.gibnet.gi/

gr|whois.ripe.net

gl|whois.ripe.net

gd|NONE

gp|NONE

gu|NONE

gt|WEB|http://www.gt/whois.htm

gg|whois.isles.net

gn|NONE

gw|NONE

gy|NONE

ht|NONE

hm|whois.registry.hm

va|whois.ripe.net

hn|NONE

hk|WEB|http://web.hkdnr.net.hk/hkdnr/index.jsp

hu|whois.nic.hu

is|whois.isnet.is

in|WEB|http://domain.ncst.ernet.in/

id|whois.idnic.net.id

ir|whois.nic.ir

iq|NONE

ie|whois.domainregistry.ie

im|WEB|http://www.nic.im/exist.html

il|whois.isoc.org.il

it|whois.nic.it

jm|NONE

jp|whois.nic.ad.jp

je|whois.isles.net

jo|whois.ripe.net

kz|whois.domain.kz

ke|NONE

ki|NONE

kp|NONE

kr|whois.krnic.net

kw|NONE

kg|whois.domain.kg

la|whois.afilias-grs.info

lv|whois.ripe.net

lb|WEB|http://www.aub.edu.lb/lbdr/search.html

ls|NONE

lr|NONE

ly|NONE

li|whois.nic.li

lt|whois.domreg.lt

lu|whois.dns.lu

mo|NONE

mk|whois.ripe.net

mg|NONE

mw|WEB|http://www.tarsus.net/whois/

my|WEB|http://www.mynic.net.my

mv|NONE

ml|NONE

mt|whois.ripe.net

mh|NONE

mq|NONE

mr|NONE

mu|WEB|http://www.nic.mu/cgi-bin/mu_whois.cgi

yt|NONE

mx|whois.nic.mx

fm|WEB|http://www.nic.fm/register.html

md|whois.ripe.net

mc|whois.ripe.net

mn|WEB|http://www.nic.mn

ms|whois.adamsnames.tc

ma|whois.ripe.net

mz|NONE

mm|whois.nic.mm

na|NONE

nr|NONE

np|NONE

nl|whois.domain-registry.nl

an|NONE

nc|whois.cctld.nc

nz|whois.srs.net.nz

ni|NONE

ne|NONE

ng|pgebrehiwot.iat.cnr.it

nu|whois.nic.nu

nf|NONE

mp|NONE

no|whois.norid.n

  • Share/Bookmark

Tags: , , , , , , , , , ,

浏览器脚本之Navigator对象

Navigator 对象包含有关浏览器的信息。

注释:没有应用于 navigator 对象的公开标准,不过所有浏览器都支持该对象。

IE: Internet Explorer, F: Firefox, O: Opera.

Navigator 对象集合

集合 描述 IE F O
plugins[] 返回对文档中所有嵌入式对象的引用。

该集合是一个 Plugin 对象的数组,其中的元素代表浏览器已经安装的插件。Plug-in 对象提供的是有关插件的信息,其中包括它所支持的 MIME 类型的列表。

虽然 plugins[] 数组是由 IE 4 定义的,但是在 IE 4 中它却总是空的,因为 IE 4 不支持插件和 Plugin 对象。

4 1 9

Navigator 对象属性

属性 描述 IE F O
appCodeName 返回浏览器的代码名。 4 1 9
appMinorVersion 返回浏览器的次级版本。 4 No No
appName 返回浏览器的名称。 4 1 9
appVersion 返回浏览器的平台和版本信息。 4 1 9
browserLanguage 返回当前浏览器的语言。 4 No 9
cookieEnabled 返回指明浏览器中是否启用 cookie 的布尔值。 4 1 9
cpuClass 返回浏览器系统的 CPU 等级。 4 No No
onLine 返回指明系统是否处于脱机模式的布尔值。 4 No No
platform 返回运行浏览器的操作系统平台。 4 1 9
systemLanguage 返回 OS 使用的默认语言。 4 No No
userAgent 返回由客户机发送服务器的 user-agent 头部的值。 4 1 9
userLanguage 返回 OS 的自然语言设置。 4 No 9

Navigator 对象方法

方法 描述 IE F O
javaEnabled() 规定浏览器是否启用 Java。 4 1 9
taintEnabled() 规定浏览器是否启用数据污点 (data tainting)。 4 1 9

Navigator 对象描述

Navigator 对象包含的属性描述了正在使用的浏览器。可以使用这些属性进行平台专用的配置。

虽然这个对象的名称显而易见的是 Netscape 的 Navigator 浏览器,但其他实现了 JavaScript 的浏览器也支持这个对象。

Navigator 对象的实例是唯一的,可以用 Window 对象的 navigator 属性来引用它。

顺便提一个,在Firefox中,即navigator.appName=Netscape时,是支持另一个东西的,即navigator.language

其它的三个language倒是不支持

  • Share/Bookmark

Tags: , , , , , , ,