Posts Tagged rm

ob_start();很好用啊,谢谢DDM指点

Cannot modify header information – headers already sent by (output started at。。。

很讨厌这样的东西

在文件前加个

ob_start();

就能搞定了

这个函数的具体用法,以后再研究了

  • Share/Bookmark

Tags: ,

chinese honker team[H.U.C]..

www.chinesehonker.org

Servers Refused to visit , Please Wait . . . . . .

chinese honker team[H.U.C]..

 …….I’m very sorry for this Testing!……
 …….Because of this morning your Iranian Cyber Army…….
  ……Maybe you haven’t konw this thing!,…………..
 …….This morning your Iranian Cyber Army intrusion our baidu.com………….
 …….So i’m very unfortunate for you ………
  ……Please tell your so-called Iranian Cyber Army….
 …….Don’t intrusion chinese website about The United States authorities to intervene the internal affairs of Iran’s response…
 …… This is a warning! …
…..¨‘©l¨Khack by toutian…from…Honker Union For China

 [-][-][-][-][-][-][-][-][-][-][-][-][-][-][-][-][-][-][-][-]WE Form CHINA [-][-][-][-][-][-][-][-][-][-][-][-][-][-][-][-][-][-][-][-]_

无话可说

  • Share/Bookmark

Tags: , , , , ,

百度挂了

全球最大的中文搜索引擎商,百度,今天挂了,原因不明

相关新闻:

百度遭黑客劫持 手段与12月劫持twitter类似

北京时间1月12日晨7点半左右,国内最大搜索引擎百度遭遇伊朗黑客攻击,打开百度首页,出现了“This site has been hacked by IRNIAN CYBER ARMY”的字样。在页面下部,有一连串波斯语的留言,大意是“作为美国当局的干预伊朗内部事务的回应,这个只是一个警告”。

  但是不久,这张图片随即被去掉,但是百度依然无法访问。输入页面后,出现的是一个含有“YAHOO”标的页面。

  有技术方面的人士表示,百度的域名有可能被劫持。有技术人员发现,百度的域名解析已由YAHOO接管。(Name Server: YNS1.YAHOO.COM Name Server: YNS2.YAHOO.COM)修改时间信息为“Updated Date: 11-jan-2010”。

  有百度内部人士认为,黑客攻击百度的难度非常之大,因为百度拥有世界上最先进的服务器和黑客防御系统,百度在“灾备”方面投入是非常大的,整个系统的抵御攻击性很强,而且有一定的自动恢复能力,被攻击导致集体瘫痪的难度非常之大。

  不过也有业内人士指出,直接盗取或者劫持百度的域名也并非很难,而且百度如此大的请求数量是任何一个黑页服务器也无法抵御的,因此刚开始的时候还能显示黑客页面,最后黑客的服务器也肯定因为不堪重负而瘫痪了,只能是访问失败。

  不过回想起twitter上次域名被转向,百度和这次攻击有着惊人的相似之处(twitter被黑疑为伊朗的“Cyber army”所为)。

  可能因为机房分布设置或者有备份的缘故,在中国国内部分地区,依然能够访问百度页面。

  • Share/Bookmark

Tags: , , ,

Gspay Error code 101解决方法

测试Gspay时,在Gspay支付页面提交个人地址信息并跳转下一步时报错了,错误代码如下:

Internal error: Authorization declined

Error code 101

在网上搜了下,没相关资料,只有一个外贸网站的FAQ里有提到

12 .Common payment error code:
101 customers IP does not match the selected countries  102 The IP of the client’s country is blocked 103 Customer’s IP  of  United States does not match the state 104 card holders who deceived 105 fraudulent card number 106, the language of the client browser is blocked 107 client countries, blocked 108 fraudulent e-mail address 109 deceived IP 110 deceived phone numbers to 111 client browser is blocked 112 transaction limit in excess of the maximum 113 hours IP restrictions 114 Unreasonable customer information

意思是说客户的IP和地址里所填写国家并不匹配,所以被拒绝了,这是信用卡安全机制的一部份

因为我们用的测试帐号一般都乱填的国家,但IP却是中国的,被检测出来

要顺利测试的话,只要在国家里选中国,就OK了

  • Share/Bookmark

Tags: , , , , , , ,

IPS

今天帮朋友装了IPS模块,年费似乎是1W,不限网站数量

前两个月走的是农行通道,界面有点恶心,有中文、广告、农行logo,并且是显示转化成RMB的

网站需添加CNY币种,否则会有Forbidden! Please contact with us.提示

设置时需填商家号和MD5密钥,定单会提前保存

估计老外看到农行的界面会吓跑

  • Share/Bookmark

Tags: ,

域名后缀大全-外贸充电

根据目前的国际互联网域名体系,顶级域名由ICANN来定义和分配,分为国际顶级域名(General Top Level Domain或缩写为gTLD)和国家(地区)顶级域名(Country Code Top Level Domain或缩写为ccTLD)两大类。

国际顶级域名是以”.com”、”.net”、”.org”、”.biz”、”.info”、”.name”、”.mobi”等结尾的域名,均由国外不同公司负责管理。

国家(地区)顶级域名是以ISO3166国家代码为基础确定的顶级域名,如德国使用“.de”的顶级域名,法国使用“.fr”的顶级域名,目前一共有240多个国家(地区)顶级域名,分别由各国(地区)政府指定的机构负责注册和管理。
ccTLD管理国家(地区)列表:
ad : Andorra , 安道尔
ae : United Arab Emirates , 阿联酋
af : Afghanistan , 阿富汗
ag : Antigua and Barbuda , 安提瓜和巴布达
ai : Anguilla , 安格拉
al : Albania , 阿尔巴尼亚
am : Armenia , 亚美尼亚
an : Netherlands Antilles , 荷兰属地
ao : Angola , 安哥拉
aq : Antarctica , 南极洲
ar : Argentina , 阿根廷
as : American Samoa , 东萨摩亚
at : Austria , 奥地利
au : Australia , 澳大利亚
aw : Aruba , 阿鲁巴
az : Azerbaijan , 阿塞拜疆

 

ba : Bosnia Hercegovina , 波黑
bb : Barbados , 巴巴多斯
bd : Bangladesh , 孟加拉国
be : Belgium , 比利时
bf : Burkina Faso , 布基纳法索
bg : Bulgaria , 保加利亚
bh : Bahrain , 巴林
bi : Burundi , 布隆迪
bj : Benin , 贝宁
bm : Bermuda , 百慕大
bn : Brunei Darussalam , 文莱达鲁萨兰国
bo : Bolivia , 玻利维亚
br : Brazil , 巴西
bs : Bahamas , 巴哈马
bt : Bhutan , 不丹
bv : Bouvet Island , 布韦群岛
bw : Botswana, 伯兹瓦纳
by : Belarus, 白俄罗斯
bz : Belize , 伯利兹

 

ca : Canada , 加拿大
cc : Cocos Islands , 科科斯群岛
cf : Central African Republic , 中非共和国
cg : Congo , 刚果
ch : Switzerland , 瑞士
ci : Ivory Coast, 象牙海岸
ck : Cook Islands , 库克群岛
cl : Chile , 智利
cm : Cameroon , 喀麦隆
cn : China , 中国
co : Colombia , 哥伦比亚
cq : Equatorial Guinea , 赤道几内亚
cr : Costa Rica , 哥斯达黎加
cu : Cuba , 古巴
cv : Cape Verde , 佛得角
cx : Christmas Island, 圣诞岛(英)
cy : Cyprus , 塞浦路斯
cz : Czech Republic , 捷克共和国

 

de : Germany , 德国
dj : Djibouti , 吉布提
dk : Denmark , 丹麦
dm : Dominica , 多米尼加联邦
do : Dominican Republic , 多米尼加共和国
dz : Algeria , (阿尔及利亚属)

 

ec : Ecuador , 厄瓜多尔
ee : Estonia , 爱沙尼亚
eg : Egypt , 埃及
eh : Western Sahara , 西萨摩亚
es : Spain , 西班牙
et : Ethiopia , 埃塞俄比亚
ev : El Salvador , 萨尔瓦多

 

fi : Finland , 芬兰
fj : Fiji , 斐济
fk : Falkland Islands , 福克兰群岛
fm : Micronesia , 密克罗尼西亚
fo : Faroe Islands , 法罗群岛
fr : France , 法国

 

ga : Gobon, 加蓬
gb : Great Britain (UK) , 大不列颠联合王国
gd : Grenada , 格林纳达
ge : Georgia , 格鲁吉亚
gf : French Guiana , 法属圭亚那
gh : Ghana , 加纳
gi : Gibraltar , 直布罗陀
gl : Greenland , 格陵兰群岛
gm : Gambia , 冈比亚
gn : Guynea , 几内亚
gp : Guadeloupe, 瓜德罗普岛(法属)
gr : Greece ,希腊
gt : Guatemala , 危地马拉
gu : Guam , 关岛
gw : Guinea-Bissau , 几内亚比绍
gy : Guyana , 圭亚那

 

hk : Hong Kong , 香港
hm : Heard & McDonald Is. , 赫特与麦克唐纳群岛
hn : Honduras , 洪都拉斯
hr : Croatia , 克罗蒂亚
ht : Haiti , 海地
hu : Hungary , 匈牙利

 

id : Indonesia , 印度尼西亚
ie : Ireland , 爱尔兰共和国
il : Israel , 以色列
in : India , 印度
io : British Indian Ocean Territory, 英属印度洋领地
iq : Iraq , 伊拉克
ir : Iran , 伊朗
is : Iceland , 冰岛
it : Italy , 意大利

 

jm : Jamaica , 牙买加
jo : Jordan , 约旦
jp : Japan ,

 

ke : Kenya , 肯尼亚
kg : Kyrgyzstan , 吉尔吉斯斯坦
kh : Cambodia , 柬埔塞
ki : Kiribati , 基里巴斯
km : Comoros , 科摩罗
kn : St. Kitts & Nevis, 圣茨和尼维斯
kp : Korea-North , 北朝鲜
kr : Korea-South , 南朝鲜
kw : Kuwait , 科威特
ky : Cayman Islands, 开曼群岛(英属)
kz : Kazakhstan , 哈萨克斯坦

 

la : Lao People’s Republic , 老挝人民共和国
lb : Lebanon , 黎巴嫩
lc : St. Lucia, 圣露西亚岛
li : Liechtenstein , 列支敦士登
lk : Sri Lanka , 斯里兰卡
lr : Liberia , 利比里亚
ls : Lesotho , 莱索托
lt : Lithuania , 立陶宛
lu : Luxembourg , 卢森堡
lv : Latvia , 拉脱维亚
ly : Libya , 利比亚

 

ma : Morocco , 摩洛哥
mc : Monaco , 摩纳哥
md : Moldova , 摩尔多瓦
mg : Madagascar , 马达加斯加
mh : Marshall Islands , 马绍尔群岛
ml : Mali , 马里
mm : Myanmar, 缅甸
mn : Mongolia , 蒙古
mo : Macau , 澳门
mp : Northern Mariana Islands, 北马里亚纳群岛
mq : Martinique , 马提尼克岛(法属)
mr : Mauritania , 毛里塔尼亚
ms : Montserrat, 蒙塞拉特岛
mt : Malta , 马尔他
mv : Maldives , 马尔代夫
mw : Malawi , 马拉维
mx : Mexico , 墨西哥
my : Malaysia , 马来西亚
mz : Mozambique , 莫桑比克

 

na : Namibia , 纳米比亚
nc : New Caledonia, 新喀里多尼亚
ne : Niger , 尼日尔
nf : Norfolk Island, 诺福克岛
ng : Nigeria , 尼日利亚
ni : Nicaragua , 尼加拉瓜
nl : Netherlands , 荷兰
no : Norway , 挪威
np : Nepal , 尼泊尔
nr : Nauru , 瑙鲁
nt : Neutral Zone , 中立区
nu : Niue, 纽埃
nz : New Zealand

 

om : Oman , 阿曼

 

qa : Qatar , 卡塔尔

 
pa : Panama , 巴拿马
pe : Peru , 秘鲁
pf : French Polynesia , 法属玻利尼西亚
pg : Papua New Guinea , 巴布亚新几内亚
ph : Philippines , 菲律宾
pk : Pakistan , 巴基斯坦
pl : Poland , 波兰
pm : St. Pierre & Mequielon, 圣皮埃尔和密克隆岛
pn : Pitcairn Island, 皮特克恩岛
pr : Puerto Rico , 波多黎各
pt : Portugal , 葡萄牙
pw : Palau , 帕劳
py : Paraguay , 巴拉圭

 
re : Reunion Island, 留尼汪岛(法属)
ro : Romania , 罗马尼亚
ru : Russian Federation , 俄罗斯联邦
rw : Rwanda , 卢旺达

 

sa : Saudi Arabia , 沙特阿拉伯
sb : Solomon Islands , 所罗门群岛
sc : Seychelles , 塞舌尔
sd : Sudan , 苏旦
se : Sweden , 瑞典
sg : Singapore , 新加坡
sh : St. Helena , 海伦娜
si : Slovenia , 斯洛文尼亚
sj : Svalbard & Jan Mayen, 斯马尔巴特和扬马延岛
sk : Slovakia , 斯洛伐克
sl : Sierra Leone , 塞拉利昂
sm : San Marino , 圣马力诺
sn : Senegal , 塞内加尔
so : Somalia , 索马里
sr : Suriname , 苏里南
st : Sao Tome & Principe , 圣多美和普林西比
su : USSR , 苏联
sy : Syrian Arab Republic , 叙利亚
sz : Swaziland , 斯威士兰

 

tc : Turks & Caicos Islands , 特克斯群岛与凯科斯群岛
td : Chad , 乍得
tf : French Southern Territories , 法属南半球领地
tg : Togo , 多哥
th : Thailand , 泰国
tj : Tajikistan , 塔吉克斯坦
tk : tokelau, 托克劳群岛
tm : Turkmenistan , 土库曼斯坦
tn : Tunisia , 突尼斯
to : Tonga , 汤加
tp : East Timor , 东帝汶
tr : Turkey , 土耳其
tt : Trinidad & Tobago , 特立尼达和多巴哥
tv : Tuvalu , 图瓦鲁
tw : Taiwan , 台湾
tz : Tanzania , 坦桑尼亚

 

ua : Ukrainian SSR , 乌克兰
ug : Uganda , 乌干达
uk : United Kingdom , 英国
us : United States , 美国
uy : Uruguay , 乌拉圭

 

va : Vatican City State , 梵地冈
vc : St. Vincent & the Grenadines, 圣文森特和格林纳丁斯
ve : Venezuela , 委内瑞拉
vg : Virgin Islands : 维京群岛
vn : Vietnam , 越南
vu : Vanuatu , 瓦努阿图

 

wf : Wallis & Fortuna Is. , 瓦利斯和富图纳群岛
ws : Samoa , 东萨摩亚

 

ye : Yemen , 也门
yu : Yugoslavia , 南斯拉夫

 

za : South Africa , 南非
zm : Zambia , 赞比亚
zr : Zaire , 扎伊尔
zw : Zimbabwe , 津巴布韦

  • Share/Bookmark

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

zen cart 二次开发进程

一、直接获取网站域名,不用在拷贝网站时更改configure.php文件的HTTP_SERVER等信息

二、直接获取根目录地址,不用在拷贝网站时更改configure.php文件的DIR_FS_CATALOG等信息

三、在configure.php文件中直接定义两个常量,一个是log文件地址,一个是session目录,不用在拷贝网站时更改数据库configuration表信息

四、数据库配置文件分离出来,方便拷站时只操作一个文件

五、新增了指定IP或IP段需要密码才能访问的功能

六、网站title及tagline可在后台更改

七、网站heading title及Shopping Cart Text Information可在后台更改

八、网站首页meta关键字及描述和自定义关键词可在后台更改

九、去掉了zen cart版权文字,并可以后台自定义一段html代码,方便加锚文本链接

十、header alt text和header sales text可在后台更改

十一、网站伪造在线人数可在后台更改

一切皆为方便!

  • Share/Bookmark

Tags: , , , , , , ,

Apache mod_rewrite模块中RewriteCond和RewriteRule的指令格式

RewriteCond指令格式
语法: RewriteCond TestString CondPattern
1) TestString是一个纯文本的字符串,但是可以包含可扩展的成分
2) CondPattern是条件pattern, 即一个应用于当前实例TestString的正则表达式, 即TestString将会被计算然后与CondPattern匹配.
3) 另外,还可以为CondPattern追加特殊的标记[flags] 作为RewriteCond指令的第三个参数。Flags是一个以逗号分隔的以下标记的列表:
‘nocase|NC’  它使测试忽略大小写, 即TestString和CondPattern无大小写检查
‘ornext|OR’  它以OR方式组合若干规则的条件,而不是隐含的AND。

RewriteRule 指令
语法: RewriteRule Pattern Substitution
1) Pattern是一个作用于当前URL的兼容perl的正则表达式. 这里的“当前”是指该规则生效时的URL的值。
2) Substitution是,当原始URL与Pattern相匹配时,用以替代(或替换)的字符串。
3) 此外,Substitution还可以追加特殊标记[flags]  作为RewriteRule指令的第三个参数。 Flags是一个包含以逗号分隔的下列标记的列表:
‘redirect|R [=code]‘ (强制重定向 redirect)
以http://thishost[:thisport]/(使新的URL成为一个URI) 为前缀的Substitution可以强制性执行一个外部重定向。 如果code没有指定,则产生一个HTTP响应代码302(临时性移动)。 如果需要使用在300-400范围内的其他响应代码,只需在此指定这个数值即可, 另外,还可以使用下列符号名称之一: temp (默认的), permanent, seeother. 用它可以把规范化的URL反馈给客户端,如, 重写“/~”为 “/u/”,或对/u/user加上斜杠,等等。

注意: 在使用这个标记时,必须确保该替换字段是一个有效的URL! 否则,它会指向一个无效的位置! 并且要记住,此标记本身只是对URL加上 http://thishost[:thisport]/的前缀,重写操作仍然会继续。 通常,你会希望停止重写操作而立即重定向,则还需要使用’L'标记.

‘forbidden|F’ (强制URL为被禁止的 forbidden)
强制当前URL为被禁止的,即,立即反馈一个HTTP响应代码403(被禁止的)。 使用这个标记,可以链接若干RewriteConds以有条件地阻塞某些URL。
‘gone|G’ (强制URL为已废弃的 gone)
强制当前URL为已废弃的,即,立即反馈一个HTTP响应代码410(已废弃的)。 使用这个标记,可以标明页面已经被废弃而不存在了.
‘proxy|P’ (强制为代理 proxy)
此标记使替换成分被内部地强制为代理请求,并立即(即, 重写规则处理立即中断)把处理移交给代理模块。 你必须确保此替换串是一个有效的(比如常见的以 http://hostname开头的)能够为Apache代理模块所处理的URI。 使用这个标记,可以把某些远程成分映射到本地服务器名称空间, 从而增强了ProxyPass指令的功能。
注意: 要使用这个功能,代理模块必须编译在Apache服务器中。 如果你不能确定,可以检查“httpd -l”的输出中是否有mod_proxy.c。 如果有,则mod_rewrite可以使用这个功能; 如果没有,则必须启用mod_proxy并重新编译“httpd”程序。

‘last|L’ (最后一个规则 last)
立即停止重写操作,并不再应用其他重写规则。 它对应于Perl中的last命令或C语言中的break命令。 这个标记可以阻止当前已被重写的URL为其后继的规则所重写。 举例,使用它可以重写根路径的URL(’/')为实际存在的URL, 比如, ‘/e/www/’.
‘next|N’ (重新执行 next round)
重新执行重写操作(从第一个规则重新开始). 这时再次进行处理的URL已经不是原始的URL了,而是经最后一个重写规则处理的URL。 它对应于Perl中的next命令或C语言中的continue命令。 此标记可以重新开始重写操作,即, 立即回到循环的头部。
但是要小心,不要制造死循环!
‘chain|C’ (与下一个规则相链接 chained)
此标记使当前规则与下一个(其本身又可以与其后继规则相链接的, 并可以如此反复的)规则相链接。 它产生这样一个效果: 如果一个规则被匹配,通常会继续处理其后继规则, 即,这个标记不起作用;如果规则不能被匹配, 则其后继的链接的规则会被忽略。比如,在执行一个外部重定向时, 对一个目录级规则集,你可能需要删除“.www” (此处不应该出现“.www”的)。
‘type|T=MIME-type’ (强制MIME类型 type)
强制目标文件的MIME类型为MIME-type。 比如,它可以用于模拟mod_alias中的ScriptAlias指令, 以内部地强制被映射目录中的所有文件的MIME类型为“application/x-httpd-cgi”.
‘nosubreq|NS’ (仅用于不对内部子请求进行处理 no internal sub-request)
在当前请求是一个内部子请求时,此标记强制重写引擎跳过该重写规则。 比如,在mod_include试图搜索可能的目录默认文件(index.xxx)时, Apache会内部地产生子请求。对子请求,它不一定有用的,而且如果整个规则集都起作用, 它甚至可能会引发错误。所以,可以用这个标记来排除某些规则。

根据你的需要遵循以下原则: 如果你使用了有CGI脚本的URL前缀,以强制它们由CGI脚本处理, 而对子请求处理的出错率(或者开销)很高,在这种情况下,可以使用这个标记。

‘nocase|NC’ (忽略大小写 no case)
它使Pattern忽略大小写,即, 在Pattern与当前URL匹配时,’A-Z’ 和’a-z’没有区别。
‘qsappend|QSA’ (追加请求串 query string append)
此标记强制重写引擎在已有的替换串中追加一个请求串,而不是简单的替换。 如果需要通过重写规则在请求串中增加信息,就可以使用这个标记。
‘noescape|NE’ (在输出中不对URI作转义 no URI escaping)
此标记阻止mod_rewrite对重写结果应用常规的URI转义规则。 一般情况下,特殊字符(如’%', ‘$’, ‘;’等)会被转义为等值的十六进制编码。 此标记可以阻止这样的转义,以允许百分号等符号出现在输出中,如:
RewriteRule /foo/(.*) /bar?arg=P1\%3d$1 [R,NE]

可以使’/foo/zed’转向到一个安全的请求’/bar?arg=P1=zed’.
‘passthrough|PT’ (移交给下一个处理器 pass through)
此标记强制重写引擎将内部结构request_rec中的uri字段设置为 filename字段的值,它只是一个小修改,使之能对来自其他URI到文件名翻译器的 Alias,ScriptAlias, Redirect 等指令的输出进行后续处理。举一个能说明其含义的例子: 如果要通过mod_rewrite的重写引擎重写/abc为/def, 然后通过mod_alias使/def转变为/ghi,可以这样:
RewriteRule ^/abc(.*) /def$1 [PT]
Alias /def /ghi

如果省略了PT标记,虽然mod_rewrite运作正常, 即, 作为一个使用API的URI到文件名翻译器, 它可以重写uri=/abc/…为filename=/def/…, 但是,后续的mod_alias在试图作URI到文件名的翻译时,则会失效。
注意: 如果需要混合使用不同的包含URI到文件名翻译器的模块时, 就必须使用这个标记。。 混合使用mod_alias和mod_rewrite就是个典型的例子。

For Apache hackers
如果当前Apache API除了URI到文件名hook之外,还有一个文件名到文件名的hook, 就不需要这个标记了! 但是,如果没有这样一个hook,则此标记是唯一的解决方案。 Apache Group讨论过这个问题,并在Apache 2.0 版本中会增加这样一个hook。
’skip|S=num’ (跳过后继的规则 skip)
此标记强制重写引擎跳过当前匹配规则后继的num个规则。 它可以实现一个伪if-then-else的构造: 最后一个规则是then从句,而被跳过的skip=N个规则是else从句. (它和’chain|C’标记是不同的!)
‘env|E=VAR:VAL’ (设置环境变量 environment variable)
此标记使环境变量VAR的值为VAL, VAL可以包含可扩展的反向引用的正则表达式$N和%N。 此标记可以多次使用以设置多个变量。 这些变量可以在其后许多情况下被间接引用,但通常是在XSSI (via <!–#echo var=”VAR”–>) or CGI (如 $ENV{’VAR’})中, 也可以在后继的RewriteCond指令的pattern中通过%{ENV:VAR}作引用。 使用它可以从URL中剥离并记住一些信息。
‘cookie|CO=NAME:VAL:domain[:lifetime[:path]]’ (设置cookie)
它在客户端浏览器上设置一个cookie。 cookie的名称是NAME,其值是VAL。 domain字段是该cookie的域,比如’.apache.org’, 可选的lifetime是cookie生命期的分钟数, 可选的path是cookie的路径。

 其实apache手册中有 http://man.chinaunix.net/newsoft/ApacheManual/mod/mod_rewrite.html

  • Share/Bookmark

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

雅虎和谷歌都宣布robots.txt文件支持通配符

以下是雅虎Search Blog发表的官方声明和robots.txt通配符解决方案:
Yahoo! Search Crawler (Yahoo! Slurp) – Supporting wildcards in robots.txt

I was going through my notes from Danny Sullivan’s Open Feedback sessions that occur during the ?Meet the Crawlers? panel at Search Engine Strategies. One of the items on my list was a request for enhanced syntax in robots.txt to make it easier for webmasters to manage how search crawlers, including Slurp, access your content.

For those who may not be as familiar with search index terminology, webmasters use the robots.txt file to direct robots that visit their site, including search engine crawlers, which files should be crawled and which shouldn’t be. You can read about our support for robots directives in the help for Yahoo! Slurp.

Well, we can scratch that one off the list, since we have just updated Yahoo! Slurp to recognize two additional symbols in the robots.txt directives ? ‘*’ and ‘$’. The semantics of these is what is as widely understood for robots.txt files.

‘*’ – matches a sequence of characters

You can now use ‘*’ in robots directives for Yahoo! Slurp to wildcard match a sequence of characters in your URL. You can use this symbol in any part of the URL string you provide in the robots directive. For example,

User-Agent: Yahoo! Slurp
Allow: /public*/  #允许所有以public开头的目录被索引
Disallow: /*_print*.html
Disallow: /*?sessionid #这句的意思是拒绝一切包含sessionid参数的页面被搜索引擎索引。

The robots directives above will:

allow all directories that begin with ‘public’, such as ‘/public_html/’ or ‘/public_graphs/’ to be crawled
disallow any files or directories which contain ‘_print’, such as ‘/card_print.html’ or ‘/store_print/product.html’ to be crawled
disallow any files with ‘?sessionid’ in their URL string, such as ‘/cart.php?sessionid=342bca31? to be crawled
Note that a trailing ‘*’ is redundant since that is existing matching behavior for Slurp. So, the following two directives are equivalent:

User-Agent: Yahoo! Slurp
Disallow: /private*
Disallow: /private

‘$’ ? anchors at the end of the URL string

You can now also use ‘$’ in robots directives for Slurp to anchor the match to the end of the URL string. Without this symbol, Yahoo! Slurp would match all URLs against the directives, treating the directives as a prefix. For example:

User-Agent: Yahoo! Slurp
Disallow: /*.gif$
Allow: /*?$

The robots directives above will

Disallow all files ending in ‘.gif’ in your entire site. Note that without the ‘$’, this would disallow all files containing ‘.gif’ in their file path
Allow all files ending in ‘?’ to be included. This would not automatically allow files that just contain ‘?’ somewhere in the URL string
As you can see, this symbol only makes sense at the end of the string. Hence, when we see it, we assume that your directive terminates there and any characters after that symbol are ignored.

Oh, by the way, if you thought we didn’t support the ‘Allow’ tag, as you can see from these examples, we do.

If you have any questions about the new syntax or any particular cases you are concerned about, please write in at the Site Explorer forums or read up our area.

Next time you see me at SES, you should ask me what else is on my list!

Priyank Garg
Product Manager, Yahoo! Search

可以用google管理员工具测试,一般第一次提交很快就会抓取robots.txt,然后更新就慢了点

  • Share/Bookmark

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

Godaddy域名续费通知

Dear xuexing zhuang,

RENEWAL NOTICE! CRAZYLEMON.NET has not been renewed as of October 22, 2009 and will expire on 01/21/2010.  Renew now and SAVE!**

另一封:

The following domain name(s) are set to automatically renew on the expiration date(s) listed:

 

IMPORTANT: If the credit card we have on file for you has expired or been closed, we will not be able to automatically renew your domain(s). To review and update your credit card information, log in to your account at GoDaddy.com by entering your customer number or user name and password and then clicking “My Account.” When you have accessed the account management area, click the “My Account” button on the left hand side of the screen. Then click the “Credit Cards and Payment Info” link.

提前三个月通知,真够意思的,博客开通九个月了,PR上了3,IP一天有150+,关键字也还好,我不是为SEO而SEO,我只是兴趣,大部份来源是腾讯通RTX破解,寒。。。

该续费了

CRAZYLEMON.NET - Jan. 21, 2010
  • Share/Bookmark

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