DreamHost是美国一家价廉物美的托管商,国内很多站长在DreamHost上架WordPress。
有时候希望使用WordPress的开发版本,每天需要从WordPress的SVN服务器上update最新的版本。
其实,DreamHost有Shell,也有cron计划脚本功能,每天午夜的时候都会执行,当然你也可以设成每周或者每月,这里是更新WordPress,还是需要每天做的。

我的WordPress在/mnt/local/home/nocoo/WebSite/nocoo.us目录下,脚本如下:
[code=’css’]
svn cleanup /mnt/local/home/nocoo/WebSite/nocoo.us
svn co http://svn.automattic.com/wordpress/trunk/ /mnt/local/home/nocoo/WebSite/nocoo.us
[/code]

第一行也许不必,但实际使用中最好加上,因为是cron执行svn,有时候执行完可能会lock掉,下次就更新失败了。
假设把这个文件放在/mnt/local/home/nocoo/WebSite下,然后在DreamHost Panel里面的Goodies->Cron Jobs里注册一个新的cron job就好了。

就像这样(点击看大分辨率):

[singlepic=14475,500,,center]

服务器在DreamHost,写了个cron脚本让DreamHost主机每天晚上12点(PDT时间)自动从WordPress的SVN更新升级每日版本。
今天升级后,WordPress版本号从2.6 bleeding2升级到了2.6 beta1。
据说2.6是一个令人兴奋的版本,其实感觉还好啦。过程当中有几天的测试版本,自带的图片上传有几天是坏的,曾经让我小小郁闷了一下。
Anyway,WordPress还是很有前途滴。

近期本人的一系列网站入驻DreamHost,有些规矩还是要遵守的。因为DreamHost机房位于Virginia, United States,因此受美国法律限制。这里翻译一下DreamHost的Abuse Center,学习下规矩。

[singlepic=14254]

Spam and UBE

[singlepic=14267,,right]

垃圾邮件(通常被定义为’不请自来的批量电子邮件’ ,而且还包含Usenet的垃圾邮件和博客评论/ Trackback跟踪垃圾邮件)是一个巨大的问题,作为在互联网其中一个最大的虚拟主机服务提供商,DreamHost确保我们的服务是没有用在这样的方面。

为什么垃圾邮件是不好的?
有好几个原因,但是最重要的原因是:垃圾邮件是最根本的资源偷窃。不论谁最终收到了垃圾邮件,都必须以磁盘空间、CPU时间和内存消耗的形式为之付出代价。而发送者则不需要付出如此之多的代价(可能根本没有代价),相反地,代价转嫁给了接受邮件服务器的拥有者,最终导致了对最终用户收取的高价格。因为邮件不是接受者需要的,垃圾邮件发送者迫使人们为他们不想要的广告买单。
你可以把垃圾邮件看作是生活中的一捆邮件,只不过是接收人要去付邮费,即便接收人并不想要这些邮件。

DreamHost’s anti-spam policies
你可以在这里查看我们关于垃圾邮件的规定:
http://www.dreamhost.com/spam.html
所有的用户都必须在注册DreamHost时阅读并同意遵守这些规定,并作为允许托管的条件。
这些规定包含了所有批量发送的电子邮件,无论是从我们的服务器发出的还是使用了第三方服务器或服务,而使用了我们托管的域名和网站做地址的。我们的规定还限制了新闻组发表文章、博客评论/trackback、论坛发帖等,使用了我们托管的域名或网站。

最重要的要求
当你准备发送批量邮件的时候,有三件事情必须熟记在心。这些事情是非常重要的,我们有必要使用粗体和大字体显示它们:

  1. 接受者必须特别要求自己的地址出现在你的发送列表中(“opt-in”)。
  2. 接受者必须确认自己要加入你的发送列表的意图(“opt-in confirmation”)。
  3. 你必须能提供证明opt-in确认的过程确实发生过(提供日期/时间/IP记录的确认信息)。

换句话说,在你的订阅中,你必须遵守我们的反垃圾邮件规定的条款1和条款2。在我们所执行的垃圾邮件相关的停权操作中,有95%都是因为没有做到这两点而导致的。在这几项条款上我们不能宽大处理(出于善意!),所以一定要确认你真正理解了这几项条款。

处理方式
DreamHost保留在任何时候,有警告或者无警告地封闭发现的侵犯版权法的帐户的权利。DMCA通告被认为是典型的侵犯证据,同样也是停权的理由。

名词解释

Term: Opt-In
An “opt-in” occurs when people ask to be placed on your list. Typically this is through a form on your web site, but an opt-in could also be someone signing up for periodic mailings at a trade show, concert or other real-world event.

Term: Opt-In Confirmation
“Opt-in confirmation” is a process wherein a person who has opted-in confirms that they want to be on that list before receiving bulk email associated with that list. This ensures that, for example, someone can’t sign someone else up for a list without their knowledge or consent. Only the person who has access to the email address being subscribed to the list can confirm the opt-in. This is sometimes called “closed-loop confirmation” or (erroneously) “double opt-in”.

Opt-in confirmation as required by DreamHost works like this: Upon an email address being subscribed to a list, a single email is sent to the subscriber’s email address with a unique tagged link that they must follow prior to being added to the list or receiving any bulk email from it. Those who do not follow that link receive no further email. Those who do follow the link are added to the list and their IP address (along with the date and time) is logged. Access to that logging information must be provided in full to DreamHost for independent review upon request.

侵犯版权

[singlepic=14263,,right]

我们不允许我们的用户是用我们的服务从事或者在知情的情况下促使传播或获取被版权保护的东西。除非你获取了版权所有者的明确许可,表示你可以这样做,或者你自己就是版权所有者。下列任意一条都是不允许的:

  1. 下载或传播商业DVD、电视节目等等。
  2. 存储非法获取的DVD、电视节目的“备份”。
  3. 传播属于别人的图片、照片、录像。
  4. 传播歌曲或者音乐文件。

请注意,我们同样禁止可能破坏版权的行为。这意味着链接到私有文件(即便是不位于DreamHost服务器上的)、运行版权保护文件的BitTorrent trackers,开办破解软件的论坛等等行为都是不被允许的。
明显地,这些因素都是主观的,并且很容易在无意中违反。基于这样的原因,我们会对于侵犯权的行为采取一种合理的方法。例如,在站点中包含了一个或者两个YouTube录像,与网站的主要目的就是索引和链接向商业好莱坞电影链接的行为是完全不同的。

名词解释

Term: Distribution
For the purposes of our policies, ‘distribution’ entails either distributing material directly from your account (ie. sharing files from your web space or via FTP) or embedding material located on non-DreamHost servers so that it displays within your server. It also includes willfully facilitating copyright infringement by linking to known infringing works, as described above.

Term: Acquisition
For the purposes of our policies, ‘acquisition’ entails using your DreamHost account to illegally obtain copyrighted material. This usually involves the use of BitTorrent, the ‘wget’ tool, FTP, etc.

Term: Storage
For the purposes of our policies, ‘storage’ involves the storage of copyrighted material that was obtained unlawfully. So, if you use BitTorrent or some other tool from your own computer to illegally obtain a DVD rip and then store a copy under your DreamHost account (even if it’s not being re-distributed), such activity would be prohibited.

侵犯商标

[singlepic=14268,,right]

我们不允许我们的客户从事侵犯商标的行为。这并不是说你不能用任何商标,而是说你不能以可能导致商业混乱的方式使用商标。记名使用商标,例如批评或分析,都是被美国宪法第一修正案所保护的。

处理方式
商标法是很复杂的,比版权法更加复杂。DreamHost无从推断你的意图是否考虑了合法性。我们基于我们的法律顾问、一一处理每一个申诉,并且保留封闭那些我们认为故意侵犯商标法的站点或帐户的权利。对于那些显然的故意侵犯行为,例如网络钓鱼行为,会导致立即停权。
如果你想用一个商标,并且觉得不会侵犯商标所有者的权益,我们强烈建议您首先咨询有资格的顾问,然后再做。

黑客、侵入和拒绝服务式攻击

[singlepic=14264,,right]

我们不允许一些非法入侵计算机的行为,典型的如下:

  • 侵入:任何人,试图通过利用第三方系统或服务安全漏洞,或者获取敏感的信息(包含密码)的欺骗行为,都将被永久封停帐户,不会退款。
  • 拒绝服务式攻击:类似地,任何人,使用任何方式,破坏或使第三方系统或软件超负载(拒绝服务式攻击),都将被永久封停帐户,不会退款。
  • 木马工具:不仅仅是上面的,存储或提供侵入或拒绝服务式攻击的工具也是不被允许的,将被永久封停帐户,不会退款。

处理方式
DreamHost保留在任何时候,有警告或者无警告地封闭出现以上行为的帐户的权利。根据具体情况,DreamHost也可能会联系相关部门和公司,并全力配合调查。

欺诈行为

[singlepic=14265,,right]

DreamHost遇到过很多种欺诈种类,下面是常见的几种:

Type: Fraudulent sign-ups
This occurs when someone uses false information and (usually) a stolen a credit card in order to sign up for a DreamHost account. While we do have a number of protections in place to prevent this from occurring, occasionally some will slip through. We usually catch these down the road – they often engage in other types of fraud once they are on our servers – though sometimes we don’t find out until the true owner of the purloined credit card used to sign up contacts us.

Type: Phishing
This occurs when a customer creates a fake web site (usually a bank, an eBay/Paypal login screen, etc) in an attempt to fool people into entering their sensitive information into a web-based form. Such information may include a login and password, a credit card number, etc. These are then collected by the criminal for their own use. Victims are typically directed to the site via spam email designed to appear to be coming from a bank, eBay, etc.

Some of these phishing sites and emails are quite convincing in appearance. For that reason, it is advised that you never follow a link contained within an email purporting to be a bank or transactional site such as eBay – no matter how convincing it looks. Such institutions, if you ask, will give you the same advice. Go to the site directly by typing their true URL into your web browser.

Type: Pump-and-dump schemes
This is a form of fraud where criminals send large volumes of spam in order to hype a stock (typically a penny stock), usually citing some sort of “breakthrough!” or upcoming product announcement. Recipients of the email are encouraged to buy the stock and achieve a windfall. The true purpose of the scam is to artifically inflate the value of the stock after the criminal has purchased at a lower price so that they may sell it at a profit. In the end, those who bought the stock at the direction of the criminal hold an over-valued stock which drops in value shortly thereafter.

Type: Advance fee (419) scams
The 419 scam was named after the Nigerian criminal code this type of fraud violates (Nigeria is where the scam originated and is often practiced).

The scam works like this: The victim receives an email from someone (often a prominent person from an African country) asking them to help move some large sum of money out of the country. In exchange for their help, the victim is promised some percentage of the money transferred. At some point the victim is asked to send the criminal some amount of money to facilitate the transaction, after which the criminal is never heard from again. Variations on this include references to the victim receiving a large inheritance, winning a lottory (with a significant “administrative fee”), etc.

There are many types of advance fee scams. Below are a few of the more common varieties.

Type: Escrow/Shipping scams
Escrow and shipping scams are actually a common variation of the advance fee 419 scam mentioned above.

In these scams, the criminal posts for sale a high value item (ie. a motorcycle, laptop or TV) for an unusually low price, often though eBay. When potential buyers put in a bid, they are asked to instead pay via an escrow service of the seller’s choosing in order to lower the cost of the transaction (cheating eBay out of their cut in the process, with the victim’s greed taking precedence).

Of course, this escrow service does not actually exist, but is rather a fake web site created by the criminal. The buyer is directed to wire their payment to the false escrow service, after which neither the escrow service or the seller are never heard from again. A variation of this works the same way, except that the criminal creates a fake shipping company web site instead.

Type: False storefront scams
These are another common variation of the advance fee 419 scam, wherein the criminal create a fake storefront with incredibly under-priced goods for sale. The buyer is instructed to send their payment, often via wire, to the criminal. Once the payment is sent, the seller is never heard from again and the site taken down.

Type: Employment scams
One last common type of advance fee 419 scam is the employment scam, which works like this: The victim is sent an email from a company or employment service expressing interest in employing them. If the victim expresses any interest, the criminal asks them to wire an administrative fee of some kind. Once the funds are sent, the so-called employer is never heard from again.

处理方式
DreamHost保留在任何时候,有警告或者无警告地封闭从事欺诈行为的帐户的权利。

诽谤和中伤

[singlepic=14266,,right]

诽谤(一种形式的中伤)是一种书面形式的言论,是一种虚假的观点,可能会对个人、公司、集团或实体造成伤害。
请注意,作为在线服务提供商,DreamHost并不根据客户的网站判定客户的状态。我们并不能控制和编辑他们网站的内容。我们确实托管着一些可能令人不快的网站(甚至是让我们觉得不快!),但是我们想明确声明的是,我们托管这些网站,并不表明我们赞同这些观点或者与这些内容的产生有任何瓜葛。

儿童色情

[singlepic=14262,,right]

DreamHost不容忍使用我们的服务进行儿童色情(包括分发、获取或存储儿童色情)。罪犯将立即举报给相关法律部门,并且会被判处相当长时间的监禁。

David Yin是SEO 网站优化推广的站长。SEO 网站优化推广是一个介绍如何做好网站优化的Blog。我订阅他的blog也有很长一段时间了,虽然真正访问页面的次数很少,从来都是Google Reader方式看他网站的全文输出。

前几日David Yin放DreamHost优惠码,我试试运气正好赶上最后一个~

David Yin最近在搞一个小游戏,支持一下~
如果你能够完成评论本blog的任务,David Yin会提供链接到你的Blog。

好几天没更新了,最近做了几件事情。一、疯狂地打了两天球;二、出于经济原因,暂时抛弃我的买服务器计划,在David Yin帮助下买了5年DreamHost空间先用着。

现在的生活有点类似于拆东墙补西墙,用一个梦想的无限放大去填补一个更大的梦想?很好很文艺,我自己都不知道是什么意思。我的梦想:和她一起好好过日子;照顾好父母;抚养我们的孩子;和她一起好好看看这个世界,去很多很多地方;在我家里用一间屋子做一个属于自己的机房;趁我还能动的时候,好好打球。以上这些是有顺序的。

给大家看点夸张的事情。今天早上是连续的第二天打球,只有我和小城两个人去了,一直单挑,天气有点闷,于是就发生了这样的事情:

看到地上一片片湿的地方么?我们虽然带了水去,但是绝对一滴也没撒到地上。这些都是身上滴下来的汗。