<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>尘封的记忆</title>
		<link>http://blog.xreacn.com/</link>
		<description></description>
		<copyright>Copyright (C) 2004 Security Angel Team [S4T] All Rights Reserved.</copyright>
		<generator>SaBlog-X Version 1.6 Build 20071004</generator>
		<lastBuildDate>Fri, 16 Oct 2026 15:04:30 +0000</lastBuildDate>
		<ttl>30</ttl>
		<item>
			<guid>http://blog.xreacn.com/?action=show&amp;id=2027</guid>
			<title>小型mini服务器</title>
			<author>admin</author>
			<description><![CDATA[<p>&nbsp;EasyWebServer网站服务器 1.9</p>
<p><a href="http://www.onlinedown.net/soft/47720.htm">http://www.onlinedown.net/soft/47720.htm</a></p>]]></description>
			<link>http://blog.xreacn.com/?action=show&amp;id=2027</link>
			<category domain="http://blog.xreacn.com/?cid=16">站点建设</category>
			<pubDate>2019-05-16 10:00</pubDate>
		</item>
		<item>
			<guid>http://blog.xreacn.com/?action=show&amp;id=2011</guid>
			<title>xrea遮蔽广告的办法</title>
			<author>admin</author>
			<description><![CDATA[<p>&nbsp;host文件里面添加 cache1.value-domain.com 指向到本地就可以了</p>
<p>或者去除<span style="color: rgb(136, 18, 128); font-family: monospace; font-size: medium; white-space: pre-wrap;">/head&gt;标签</span></p>]]></description>
			<link>http://blog.xreacn.com/?action=show&amp;id=2011</link>
			<category domain="http://blog.xreacn.com/?cid=16">站点建设</category>
			<pubDate>2018-10-05 07:44</pubDate>
		</item>
		<item>
			<guid>http://blog.xreacn.com/?action=show&amp;id=1997</guid>
			<title>Typecho 搭建博客主题常用代码修改集合</title>
			<author>admin</author>
			<description><![CDATA[<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;"><strong style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">1、Typecho 建站文章摘要显示</strong></p>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">熟悉WordPress的用户都应该知道&lt;!--more--&gt;标签，在撰写文章时，Typecho也一样，你可以在文章的正文中插入&lt;!--more--&gt; 标签来创建文章摘要。</p>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;"><strong style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">2、Typecho 建站首页实现阅读全文</strong></p>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">Typecho自动显示摘要，200为自动摘要的字数。</p>
<div class="dp-highlighter" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 10px auto; padding: 5px; border: 1px dashed rgb(204, 204, 204); background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; width: 689.266px; word-break: break-all; overflow: auto; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">
<ol class="dp-c" start="1" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-right: 0px; margin-bottom: 1px; margin-left: -15px; padding: 2px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; color: rgb(102, 102, 102);">
    <li class="alt" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">&lt;p&gt;&lt;?php&nbsp;<span class="vars" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">$this</span>-&gt;excerpt(200);&nbsp;?&gt;&lt;/p&gt;</li>
    <li style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">&lt;p&nbsp;<span class="keyword" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">class</span>=<span class="string" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">&quot;more&quot;</span>&gt;&lt;a&nbsp;href=<span class="string" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">&quot;&lt;?php&nbsp;$this-&gt;permalink()&nbsp;?&gt;&quot;</span>&nbsp;rel=<span class="string" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">&quot;bookmark&quot;</span>&nbsp;title=<span class="string" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">&quot;&lt;?php&nbsp;$this-&gt;title()&nbsp;?&gt;&quot;</span>&gt;阅读全文&lt;/a&gt;&lt;/p&gt;</li>
</ol>
</div>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">&nbsp;</p>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;"><strong style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">3、Typecho 自定义数量标签列表</strong></p>
<div class="dp-highlighter" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 10px auto; padding: 5px; border: 1px dashed rgb(204, 204, 204); background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; width: 689.266px; word-break: break-all; overflow: auto; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">
<ol class="dp-c" start="1" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-right: 0px; margin-bottom: 1px; margin-left: -15px; padding: 2px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; color: rgb(102, 102, 102);">
    <li class="alt" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">&lt;?php&nbsp;<span class="vars" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">$this</span>-&gt;widget('Widget_Metas_Tag_Cloud',&nbsp;<span class="keyword" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">array</span>('sort'&nbsp;=&gt;&nbsp;'<span class="func" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px; color: black;">count</span>',&nbsp;'ignoreZeroCount'&nbsp;=&gt;&nbsp;true,&nbsp;'desc'&nbsp;=&gt;&nbsp;true,&nbsp;'limit'&nbsp;=&gt;&nbsp;20))-&gt;to(<span class="vars" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">$tags</span>);&nbsp;?&gt;</li>
    <li style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">&lt;?php&nbsp;<span class="keyword" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">while</span>(<span class="vars" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">$tags</span>-&gt;next()):&nbsp;?&gt;</li>
    <li class="alt" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;</li>
    <li style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a&nbsp;rel=<span class="string" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">&quot;tag&quot;</span>&nbsp;href=<span class="string" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">&quot;&lt;?php&nbsp;$tags-&gt;permalink();&nbsp;?&gt;&quot;</span>&nbsp;&gt;&lt;?php&nbsp;<span class="vars" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">$tags</span>-&gt;name();&nbsp;?&gt;&lt;/a&gt;</li>
    <li class="alt" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">&nbsp;&nbsp;&nbsp;&nbsp;&lt;/li&gt;</li>
    <li style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">&lt;?php&nbsp;<span class="keyword" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">endwhile</span>;&nbsp;?&gt;</li>
</ol>
</div>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">&nbsp;</p>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;"><strong style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">4、边栏每月归档后显示文章数目</strong></p>
<div class="dp-highlighter" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 10px auto; padding: 5px; border: 1px dashed rgb(204, 204, 204); background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; width: 689.266px; word-break: break-all; overflow: auto; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">
<ol class="dp-c" start="1" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-right: 0px; margin-bottom: 1px; margin-left: -15px; padding: 2px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; color: rgb(102, 102, 102);">
    <li class="alt" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">&lt;?php&nbsp;<span class="vars" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">$this</span>-&gt;widget('Widget_Contents_Post_Date',&nbsp;'type=month&amp;format=Y年m月')-&gt;parse('&lt;li&gt;&lt;a&nbsp;href=<span class="string" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">&quot;{permalink}&quot;</span>&gt;{<span class="func" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px; color: black;">date</span>}&lt;/a&gt;&nbsp;&lt;span&nbsp;id=<span class="string" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">&quot;ignore&quot;</span>&gt;({<span class="func" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px; color: black;">count</span>})&lt;/span&gt;&lt;/li&gt;');&nbsp;?&gt;</li>
</ol>
</div>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">&nbsp;</p>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;"><strong style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">5、显示全部文章列表，可以应用在任何地方</strong></p>
<div class="dp-highlighter" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 10px auto; padding: 5px; border: 1px dashed rgb(204, 204, 204); background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; width: 689.266px; word-break: break-all; overflow: auto; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">
<ol class="dp-c" start="1" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-right: 0px; margin-bottom: 1px; margin-left: -15px; padding: 2px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; color: rgb(102, 102, 102);">
    <li class="alt" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">&lt;?php&nbsp;<span class="vars" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">$this</span>-&gt;widget('Widget_Contents_Post_Recent',&nbsp;'pageSize=10000')-&gt;parse('&lt;li&gt;{year}-{month}-{day}&nbsp;:&nbsp;&lt;a&nbsp;href=<span class="string" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">&quot;{permalink}&quot;</span>&gt;{title}&lt;/a&gt;&lt;/li&gt;');&nbsp;?&gt;</li>
</ol>
</div>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">&nbsp;</p>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;"><strong style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">6、 显示上一篇 下一篇</strong></p>
<div class="dp-highlighter" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 10px auto; padding: 5px; border: 1px dashed rgb(204, 204, 204); background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; width: 689.266px; word-break: break-all; overflow: auto; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">
<ol class="dp-c" start="1" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-right: 0px; margin-bottom: 1px; margin-left: -15px; padding: 2px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; color: rgb(102, 102, 102);">
    <li class="alt" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">上一篇&lt;?php&nbsp;<span class="vars" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">$this</span>-&gt;thePrev('&amp;laquo;&nbsp;%s',&nbsp;<span class="string" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">''</span>);&nbsp;?&gt;&lt;br&gt;&lt;br&gt;</li>
    <li style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">下一篇&lt;?php&nbsp;<span class="vars" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">$this</span>-&gt;theNext('%s&nbsp;&amp;raquo;',&nbsp;<span class="string" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">''</span>);&nbsp;?&gt;</li>
</ol>
</div>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">&nbsp;</p>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;"><strong style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">7、给网站添加返回顶部按钮</strong></p>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">纯js实现返回顶部的功能，适用于任何网页！jquery是调用的谷歌的，国内加载谷歌的较慢，因此推荐使用百度的或新浪的！你也可以将js放到本地服务器！</p>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">百度开放云平台：http://developer.baidu.com/wiki/index.php?title=docs/cplat/libs</p>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">推荐一个&ldquo;返回顶部代码&rdquo;网站，真心不错！地址：<a title="Scroll to Top Button" href="http://www.scrolltotop.com/" target="_blank" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px; color: rgb(85, 85, 85); text-decoration-line: none;"><strong style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">Scroll to Top Button</strong></a></p>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;"><strong style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">8、让Typecho侧边栏不显示博主评论，找到<strong style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">sidebar.php文件</strong></strong></p>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">将一下代码：</p>
<div class="dp-highlighter" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 10px auto; padding: 5px; border: 1px dashed rgb(204, 204, 204); background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; width: 689.266px; word-break: break-all; overflow: auto; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">
<ol class="dp-c" start="1" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-right: 0px; margin-bottom: 1px; margin-left: -15px; padding: 2px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; color: rgb(102, 102, 102);">
    <li class="alt" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">&lt;?php&nbsp;<span class="vars" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">$this</span>-&gt;widget('Widget_Comments_Recent')-&gt;to(<span class="vars" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">$comments</span>);&nbsp;?&gt;</li>
</ol>
</div>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">修改为：</p>
<div class="dp-highlighter" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 10px auto; padding: 5px; border: 1px dashed rgb(204, 204, 204); background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; width: 689.266px; word-break: break-all; overflow: auto; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">
<ol class="dp-c" start="1" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-right: 0px; margin-bottom: 1px; margin-left: -15px; padding: 2px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; color: rgb(102, 102, 102);">
    <li class="alt" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">&lt;?php&nbsp;<span class="vars" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">$this</span>-&gt;widget('Widget_Comments_Recent','ignoreAuthor=true')-&gt;to(<span class="vars" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">$comments</span>);&nbsp;?&gt;</li>
</ol>
</div>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">&nbsp;</p>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;"><strong style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">9、前台输出相关统计</strong></p>
<div class="dp-highlighter" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 10px auto; padding: 5px; border: 1px dashed rgb(204, 204, 204); background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; width: 689.266px; word-break: break-all; overflow: auto; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">
<ol class="dp-c" start="1" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-right: 0px; margin-bottom: 1px; margin-left: -15px; padding: 2px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; color: rgb(102, 102, 102);">
    <li class="alt" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">&lt;?php&nbsp;Typecho_Widget::widget('Widget_Stat')-&gt;to(<span class="vars" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">$stat</span>);&nbsp;?&gt;</li>
    <li style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">&lt;p&gt;&lt;?php&nbsp;_e('氪星人自&nbsp;&lt;strong&gt;2013&lt;/strong&gt;&nbsp;年建站以来，截至&nbsp;%s&nbsp;在设定的&nbsp;&lt;strong&gt;%s&lt;/strong&gt;&nbsp;个分类</li>
    <li class="alt" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">和&nbsp;&lt;strong&gt;%s&lt;/strong&gt;&nbsp;个页面中，</li>
    <li style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">发布了&nbsp;&lt;strong&gt;%s&lt;/strong&gt;&nbsp;篇文章，收到了&nbsp;&lt;strong&gt;%s&lt;/strong&gt;&nbsp;条评论。</li>
    <li class="alt" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">',&nbsp;<span class="func" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px; color: black;">date</span>('Y年n月j日G时i分'),&nbsp;<span class="vars" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">$stat</span>-&gt;categoriesNum,&nbsp;<span class="vars" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">$stat</span>-&gt;publishedPagesNum,&nbsp;<span class="vars" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">$stat</span>-&gt;publishedPostsNum,&nbsp;<span class="vars" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">$stat</span>-&gt;publishedCommentsNum);&nbsp;?&gt;&lt;/p&gt;</li>
</ol>
</div>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">&nbsp;</p>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;"><strong style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">10、创建自定义首页或页面模板</strong></p>
<div class="dp-highlighter" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 10px auto; padding: 5px; border: 1px dashed rgb(204, 204, 204); background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; width: 689.266px; word-break: break-all; overflow: auto; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">
<ol class="dp-c" start="1" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-right: 0px; margin-bottom: 1px; margin-left: -15px; padding: 2px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; color: rgb(102, 102, 102);">
    <li class="alt" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">&lt;?php</li>
    <li style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;"><span class="comment" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">/**</span></li>
    <li class="alt" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;"><span class="comment" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">*&nbsp;自定义首页模板</span></li>
    <li style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;"><span class="comment" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">*</span></li>
    <li class="alt" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;"><span class="comment" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">*&nbsp;@package&nbsp;index</span></li>
    <li style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;"><span class="comment" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">*/</span></li>
    <li class="alt" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">&nbsp;</li>
    <li style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">&lt;?php</li>
    <li class="alt" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;"><span class="comment" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">/**</span></li>
    <li style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;"><span class="comment" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">*&nbsp;自定义页面模板</span></li>
    <li class="alt" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;"><span class="comment" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">*</span></li>
    <li style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;"><span class="comment" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">*&nbsp;@package&nbsp;custom</span></li>
    <li class="alt" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;"><span class="comment" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">*/</span></li>
</ol>
</div>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">&nbsp;</p>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;"><strong style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">11、Typecho添加彩色标签云</strong></p>
<div class="dp-highlighter" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 10px auto; padding: 5px; border: 1px dashed rgb(204, 204, 204); background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; width: 689.266px; word-break: break-all; overflow: auto; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">
<ol class="dp-c" start="1" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-right: 0px; margin-bottom: 1px; margin-left: -15px; padding: 2px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; color: rgb(102, 102, 102);">
    <li class="alt" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">&lt;?php&nbsp;Typecho_Widget::widget('Widget_Metas_Tag_Cloud')-&gt;to(<span class="vars" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">$tags</span>);&nbsp;?&gt;</li>
    <li style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">&lt;?php&nbsp;<span class="keyword" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">if</span>(<span class="vars" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">$tags</span>-&gt;have()):&nbsp;?&gt;</li>
    <li class="alt" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">&lt;?php&nbsp;<span class="keyword" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">while</span>&nbsp;(<span class="vars" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">$tags</span>-&gt;next()):&nbsp;?&gt;</li>
    <li style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">&lt;a&nbsp;style=<span class="string" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">&quot;color:rgb(&lt;?php&nbsp;echo(rand(0,255));&nbsp;?&gt;,&lt;?php&nbsp;echo(rand(0,255));&nbsp;?&gt;,</span></li>
    <li class="alt" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;"><span class="string" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">&lt;?php&nbsp;echo(rand(0,255));&nbsp;?&gt;)&quot;</span>&nbsp;href=<span class="string" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">&quot;&lt;?php&nbsp;$tags-&gt;permalink();?&gt;&quot;</span>&gt;</li>
    <li style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">&lt;?php&nbsp;<span class="vars" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">$tags</span>-&gt;name();&nbsp;?&gt;&lt;/a&gt;</li>
    <li class="alt" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">&lt;?php&nbsp;<span class="keyword" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">endwhile</span>;&nbsp;?&gt;</li>
    <li style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">&lt;?php&nbsp;<span class="keyword" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">endif</span>;&nbsp;?&gt;</li>
</ol>
</div>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">&nbsp;</p>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;"><strong style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">12、新窗口打开评论者主页</strong></p>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">打开varWidgetAbstract 夹下的 Comments.php 文件，找到这句：</p>
<div class="dp-highlighter" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 10px auto; padding: 5px; border: 1px dashed rgb(204, 204, 204); background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; width: 689.266px; word-break: break-all; overflow: auto; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">
<ol class="dp-c" start="1" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-right: 0px; margin-bottom: 1px; margin-left: -15px; padding: 2px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; color: rgb(102, 102, 102);">
    <li class="alt" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;"><span class="func" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px; color: black;">echo</span>&nbsp;'&lt;a&nbsp;href=<span class="string" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">&quot;'&nbsp;,&nbsp;$this-&gt;url&nbsp;,&nbsp;'&quot;</span>'&nbsp;,&nbsp;(<span class="vars" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">$noFollow</span>&nbsp;?&nbsp;'&nbsp;rel=<span class="string" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">&quot;external&nbsp;nofollow&quot;</span>'&nbsp;:&nbsp;NULL)&nbsp;,&nbsp;'&gt;'&nbsp;,&nbsp;<span class="vars" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">$this</span>-&gt;author&nbsp;,&nbsp;'&lt;/a&gt;';</li>
</ol>
</div>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">修改为：</p>
<div class="dp-highlighter" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 10px auto; padding: 5px; border: 1px dashed rgb(204, 204, 204); background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; width: 689.266px; word-break: break-all; overflow: auto; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">
<ol class="dp-c" start="1" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-right: 0px; margin-bottom: 1px; margin-left: -15px; padding: 2px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; color: rgb(102, 102, 102);">
    <li class="alt" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;"><span class="func" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px; color: black;">echo</span>&nbsp;'&lt;a&nbsp;href=<span class="string" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">&quot;'&nbsp;,&nbsp;$this-&gt;url&nbsp;,&nbsp;'&quot;</span>'&nbsp;,&nbsp;(<span class="vars" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">$noFollow</span>&nbsp;?&nbsp;'&nbsp;rel=<span class="string" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">&quot;external&nbsp;nofollow&quot;</span>'&nbsp;:&nbsp;NULL)&nbsp;,&nbsp;'&nbsp;target=<span class="string" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">&quot;_blank&quot;</span>&gt;'&nbsp;,&nbsp;<span class="vars" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">$this</span>-&gt;author&nbsp;,&nbsp;'&lt;/a&gt;';</li>
</ol>
</div>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;"><strong style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">13、Typecho添加友情链接（插件）</strong></p>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">插件下载：<a title="Links.rar" href="http://www.imhan.com/download/29" target="_blank" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px; color: rgb(85, 85, 85); text-decoration-line: none;">Links.rar</a>&nbsp; &nbsp;(9.3 KB, &nbsp;最后修改: 2013-12-08)</p>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;"><span style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px; color: rgb(255, 0, 0);"><strong style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">使用向导：在侧边栏添加友情链接</strong></span></p>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">最简单的调用方式为：</p>
<div class="dp-highlighter" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 10px auto; padding: 5px; border: 1px dashed rgb(204, 204, 204); background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; width: 689.266px; word-break: break-all; overflow: auto; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">
<ol class="dp-c" start="1" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-right: 0px; margin-bottom: 1px; margin-left: -15px; padding: 2px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; color: rgb(102, 102, 102);">
    <li class="alt" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">&lt;?php&nbsp;Links_Plugin::output();&nbsp;?&gt;</li>
</ol>
</div>
<p style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-bottom: 5px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;"><span style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px; color: rgb(255, 0, 0);"><strong style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">如果想限制侧边栏的链接数量，比如说为10个，则可调用：</strong></span></p>
<div class="dp-highlighter" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 10px auto; padding: 5px; border: 1px dashed rgb(204, 204, 204); background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; width: 689.266px; word-break: break-all; overflow: auto; color: rgb(85, 85, 85); font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, Helvetica, Arial, &quot;Lucida Grande&quot;, Tahoma, sans-serif;">
<ol class="dp-c" start="1" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin-right: 0px; margin-bottom: 1px; margin-left: -15px; padding: 2px; border: 0px; text-align: justify; word-wrap: break-word; word-break: break-all; color: rgb(102, 102, 102);">
    <li class="alt" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px 0px 0px 40px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; line-height: 18px; list-style: decimal;">&lt;?php&nbsp;Links_Plugin::output(<span class="string" style="-webkit-tap-highlight-color: rgba(255, 0, 0, 0); margin: 0px; padding: 0px; border: 0px;">&quot;SHOW_TEXT&quot;</span>,&nbsp;10);&nbsp;?&gt;</li>
</ol>
</div>]]></description>
			<link>http://blog.xreacn.com/?action=show&amp;id=1997</link>
			<category domain="http://blog.xreacn.com/?cid=16">站点建设</category>
			<pubDate>2018-05-09 15:34</pubDate>
		</item>
		<item>
			<guid>http://blog.xreacn.com/?action=show&amp;id=1980</guid>
			<title>sablog 1.6 多个跨站漏洞</title>
			<author>admin</author>
			<description><![CDATA[<p>&nbsp;<span style="color: rgb(51, 51, 51); font-family: &quot;DIN Next Ultra Light&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, &quot;Lantinghei SC&quot;, &quot;Hiragino Sans GB&quot;, STHeiti, &quot;Noto Sans S Chinese&quot;, &quot;Microsoft Yahei&quot;, &quot;Microsoft Sans Serif&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif; font-size: 13px;">Date：2008-03-27</span></p>
<p style="margin-top: 15px; margin-bottom: 15px; color: rgb(51, 51, 51); font-family: &quot;DIN Next Ultra Light&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, &quot;Lantinghei SC&quot;, &quot;Hiragino Sans GB&quot;, STHeiti, &quot;Noto Sans S Chinese&quot;, &quot;Microsoft Yahei&quot;, &quot;Microsoft Sans Serif&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif; font-size: 13px;">Author：amxku[c.r.s.t]<br style="margin: 0px; padding: 0px;" />
Version:<a href="http://luoq.net/tag/sablog/" style="margin: 0px; padding: 0px; color: rgb(136, 51, 51);">sablog</a>&nbsp;1.6<br style="margin: 0px; padding: 0px;" />
<br style="margin: 0px; padding: 0px;" />
由于过滤不严，存在多个跨站<a href="http://luoq.net/tag/%25E6%25BC%258F%25E6%25B4%259E/" style="margin: 0px; padding: 0px; color: rgb(136, 51, 51);">漏洞</a><br style="margin: 0px; padding: 0px;" />
<br style="margin: 0px; padding: 0px;" />
PS:<br style="margin: 0px; padding: 0px;" />
http://www.luoq.net/?viewmode=list&amp;curl=&gt;&quot;&gt;&lt;ScRiPt%20%0a%0d&gt;alert(amxku)%3B&lt;/ScRiPt&gt;<br style="margin: 0px; padding: 0px;" />
http://www.luoq.net/?action=index&amp;cid=&gt;&quot;&gt;&lt;ScRiPt%20%0a%0d&gt;alert(amxku)%3B&lt;/ScRiPt&gt;&nbsp;<br style="margin: 0px; padding: 0px;" />
http://www.luoq.net/?action=index&amp;setdate=200804&amp;setday=&gt;&quot;&gt;&lt;ScRiPt%20%0a%0d&gt;alert(amxku)%3B&lt;/ScRiPt&gt;&amp;page=1&nbsp;<br style="margin: 0px; padding: 0px;" />
<br style="margin: 0px; padding: 0px;" />
临时解决办法：<br style="margin: 0px; padding: 0px;" />
<br style="margin: 0px; padding: 0px;" />
在global.php中过滤curl，cid，setday等</p>
<div class="codeText" style="word-wrap: break-word; width: 813.391px; background-color: rgb(238, 238, 238); color: rgb(51, 51, 51);">
<ol start="1" class="dp-c" style="padding-right: 5px; padding-left: 5px; border-left-width: 2px; border-left-color: rgb(20, 107, 0); background-color: rgb(238, 238, 238);">
    <li class="alt" style="margin: 0px; padding: 0px 0px 0px 5px; background-color: rgb(238, 238, 238);"><span style="margin: 0px; padding: 0px;"><span class="vars" style="margin: 0px; padding: 0px;">$modelink</span><span style="margin: 0px; padding: 0px;">&nbsp;=&nbsp;</span><span class="string" style="margin: 0px; padding: 0px;">''</span><span style="margin: 0px; padding: 0px;">;&nbsp;&nbsp;</span></span></li>
    <li class="" style="margin: 0px; padding: 0px 0px 0px 5px; background-color: rgb(231, 231, 231);"><span style="margin: 0px; padding: 0px;"><span class="keyword" style="margin: 0px; padding: 0px;">if</span><span style="margin: 0px; padding: 0px;">&nbsp;(</span><span class="vars" style="margin: 0px; padding: 0px;">$action</span><span style="margin: 0px; padding: 0px;">)&nbsp;{&nbsp;&nbsp;</span></span></li>
    <li class="alt" style="margin: 0px; padding: 0px 0px 0px 5px; background-color: rgb(238, 238, 238);"><span style="margin: 0px; padding: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="vars" style="margin: 0px; padding: 0px;">$modelink</span><span style="margin: 0px; padding: 0px;">&nbsp;.=&nbsp;</span><span class="string" style="margin: 0px; padding: 0px;">'&amp;action='</span><span style="margin: 0px; padding: 0px;">.</span><span class="vars" style="margin: 0px; padding: 0px;">$action</span><span style="margin: 0px; padding: 0px;">;&nbsp;&nbsp;</span></span></li>
    <li class="" style="margin: 0px; padding: 0px 0px 0px 5px; background-color: rgb(231, 231, 231);"><span style="margin: 0px; padding: 0px;">}&nbsp;&nbsp;</span></li>
    <li class="alt" style="margin: 0px; padding: 0px 0px 0px 5px; background-color: rgb(238, 238, 238);"><span style="margin: 0px; padding: 0px;"><span class="keyword" style="margin: 0px; padding: 0px;">if</span><span style="margin: 0px; padding: 0px;">&nbsp;(</span><span class="vars" style="margin: 0px; padding: 0px;">$curl</span><span style="margin: 0px; padding: 0px;">)&nbsp;{&nbsp;&nbsp;</span></span></li>
    <li class="" style="margin: 0px; padding: 0px 0px 0px 5px; background-color: rgb(231, 231, 231);"><span style="margin: 0px; padding: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="vars" style="margin: 0px; padding: 0px;">$modelink</span><span style="margin: 0px; padding: 0px;">&nbsp;.=&nbsp;</span><span class="string" style="margin: 0px; padding: 0px;">'&amp;curl='</span><span style="margin: 0px; padding: 0px;">.htmlspecialchars(</span><span class="vars" style="margin: 0px; padding: 0px;">$curl</span><span style="margin: 0px; padding: 0px;">);&nbsp;&nbsp;</span></span></li>
    <li class="alt" style="margin: 0px; padding: 0px 0px 0px 5px; background-color: rgb(238, 238, 238);"><span style="margin: 0px; padding: 0px;">}&nbsp;&nbsp;</span></li>
    <li class="" style="margin: 0px; padding: 0px 0px 0px 5px; background-color: rgb(231, 231, 231);"><span style="margin: 0px; padding: 0px;"><span class="keyword" style="margin: 0px; padding: 0px;">if</span><span style="margin: 0px; padding: 0px;">&nbsp;(</span><span class="vars" style="margin: 0px; padding: 0px;">$cid</span><span style="margin: 0px; padding: 0px;">)&nbsp;{&nbsp;&nbsp;</span></span></li>
    <li class="alt" style="margin: 0px; padding: 0px 0px 0px 5px; background-color: rgb(238, 238, 238);"><span style="margin: 0px; padding: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="vars" style="margin: 0px; padding: 0px;">$modelink</span><span style="margin: 0px; padding: 0px;">&nbsp;.=&nbsp;</span><span class="string" style="margin: 0px; padding: 0px;">'&amp;cid='</span><span style="margin: 0px; padding: 0px;">.htmlspecialchars(</span><span class="vars" style="margin: 0px; padding: 0px;">$cid</span><span style="margin: 0px; padding: 0px;">);&nbsp;&nbsp;</span></span></li>
    <li class="" style="margin: 0px; padding: 0px 0px 0px 5px; background-color: rgb(231, 231, 231);"><span style="margin: 0px; padding: 0px;">}&nbsp;&nbsp;</span></li>
    <li class="alt" style="margin: 0px; padding: 0px 0px 0px 5px; background-color: rgb(238, 238, 238);"><span style="margin: 0px; padding: 0px;"><span class="keyword" style="margin: 0px; padding: 0px;">if</span><span style="margin: 0px; padding: 0px;">&nbsp;(</span><span class="vars" style="margin: 0px; padding: 0px;">$setdate</span><span style="margin: 0px; padding: 0px;">)&nbsp;{&nbsp;&nbsp;</span></span></li>
    <li class="" style="margin: 0px; padding: 0px 0px 0px 5px; background-color: rgb(231, 231, 231);"><span style="margin: 0px; padding: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="vars" style="margin: 0px; padding: 0px;">$modelink</span><span style="margin: 0px; padding: 0px;">&nbsp;.=&nbsp;</span><span class="string" style="margin: 0px; padding: 0px;">'&amp;setdate='</span><span style="margin: 0px; padding: 0px;">.htmlspecialchars(</span><span class="vars" style="margin: 0px; padding: 0px;">$setdate</span><span style="margin: 0px; padding: 0px;">);&nbsp;&nbsp;</span></span></li>
    <li class="alt" style="margin: 0px; padding: 0px 0px 0px 5px; background-color: rgb(238, 238, 238);"><span style="margin: 0px; padding: 0px;">}&nbsp;&nbsp;</span></li>
    <li class="" style="margin: 0px; padding: 0px 0px 0px 5px; background-color: rgb(231, 231, 231);"><span style="margin: 0px; padding: 0px;"><span class="keyword" style="margin: 0px; padding: 0px;">if</span><span style="margin: 0px; padding: 0px;">&nbsp;(</span><span class="vars" style="margin: 0px; padding: 0px;">$setday</span><span style="margin: 0px; padding: 0px;">)&nbsp;{&nbsp;&nbsp;</span></span></li>
    <li class="alt" style="margin: 0px; padding: 0px 0px 0px 5px; background-color: rgb(238, 238, 238);"><span style="margin: 0px; padding: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="vars" style="margin: 0px; padding: 0px;">$modelink</span><span style="margin: 0px; padding: 0px;">&nbsp;.=&nbsp;</span><span class="string" style="margin: 0px; padding: 0px;">'&amp;setday='</span><span style="margin: 0px; padding: 0px;">.htmlspecialchars(</span><span class="vars" style="margin: 0px; padding: 0px;">$setday</span><span style="margin: 0px; padding: 0px;">);&nbsp;&nbsp;</span></span></li>
    <li class="" style="margin: 0px; padding: 0px 0px 0px 5px; background-color: rgb(231, 231, 231);"><span style="margin: 0px; padding: 0px;">}&nbsp;&nbsp;</span></li>
    <li class="alt" style="margin: 0px; padding: 0px 0px 0px 5px; background-color: rgb(238, 238, 238);"><span style="margin: 0px; padding: 0px;"><span class="keyword" style="margin: 0px; padding: 0px;">if</span><span style="margin: 0px; padding: 0px;">&nbsp;(</span><span class="func" style="margin: 0px; padding: 0px;">intval</span><span style="margin: 0px; padding: 0px;">(</span><span class="vars" style="margin: 0px; padding: 0px;">$_GET</span><span style="margin: 0px; padding: 0px;">[</span><span class="string" style="margin: 0px; padding: 0px;">'searchid'</span><span style="margin: 0px; padding: 0px;">]))&nbsp;{&nbsp;&nbsp;</span></span></li>
    <li class="" style="margin: 0px; padding: 0px 0px 0px 5px; background-color: rgb(231, 231, 231);"><span style="margin: 0px; padding: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="vars" style="margin: 0px; padding: 0px;">$modelink</span><span style="margin: 0px; padding: 0px;">&nbsp;.=&nbsp;</span><span class="string" style="margin: 0px; padding: 0px;">'&amp;searchid='</span><span style="margin: 0px; padding: 0px;">.htmlspecialchars(</span><span class="vars" style="margin: 0px; padding: 0px;">$_GET</span><span style="margin: 0px; padding: 0px;">[</span><span class="string" style="margin: 0px; padding: 0px;">'searchid'</span><span style="margin: 0px; padding: 0px;">]);&nbsp;&nbsp;</span></span></li>
    <li class="alt" style="margin: 0px; padding: 0px 0px 0px 5px; background-color: rgb(238, 238, 238);"><span style="margin: 0px; padding: 0px;">}&nbsp;&nbsp;</span></li>
    <li class="" style="margin: 0px; padding: 0px 0px 0px 5px; background-color: rgb(231, 231, 231);"><span style="margin: 0px; padding: 0px;"><span class="keyword" style="margin: 0px; padding: 0px;">if</span><span style="margin: 0px; padding: 0px;">&nbsp;(</span><span class="func" style="margin: 0px; padding: 0px;">intval</span><span style="margin: 0px; padding: 0px;">(</span><span class="vars" style="margin: 0px; padding: 0px;">$_GET</span><span style="margin: 0px; padding: 0px;">[</span><span class="string" style="margin: 0px; padding: 0px;">'userid'</span><span style="margin: 0px; padding: 0px;">]))&nbsp;{&nbsp;&nbsp;</span></span></li>
    <li class="alt" style="margin: 0px; padding: 0px 0px 0px 5px; background-color: rgb(238, 238, 238);"><span style="margin: 0px; padding: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="vars" style="margin: 0px; padding: 0px;">$modelink</span><span style="margin: 0px; padding: 0px;">&nbsp;.=&nbsp;</span><span class="string" style="margin: 0px; padding: 0px;">&quot;&amp;userid=&quot;</span><span style="margin: 0px; padding: 0px;">.htmlspecialchars(</span><span class="vars" style="margin: 0px; padding: 0px;">$_GET</span><span style="margin: 0px; padding: 0px;">[</span><span class="string" style="margin: 0px; padding: 0px;">'userid'</span><span style="margin: 0px; padding: 0px;">]);&nbsp;&nbsp;</span></span></li>
    <li class="" style="margin: 0px; padding: 0px 0px 0px 5px; background-color: rgb(231, 231, 231);"><span style="margin: 0px; padding: 0px;">}&nbsp;&nbsp;</span></li>
    <li class="alt" style="margin: 0px; padding: 0px 0px 0px 5px; background-color: rgb(238, 238, 238);"><span style="margin: 0px; padding: 0px;"><span class="keyword" style="margin: 0px; padding: 0px;">if</span><span style="margin: 0px; padding: 0px;">&nbsp;(</span><span class="vars" style="margin: 0px; padding: 0px;">$_GET</span><span style="margin: 0px; padding: 0px;">[</span><span class="string" style="margin: 0px; padding: 0px;">'item'</span><span style="margin: 0px; padding: 0px;">])&nbsp;{&nbsp;&nbsp;</span></span></li>
    <li class="" style="margin: 0px; padding: 0px 0px 0px 5px; background-color: rgb(231, 231, 231);"><span style="margin: 0px; padding: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="vars" style="margin: 0px; padding: 0px;">$item</span><span style="margin: 0px; padding: 0px;">&nbsp;=&nbsp;urlencode(</span><span class="func" style="margin: 0px; padding: 0px;">addslashes</span><span style="margin: 0px; padding: 0px;">(</span><span class="vars" style="margin: 0px; padding: 0px;">$item</span><span style="margin: 0px; padding: 0px;">));&nbsp;&nbsp;</span></span></li>
    <li class="alt" style="margin: 0px; padding: 0px 0px 0px 5px; background-color: rgb(238, 238, 238);"><span style="margin: 0px; padding: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="vars" style="margin: 0px; padding: 0px;">$modelink</span><span style="margin: 0px; padding: 0px;">&nbsp;.=&nbsp;</span><span class="string" style="margin: 0px; padding: 0px;">'&amp;item='</span><span style="margin: 0px; padding: 0px;">.</span><span class="vars" style="margin: 0px; padding: 0px;">$item</span><span style="margin: 0px; padding: 0px;">;&nbsp;&nbsp;</span></span></li>
    <li class="" style="margin: 0px; padding: 0px 0px 0px 5px; background-color: rgb(231, 231, 231);"><span style="margin: 0px; padding: 0px;">}</span></li>
</ol>
</div>]]></description>
			<link>http://blog.xreacn.com/?action=show&amp;id=1980</link>
			<category domain="http://blog.xreacn.com/?cid=16">站点建设</category>
			<pubDate>2017-08-21 10:38</pubDate>
		</item>
		<item>
			<guid>http://blog.xreacn.com/?action=show&amp;id=1967</guid>
			<title>點選標籤只顯示文章列表、文章標題</title>
			<author>admin</author>
			<description><![CDATA[<p><span style="text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Verdana, sans-serif; font-size: 13px; font-style: normal; font-weight: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">修改步驟 自訂 (Customize) &rarr; 範本 (Template) &rarr; 修改 HTML (Edit HTML) &rarr; 把 展開小裝置範本 (Expand Widget Template) 打勾 來編輯範本的完整 HTML</span><br style="text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Verdana, sans-serif; font-size: 13px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;" />
<br style="text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Verdana, sans-serif; font-size: 13px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Verdana, sans-serif; font-size: 13px; font-style: normal; font-weight: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">找到下面紅色代碼這段 (如果你裝過其他 Hack, 可能不太一樣, 重點是紅色那一行)</span></p>
<div class="codeText">
<div class="codeHead">XML/HTML代码</div>
<ol class="dp-xml">
    <li class="alt"><span><span class="tag">&lt;</span><span class="tag-name">b:loop</span><span>&nbsp;</span><span class="attribute">values</span><span>=</span><span class="attribute-value">'data:posts'</span><span>&nbsp;</span><span class="attribute">var</span><span>=</span><span class="attribute-value">'post'</span><span class="tag">&gt;</span><span>&nbsp;&nbsp;</span></span></li>
    <li><span><span class="tag">&lt;</span><span class="tag-name">b:if</span><span>&nbsp;</span><span class="attribute">cond</span><span>=</span><span class="attribute-value">'data:post.dateHeader'</span><span class="tag">&gt;</span><span>&nbsp;&nbsp;</span></span></li>
    <li class="alt"><span><span class="tag">&lt;</span><span class="tag-name">h2</span><span>&nbsp;</span><span class="attribute">class</span><span>=</span><span class="attribute-value">'date-header'</span><span class="tag">&gt;</span><span class="tag">&lt;</span><span class="tag-name">data:post.dateHeader</span><span class="tag">/&gt;</span><span class="tag">&lt;/</span><span class="tag-name">h2</span><span class="tag">&gt;</span><span>&nbsp;&nbsp;</span></span></li>
    <li><span><span class="tag">&lt;/</span><span class="tag-name">b:if</span><span class="tag">&gt;</span><span>&nbsp;&nbsp;</span></span></li>
    <li class="alt"><span><span class="tag">&lt;</span><span class="tag-name">b:include</span><span>&nbsp;</span><span class="attribute">data</span><span>=</span><span class="attribute-value">'post'</span><span>&nbsp;</span><span class="attribute">name</span><span>=</span><span class="attribute-value">'post'</span><span class="tag">/&gt;</span><span>&nbsp;&nbsp;这一句&nbsp;</span></span></li>
    <li><span><span class="tag">&lt;</span><span class="tag-name">b:if</span><span>&nbsp;</span><span class="attribute">cond</span><span>=</span><span class="attribute-value">'data:blog.pageType&nbsp;==&nbsp;&quot;item&quot;'</span><span class="tag">&gt;</span><span>&nbsp;&nbsp;</span></span></li>
    <li class="alt"><span><span class="tag">&lt;</span><span class="tag-name">b:if</span><span>&nbsp;</span><span class="attribute">cond</span><span>=</span><span class="attribute-value">'data:post.allowComments'</span><span class="tag">&gt;</span><span>&nbsp;&nbsp;</span></span></li>
    <li><span><span class="tag">&lt;</span><span class="tag-name">b:include</span><span>&nbsp;</span><span class="attribute">data</span><span>=</span><span class="attribute-value">'post'</span><span>&nbsp;</span><span class="attribute">name</span><span>=</span><span class="attribute-value">'comments'</span><span class="tag">/&gt;</span><span>&nbsp;&nbsp;</span></span></li>
    <li class="alt"><span><span class="tag">&lt;/</span><span class="tag-name">b:if</span><span class="tag">&gt;</span><span>&nbsp;&nbsp;</span></span></li>
    <li><span><span class="tag">&lt;/</span><span class="tag-name">b:if</span><span class="tag">&gt;</span><span>&nbsp;&nbsp;</span></span></li>
    <li class="alt"><span><span class="tag">&lt;/</span><span class="tag-name">b:loop</span><span class="tag">&gt;</span><span>&nbsp;&nbsp;</span></span></li>
</ol>
</div>
<p><span style="text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Verdana, sans-serif; font-size: 13px; font-style: normal; font-weight: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">將上述紅色代碼替換成以下代碼:</span></p>
<p>&nbsp;</p>
<p><span style="text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Verdana, sans-serif; font-size: 13px; font-style: normal; font-weight: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">
<p>&nbsp;</p>
<div class="codeText">
<div class="codeHead">XML/HTML代码</div>
<ol class="dp-xml">
    <li class="alt"><span><span class="tag">&lt;</span><span class="tag-name">b:if</span><span>&nbsp;</span><span class="attribute">cond</span><span>=</span><span class="attribute-value">'data:blog.homepageUrl&nbsp;!=&nbsp;data:blog.url'</span><span class="tag">&gt;</span><span>&nbsp;&nbsp;</span></span></li>
    <li><span><span class="tag">&lt;</span><span class="tag-name">b:if</span><span>&nbsp;</span><span class="attribute">cond</span><span>=</span><span class="attribute-value">'data:blog.pageType&nbsp;!=&nbsp;&quot;item&quot;'</span><span class="tag">&gt;</span><span>&nbsp;&nbsp;</span></span></li>
    <li class="alt"><span><span class="comments">&lt;!--&nbsp;Show&nbsp;article&nbsp;title&nbsp;only&nbsp;--&gt;</span><span>&nbsp;&nbsp;</span></span></li>
    <li><span><span class="tag">&lt;</span><span class="tag-name">h3</span><span>&nbsp;</span><span class="attribute">class</span><span>=</span><span class="attribute-value">'post-title'</span><span class="tag">&gt;</span><span class="tag">&lt;</span><span class="tag-name">a</span><span>&nbsp;</span><span class="attribute">expr:href</span><span>=</span><span class="attribute-value">'data:post.url'</span><span class="tag">&gt;</span><span class="tag">&lt;</span><span class="tag-name">data:post.title</span><span class="tag">/&gt;</span><span class="tag">&lt;/</span><span class="tag-name">a</span><span class="tag">&gt;</span><span class="tag">&lt;/</span><span class="tag-name">h3</span><span class="tag">&gt;</span><span>&nbsp;&nbsp;</span></span></li>
    <li class="alt"><span><span class="tag">&lt;</span><span class="tag-name">b:else</span><span class="tag">/&gt;</span><span>&nbsp;&nbsp;</span></span></li>
    <li><span><span class="tag">&lt;</span><span class="tag-name">b:include</span><span>&nbsp;</span><span class="attribute">data</span><span>=</span><span class="attribute-value">'post'</span><span>&nbsp;</span><span class="attribute">name</span><span>=</span><span class="attribute-value">'post'</span><span class="tag">/&gt;</span><span>&nbsp;&nbsp;</span></span></li>
    <li class="alt"><span><span class="tag">&lt;/</span><span class="tag-name">b:if</span><span class="tag">&gt;</span><span>&nbsp;&nbsp;</span></span></li>
    <li><span><span class="tag">&lt;</span><span class="tag-name">b:else</span><span class="tag">/&gt;</span><span>&nbsp;&nbsp;</span></span></li>
    <li class="alt"><span><span class="tag">&lt;</span><span class="tag-name">b:include</span><span>&nbsp;</span><span class="attribute">data</span><span>=</span><span class="attribute-value">'post'</span><span>&nbsp;</span><span class="attribute">name</span><span>=</span><span class="attribute-value">'post'</span><span class="tag">/&gt;</span><span>&nbsp;&nbsp;</span></span></li>
    <li><span><span class="tag">&lt;/</span><span class="tag-name">b:if</span><span class="tag">&gt;</span><span>&nbsp;&nbsp;</span></span></li>
</ol>
</div>
</span></p>]]></description>
			<link>http://blog.xreacn.com/?action=show&amp;id=1967</link>
			<category domain="http://blog.xreacn.com/?cid=16">站点建设</category>
			<pubDate>2017-07-21 10:02</pubDate>
		</item>
		<item>
			<guid>http://blog.xreacn.com/?action=show&amp;id=1947</guid>
			<title>ecshop版权的修改，头部，底部</title>
			<author>admin</author>
			<description><![CDATA[<p>ecshop的title的修改<br />
前面我们已经讲过如何删除ecshop的版权，但是还有很多人不会，今天就详细的讲下如何删除所有ecshop版权和logo<br />
前台部分：<br />
1:去掉头部TITLE部分的ECSHOP演示站 Powered by ecshop<br />
&nbsp;<br />
前者在后台商店设置 - 商店标题修改<br />
后者打开includes/lib_main.php<br />
$page_title = $GLOBALS['_CFG']['shop_title'] . ' - ' . 'Powered by ECShop';<br />
修改这里的'Powered by ECShop<br />
&nbsp;<br />
2.去掉友情链接部分<br />
&nbsp;<br />
在后台的友情链接管理里修改<br />
&nbsp;<br />
3.去掉底部的Powered by ecshop 270<br />
&nbsp;<br />
打开&nbsp; js/common.js&nbsp;&nbsp;&nbsp; <br />
删除第244行:onload = function()<br />
&nbsp;<br />
再打开模板文件夹的&nbsp; library/page_footer.lbi<br />
删除 {foreach from=$lang.p_y item=pv}{$pv}{/foreach}{$licensed}<br />
&nbsp;<br />
&nbsp;<br />
后台部分：<br />
1.去除两张图片<br />
&nbsp;<br />
admin/images/ecshop_logo.gif<br />
admin/images/login.png<br />
&nbsp;<br />
2.右上角的&ldquo;关于ECSHOP&rdquo;<br />
&nbsp;<br />
打开admin/templates/top.htm<br />
删除：<br />
{$lang.about}<br />
&nbsp;<br />
3.中部 ECSHOP 管理中心， 和底部的版权所有<br />
&nbsp; <br />
打开language/zh_cn/admin/common.php<br />
$_LANG['cp_home'] = 'ECSHOP 管理中心';<br />
$_LANG['copyright'] = '版权所有 &copy; 2005-2009 上海商派网络科技有限公司，并保留所有权利。';</p>]]></description>
			<link>http://blog.xreacn.com/?action=show&amp;id=1947</link>
			<category domain="http://blog.xreacn.com/?cid=16">站点建设</category>
			<pubDate>2017-04-06 19:37</pubDate>
		</item>
		<item>
			<guid>http://blog.xreacn.com/?action=show&amp;id=1902</guid>
			<title>sablog去除验证码的办法</title>
			<author>admin</author>
			<description><![CDATA[<p><span style="line-height: normal; widows: 2; text-transform: none; font-style: normal; text-indent: 0px; display: inline !important; font-family: Simsun; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(0,0,0); font-size: medium; font-weight: normal; word-spacing: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px">打开cache\cache_settings.php文件</span><br style="line-height: normal; widows: 2; text-transform: none; font-style: normal; text-indent: 0px; font-family: Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0,0,0); font-size: medium; font-weight: normal; word-spacing: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px" />
<span style="line-height: normal; widows: 2; text-transform: none; font-style: normal; text-indent: 0px; display: inline !important; font-family: Simsun; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(0,0,0); font-size: medium; font-weight: normal; word-spacing: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px">把$options['seccode_enable'] =&gt; '1',</span><br style="line-height: normal; widows: 2; text-transform: none; font-style: normal; text-indent: 0px; font-family: Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0,0,0); font-size: medium; font-weight: normal; word-spacing: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px" />
<span style="line-height: normal; widows: 2; text-transform: none; font-style: normal; text-indent: 0px; display: inline !important; font-family: Simsun; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(0,0,0); font-size: medium; font-weight: normal; word-spacing: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px">改成</span><br style="line-height: normal; widows: 2; text-transform: none; font-style: normal; text-indent: 0px; font-family: Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0,0,0); font-size: medium; font-weight: normal; word-spacing: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px" />
<span style="line-height: normal; widows: 2; text-transform: none; font-style: normal; text-indent: 0px; display: inline !important; font-family: Simsun; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(0,0,0); font-size: medium; font-weight: normal; word-spacing: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px">$options['seccode_enable'] =&gt; '0',</span></p>]]></description>
			<link>http://blog.xreacn.com/?action=show&amp;id=1902</link>
			<category domain="http://blog.xreacn.com/?cid=16">站点建设</category>
			<pubDate>2016-08-19 21:04</pubDate>
		</item>
		<item>
			<guid>http://blog.xreacn.com/?action=show&amp;id=1855</guid>
			<title>PHP验证码程序：session生成图片</title>
			<author>xreacn</author>
			<description><![CDATA[<p><strong><font color="#111111">正 文：<br style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/25px Tahoma, Arial, Verdana, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(17,17,17); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" />
</font></strong></p>
<table style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/25px Tahoma, Arial, Verdana, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(17,17,17); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" border="0" align="right">
    <tbody>
        <tr>
            <td>&nbsp;</td>
        </tr>
    </tbody>
</table>
<p><span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/25px Tahoma, Arial, Verdana, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(17,17,17); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&nbsp;&nbsp;&nbsp;&nbsp;昨天捣鼓了一下PHP验证码并生成图片程序，采用了session识别，稍微改进了一下目前网络上流传的PHP验证码，加入杂点，数字颜色随机显示，控制4位数字显示；话不多说了，程序如下，分享出来。</span></p>
<p style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/25px Tahoma, Arial, Verdana, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(17,17,17); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&nbsp;</p>
<p><span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/25px Tahoma, Arial, Verdana, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(17,17,17); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&nbsp;&nbsp;&nbsp;&nbsp;效果图如下：</span></p>
<p style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/25px Tahoma, Arial, Verdana, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(17,17,17); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&nbsp;</p>
<div style="text-align: center; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/25px Tahoma, Arial, Verdana, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(17,17,17); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><img border="0" alt="PHP验证码程序：session生成图片" src="http://www.piaoyi.org/upimg/file071127_08/01/yzm-php.jpg" onload="javascript:if(this.width&gt;670)this.width=670" /></div>
<p style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/25px Tahoma, Arial, Verdana, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(17,17,17); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&nbsp;</p>
<p><span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/25px Tahoma, Arial, Verdana, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(17,17,17); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&nbsp;&nbsp;&nbsp;&nbsp;新建yz.php验证码生成文件：</span></p>
<p style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/25px Tahoma, Arial, Verdana, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(17,17,17); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&nbsp;</p>
<p><span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/25px Tahoma, Arial, Verdana, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(17,17,17); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&nbsp;&nbsp;&nbsp;&nbsp;注意：以下代码需要打开php的GD库，修改php.in文件的配置，把已经注释掉的行之前的分号取消即可：extension=php_gd2.dll。</span></p>
<p style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/25px Tahoma, Arial, Verdana, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(17,17,17); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&nbsp;</p>
<div style="border-bottom: rgb(228,228,228) 1px dotted; border-left: rgb(228,228,228) 1px dotted; padding-bottom: 4px; overflow-x: hidden; overflow-y: hidden; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px auto; padding-left: 10px; padding-right: 10px; font: 12px/21px Tahoma, Arial, Verdana, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(85,153,68); border-top: rgb(228,228,228) 1px dotted; border-right: rgb(228,228,228) 1px dotted; word-spacing: 0px; padding-top: 4px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" id="yy">&lt;?<br />
session_start();<br />
//生成验证码图片<br />
Header(&quot;Content-type:&nbsp;image/PNG&quot;);<br />
$im&nbsp;=&nbsp;imagecreate(44,18);<br />
$back&nbsp;=&nbsp;ImageColorAllocate($im,&nbsp;245,245,245);<br />
imagefill($im,0,0,$back);&nbsp;//背景
<p>&nbsp;</p>
srand((double)microtime()*1000000);<br />
//生成4位数字<br />
for($i=0;$i&lt;4;$i++){<br />
$font&nbsp;=&nbsp;ImageColorAllocate($im,&nbsp;rand(100,255),rand(0,100),rand(100,255));<br />
$authnum=rand(1,9);<br />
$vcodes.=$authnum;<br />
imagestring($im,&nbsp;5,&nbsp;2+$i*10,&nbsp;1,&nbsp;$authnum,&nbsp;$font);<br />
}
<p>&nbsp;</p>
for($i=0;$i&lt;100;$i++)&nbsp;//加入干扰象素<br />
{&nbsp;<br />
$randcolor&nbsp;=&nbsp;ImageColorallocate($im,rand(0,255),rand(0,255),rand(0,255));<br />
imagesetpixel($im,&nbsp;rand()%70&nbsp;,&nbsp;rand()%30&nbsp;,&nbsp;$randcolor);<br />
}&nbsp;<br />
ImagePNG($im);<br />
ImageDestroy($im);
<p>&nbsp;</p>
$_SESSION['VCODE']&nbsp;=&nbsp;$vcodes;<br />
?&gt;</div>
<p style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/25px Tahoma, Arial, Verdana, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(17,17,17); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&nbsp;</p>
<p><span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/25px Tahoma, Arial, Verdana, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(17,17,17); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&nbsp;&nbsp;&nbsp;&nbsp;到具体调用的地方，用这样的形式：&lt;img&nbsp;src=&quot;/yz.php&quot;&nbsp;align=&quot;absmiddle&quot;&nbsp;/&gt;就可以了；验证的时候验证session：$_SESSION['VCODE']的值就可以了。还可以对以上代码稍微改进，改成两个数字相加求和的形式，效果可以参见《</span><a style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/25px Tahoma, Arial, Verdana, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(2,122,198); word-spacing: 0px; text-decoration: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" href="http://www.piaoyi.org/asp/Asp-Image-Bmp-Code.html" target="_blank">ASP生成Bmp图片验证码：数字相加求和</a><span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/25px Tahoma, Arial, Verdana, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(17,17,17); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">》。</span></p>
<p style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/25px Tahoma, Arial, Verdana, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(17,17,17); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&nbsp;</p>
<p><span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/25px Tahoma, Arial, Verdana, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(17,17,17); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&nbsp;&nbsp;&nbsp;&nbsp;ps:&nbsp;2010.4.20更新：PHP的更高级的验证码移步这里看：</span><a style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/25px Tahoma, Arial, Verdana, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(2,122,198); word-spacing: 0px; text-decoration: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" href="http://www.piaoyi.org/php/php-yanzhengma-rand-shape.html" target="_blank">随机扭曲、旋转、变形（仿Google验证码）的php验证码</a><span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/25px Tahoma, Arial, Verdana, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(17,17,17); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">。</span></p>]]></description>
			<link>http://blog.xreacn.com/?action=show&amp;id=1855</link>
			<category domain="http://blog.xreacn.com/?cid=16">站点建设</category>
			<pubDate>2012-02-18 01:17</pubDate>
		</item>
		<item>
			<guid>http://blog.xreacn.com/?action=show&amp;id=1853</guid>
			<title>.htaccess几个简单应用</title>
			<author>xreacn</author>
			<description><![CDATA[<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">.htaccess 文件 (Hypertext Access file) 是Apache Web服务器的一个非常强大的配置文件，对于这个文件，Apache有一堆参数可以让你配置出几乎随心所欲的功能。.htaccess 配置文件坚持了Unix的一个文化&mdash;&mdash;使用一个ASCII 的纯文本文件来配置你的网站的访问策略。</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">这篇文章包括了几十个非常有用的小技巧。另外，因为<a style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; color: rgb(164,0,0); border-left-style: none; text-decoration: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial" href="http://zzsa.net/">.htaccess</a><span class="Apple-converted-space">&nbsp;</span>是一个相当强大的配置文件，所以，一个轻微的语法错误会造成你整个网站的故障，所以，在你修改或是替换原有的文件时，一定要备份旧的文件，以便出现问题的时候可以方便的恢复。</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">？.htaccess是在Apache HTTP Server这款服务器架设软件下的一个对于系统目录进行各种权限规则设置的一个文件，存在于Linux操作系统中。比较常见的是定义默认首页名称，404页面，301转向，等等，还有更多的功能比如伪静态，限制图片外链，限制下载，密码保护，去除页面广告等等，还有非常多的功能就不一一列举。<br />
　　其实这些功能大多可以在cPanel控制面板来进行设置的（相当于是.htaccess的图形化界面）。但对于高手来讲，cPanel对于<a style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; color: rgb(164,0,0); border-left-style: none; text-decoration: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial" href="http://zzsa.net/">htaccess</a>提供的功能还是太少了点，手工编辑才是王道。相对于国内的虚拟主机，绝大多数是没有这个功能的<br />
<img style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; max-width: 100%; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial" border="0" alt="" original="http://images.cnblogs.com/cnblogs_com/xiaochaohuashengmi/243888/o_htaccess.gif" src="http://images.cnblogs.com/cnblogs_com/xiaochaohuashengmi/243888/o_htaccess.gif" /><br />
<strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">目录规则</strong><br />
一般我们将<a style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; color: rgb(164,0,0); border-left-style: none; text-decoration: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial" href="http://zzsa.net/">.htaccess</a>文件放置在网站的根目录，控制所在目录及所有子目录，而如果放置在子目录中，会受上级目录中.htaccess文件影响，是不起任何作用的。</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">举几个例子，以下部分引用维基百科。</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">自定义错误页面（直接拷贝即可）</strong></p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">ErrorDocument 404 /error-pages/not-found.html<br />
ErrorDocument 503 /error-pages/service-unavailable.html</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;-<br />
<strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">IP禁止</strong></p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">Order allow,deny<br />
Deny from 123.45.67.8<br />
Deny from 123.123.7<br />
Allow from all</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">上面能禁止IP地址在123.45.67.8以及IP地址开头为123.123.7的任何人。例如123.123.74.42 就不能得到访问。<br />
&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;-<br />
<strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">变更默认首页</strong></p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">DirectoryIndex homepage.html</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;-<br />
<strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">去除页面广告（不一定适用所有免费空间）</strong></p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">LayoutIgnoreURI *.php<br />
LayoutIgnoreURI *.cgi<br />
LayoutIgnoreURI *.htm<br />
LayoutIgnoreURI *.html<br />
LayoutIgnoreURI *.txt</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;-<br />
<strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">页面跳转</strong></p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">Redirect page1.html page2.html</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">如果某人访问 http://www.example.com/page1.html，他将被跳转到（带有HTTP状态代码302）的http://www.example.com/page2.html<br />
&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;-<br />
<strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">服务器内置SSI</strong></p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">AddType text/html .shtml<br />
AddHandler server-parsed .shtml<br />
Options Indexes FollowSymLinks Includes</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">利用<a style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; color: rgb(233,255,201); border-left-style: none; text-decoration: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial" href="http://zzsa.net/">.htaccess</a>实现网站图片防盗链功能</strong></p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">打开自己空间的.htaccess文件，加上以下代码：</strong></p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">RewriteEngine on<br />
RewriteCond %{REQUEST_URI} ^/images<br />
RewriteRule ^.*$ - [L]<br />
RewriteCond %{REQUEST_FILENAME} \.(jpg|gif|bmp|zip|rar|mp3|txt|png|wma|wmv)$ [NC]<br />
RewriteCond %{HTTP_REFERER} !^$<br />
RewriteCond %{HTTP_REFERER} !^$ [NC]<br />
RewriteCond %{HTTP_REFERER} !www.laoyao.me [NC]<br />
RewriteCond %{HTTP_REFERER} !laoyao.me [NC]<br />
RewriteCond %{HTTP_REFERER} !www.zhuaxia.com [NC]<br />
RewriteCond %{HTTP_REFERER} !www.google.com [NC]<br />
RewriteCond %{HTTP_REFERER} !google.com [NC]<br />
RewriteCond %{HTTP_REFERER} !www.google.com.hk [NC]<br />
RewriteCond %{HTTP_REFERER} !google.com.hk [NC]<br />
RewriteCond %{HTTP_REFERER} !www.google.cn [NC]<br />
RewriteCond %{HTTP_REFERER} !google.cn [NC]<br />
RewriteCond %{HTTP_REFERER} !www.baidu.com [NC]<br />
RewriteCond %{HTTP_REFERER} !www.baidu.cn [NC]<br />
RewriteCond %{HTTP_REFERER} !baidu.com [NC]<br />
RewriteCond %{HTTP_REFERER} !baidu.cn [NC]<br />
RewriteCond %{HTTP_REFERER} !bloglines.com [NC]<br />
RewriteCond %{HTTP_REFERER} !www.ask.com [NC]<br />
RewriteCond %{HTTP_REFERER} !www.163.com [NC]<br />
RewriteCond %{HTTP_REFERER} !www.yahoo.com [NC]<br />
RewriteCond %{HTTP_REFERER} !www.sogou.com [NC]<br />
RewriteCond %{HTTP_REFERER} !www.soso.com [NC]<br />
RewriteCond %{HTTP_REFERER} !www.sina.com.cn [NC]<br />
RewriteCond %{HTTP_REFERER} !www.msn.com [NC]<br />
RewriteCond %{HTTP_REFERER} !www.feedsky.com [NC]<br />
RewriteCond %{HTTP_REFERER} !www.feedburner.com [NC]<br />
RewriteRule (.*) /images/error.gif [R,NC,L]特别域名</strong></p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">RewriteEngine on<br />
RewriteCond %{HTTP_REFERER} ^http://([^/]+\.)?baddomain1\.com [NC,OR]<br />
RewriteCond %{HTTP_REFERER} ^http://([^/]+\.)?baddomain2\.com [NC,OR]<br />
RewriteCond %{HTTP_REFERER} ^http://([^/]+\.)?baddomain3\.com [NC]<br />
RewriteRule \.(gif|jpg)$ http://www.example.com/hotlink.gif [R,L]</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">非特别域名</strong></p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">RewriteEngine on<br />
RewriteCond %{HTTP_REFERER} !^$<br />
RewriteCond %{HTTP_REFERER} !^http://(www\.)?example.com/.*$ [NC]<br />
RewriteRule \.(gif|jpg)$ http://www.example.com/hotlink.gif [R,L]</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">除非 example.com有这个图片，浏览器才能看到hotlink.gif.<br />
注意：Hotlink热链保护使用 .htaccess 依赖客户端在http GET请求中发送正确的&rdquo;提交&rdquo;值。像尝试使用Windows Media Player发送空白的提交到.htaccess 来保护电影档案是无效的。</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">禁止.htaccess文件被查看<br />
在<a style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; color: rgb(164,0,0); border-left-style: none; text-decoration: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial" href="http://zzsa.net/">.htaccess</a>文件中加入如下代码就可以禁止别人访问你的.htaccess文件：</p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">&lt;Files .htaccess&gt;<br />
order allow,deny<br />
deny from all<br />
&lt;/Files&gt;</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">这个网上的大部分版本都有错误，大部分版本丢掉了&lt;Files .htaccess&gt; ，结果导致所有文件都被禁止访问。如果用了错误的规则，所有内容都将无法访问。</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">同样道理，如果要禁止其他文件的访问，用其他文件名替换就可以了。</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">2..htaccess 虚拟主机的妙用</strong></p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">.htaccess文件(或者&rdquo;分布式配置文件&rdquo;提供了针对目录改变配置的方法， 即，在一个特定的文档目录中放置一个包含一个或多个指令的文件， 以作用于此目录及其所有子目录。[1]作为用户，所能使用的命令受到限制。管理员可以通过<a style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; color: rgb(164,0,0); border-left-style: none; text-decoration: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial" href="http://zzsa.net/">Apache</a>的AllowOverride指令来设置。</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">- 子目录中的指令会覆盖更高级目录或者主服务器配置文件中的指令。</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">- .htaccess必须以ASCII模式上传，最好将其权限设置为644。</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">错误文档的定位</p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">常用的客户端请求错误返回代码：<br />
401 Authorization Required<br />
403 Forbidden<br />
404 Not Found<br />
405 Method Not Allowed<br />
408 Request Timed Out<br />
411 Content Length Required<br />
412 Precondition Failed<br />
413 Request Entity Too Long<br />
414 Request URI Too Long<br />
415 Unsupported Media Type<br />
常见的服务器错误返回代码：<br />
500 Internal Server Error</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">用户可以利用.htaccess指定自己事先制作好的错误提醒页面。一般情况下，人们可以专门设立一个目录，例如errors放置这些页面。然后再.htaccess中，加入如下的指令：</p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">ErrorDocument 404 /errors/notfound.html<br />
ErrorDocument 500 /errors/internalerror.html</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">一条指令一行。上述第一条指令的意思是对于404，也就是没有找到所需要的文档的时候得显示页面为/errors目录下的notfound.html页面。不难看出语法格式为：</p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">ErrorDocument 错误代码 /目录名/文件名.扩展名</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">如果所需要提示的信息很少的话，不必专门制作页面，直接在指令中使用HTML号了，例如下面这个例子：</p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">ErrorDocument 401 &ldquo;<br />
你没有权限访问该页面，请放弃！<br />
&rdquo;</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">文档访问的密码保护</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">要利用.htaccess对某个目录下的文档设定访问用户和对应的密码，首先要做的是生成一个.htpasswd的文本文档，例如：</p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">zheng:y4E7Ep8e7EYV</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">这里密码经过加密，用户可以自己找些工具将密码加密成.htaccess支持的编码。该文档最好不要放在www目录下，建议放在www根目录文档之外，这样更为安全些。</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">有了授权用户文档，可以在.htaccess中加入如下指令了：</p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">AuthUserFile .htpasswd的服务器目录<br />
AuthGroupFile /dev/null （需要授权访问的目录）<br />
AuthName EnterPassword<br />
AuthType Basic （授权类型）</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">require user wsabstract （允许访问的用户，如果希望表中所有用户都允许，可以使用 require valid-user）</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">注，括号部分为学习时候自己添加的注释</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">拒绝来自某个IP的访问</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">如果我不想某个政府部门访问到我的站点的内容，那可以通过.htaccess中加入该部门的IP而将它们拒绝在外。</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">例如：</p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">order allow,deny<br />
deny from 210.10.56.32<br />
deny from 219.5.45.<br />
allow from all</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">第二行拒绝某个IP，第三行拒绝某个IP段，也就是219.5.45.0~219.2.45.255</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">想要拒绝所有人？用deny from all好了。不止用IP，也可以用域名来设定。</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">保护.htaccess文档</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">在使用.htaccess来设置目录的密码保护时，它包含了密码文件的路径。从安全考虑，有必要把.htaccess也保护起来，不让别人看到其中的内容。虽然可以用其他方式做到这点，比如文档的权限。不过，.htaccess本身也能做到，只需加入如下的指令：</p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">order allow,deny<br />
deny from all</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">URL转向</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">我们可能对网站进行重新规划，将文档进行了迁移，或者更改了目录。这时候，来自搜索引擎或者其他网站链接过来的访问就可能出错。这种情况下，可以通过如下指令来完成旧的URL自动转向到新的地址：</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">Redirect /旧目录/旧文档名 新文档的地址</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">或者整个目录的转向：</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">Redirect 旧目录 新目录</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">改变缺省的首页文件</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">一般情况下缺省的首页文件名有default、index等。不过，有些时候目录中没有缺省文件，而是某个特定的文件名，比如在pmwiki中是pmwiki.php。这种情况下，要用户记住文件名来访问很麻烦。在.htaccess中可以轻易的设置新的缺省文件名：</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">DirectoryIndex 新的缺省文件名</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">也可以列出多个，顺序表明它们之间的优先级别，例如：</p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">DirectoryIndex filename.html index.cgi index.pl default.htm</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">防止盗链</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">如果不喜欢别人在他们的网页上连接自己的图片、文档的话，也可以通过htaccess的指令来做到。</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">所需要的指令如下：</p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">RewriteEngine on<br />
RewriteCond %{ HTTP_REFERER } !^$<br />
RewriteCond %{ HTTP_REFERER } !^http://(www.)?mydomain.com/.*$ [NC]<br />
RewriteRule .(gif&amp;line;jpg)$ - [F]</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">如果觉得让别人的页面开个天窗不好看，那可以用一张图片来代替：</p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">RewriteEngine on<br />
RewriteCond %{ HTTP_REFERER } !^$<br />
RewriteCond %{ HTTP_REFERER } !^http://(www.)?mydomain.com/.*$ [NC]</p>
</blockquote>
<h2 style="border-bottom-style: none; padding-bottom: 0px; line-height: 22px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; font-variant: normal; font-style: normal; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">3.htaccess重写让空间绑定多个域名到不同的目录支持多站点</h2>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">、.htaccess代码如下，注意你可能需要作一些调整和修改，注释我已经写在旁边了。PS：我的Godaddy的空间原来的域名是baidu0.tk，我利用.htaccess重写将另一个域名0baidu.tk绑定到另外一个目录当中，这样我利用Godaddy经济型空间建立了多个网站（原来是不具备这个功能的）。</p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<ul style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">
    <li style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">&lt;IfModule mod_rewrite.c&gt;<br />
    # 关闭目录列表<br />
    Options -Indexes<br />
    RewriteEngine on<br />
    # 预设页面<br />
    DirectoryIndex default.html index.html default.html index.htm default.php index.php<br />
    # 统一网址，去掉www。如果你想保留www，自己在第二行添加<br />
    RewriteCond %{HTTP_HOST} ^0baidu.tk[NC]<br />
    RewriteRule ^(.*)$ http://0baidu.tk/$1 [L,R=301]<br />
    # 将域名绑定在特定的目录当中。0baiud.tk是我建立的文件目录<br />
    RewriteCond %{HTTP_HOST} ^(www.)?0baidu.tk$ [NC]<br />
    RewriteRule ^(.*)$ /0baidu.tk/$1 [L]<br />
    &lt;/IfModule&gt;</li>
</ul>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&nbsp;</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">再将下面的代码按照上面的方法保存为.htaccess，上传到你想要将域名绑定的目录文件夹当中，例如我想将0baidu.tk这个域名绑定在0baidu.tk这个文件夹当中，那么我用FTP新建了0baidu.tk文件夹，将.htaccess文件放在这里。</strong></p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">&lt;IfModule mod_rewrite.c&gt;<br />
RewriteEngine on<br />
RewriteBase /0baidu.tk/<br />
&lt;/IfModule&gt;</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">完成以上步骤后，我们就已经成功利用.htaccess重写在Godaddy经济型号的空间上建立起了多个域名多个站点了，如果你以后想建立三个站，甚至更多的站，按照上面的方法，选择绑定好域名，然后添加.htaccess语句即可。</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">1. 使用.htaccess 创建自定义的出错页面。对于Linux Apache来说这是一项极其简单的事情。使用下面的.htaccess语法你可以轻松的完成这一功能。（把.htaccess放在你的网站根目录下）</strong></p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">ErrorDocument 401 /error/401.php<br />
ErrorDocument 403 /error/403.php<br />
ErrorDocument 404 /error/404.php<br />
ErrorDocument 500 /error/500.php</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">2. 设置网站的时区</strong></p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">SetEnv TZ America/Houston</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">3. 阻止IP列表</strong><br />
有些时候，你需要以IP地址的方式阻止一些访问。无论是对于一个IP地址还是一个网段，这都是一件非常简单的事情，如下所示：</p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">allow from all<br />
deny from 145.186.14.122<br />
deny from 124.15</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">Apache对于被拒绝的IP会返回403错误。</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">4. 把一些老的链接转到新的链接上&mdash;&mdash;搜索引擎优化SEO</strong></p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">Redirect 301 /d/file.html http://www.htaccesselite.com/r/file.html</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">5. 为服务器管理员设置电子邮件。</strong></p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">ServerSignature EMail<br />
SetEnv SERVER_ADMIN default@domain.com</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">6. 使用.htaccess 访止盗链。如果你网站上的一个图片被别的N多的网站引用了，那么，这很有可能会导致你服务器的性能下降，使用下面的代码可以保护某些热门的链接不被过多的引用。</strong></p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">Options +FollowSymlinks<br />
# Protect Hotlinking<br />
RewriteEngine On<br />
RewriteCond %{HTTP_REFERER} !^$<br />
RewriteCond %{HTTP_REFERER} !^http://(www.)?domainname.com/ [nc]<br />
RewriteRule .*.(gif|jpg|png)$ http://domainname.com/img/hotlink_f_o.png [nc]</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">7. 阻止 User Agent 的所有请求</strong></p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">## .htaccess Code :: BEGIN<br />
## Block Bad Bots by user-Agent<br />
SetEnvIfNoCase user-Agent ^FrontPage [NC,OR]<br />
SetEnvIfNoCase user-Agent ^Java.* [NC,OR]<br />
SetEnvIfNoCase user-Agent ^Microsoft.URL [NC,OR]<br />
SetEnvIfNoCase user-Agent ^MSFrontPage [NC,OR]<br />
SetEnvIfNoCase user-Agent ^Offline.Explorer [NC,OR]<br />
SetEnvIfNoCase user-Agent ^[Ww]eb[Bb]andit [NC,OR]<br />
SetEnvIfNoCase user-Agent ^Zeus [NC]</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">Order Allow,Deny<br />
Allow from all<br />
Deny from env=bad_bot</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">## .htaccess Code :: END</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">8. 把某些特殊的IP地址的请求重定向到别的站点</strong></p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">ErrorDocument 403 http://www.youdomain.com<br />
Order deny,allow<br />
Deny from all<br />
Allow from ip<br />
Allow from ip</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">9. 直接找开文件而不是下载 &ndash; 通常，我们打开网上文件的时候总是会出现一个对话框问我们是下载还是直接打开，使用下面的设置就不会出现这个问题了，直接打开</strong>。</p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">AddType application/octet-stream .pdf<br />
AddType application/octet-stream .zip<br />
AddType application/octet-stream .mov</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">10. 修改文件类型 &ndash; 下面的示例可以让任何的文件都成为PHP那么被服务器解释。比如：myphp, cgi，phtml等。</strong></p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">ForceType application/x-httpd-php<br />
SetHandler application/x-httpd-php</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">11. 阻止存取.htaccess 文件</strong></p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial"># secure htaccess file<br />
order allow,deny<br />
deny from all</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">12. 保护服务器上的文件被存取</strong></p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial"># prevent access of a certain file order allow,deny<br />
deny from all</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">13. 阻止目录浏览</strong></p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial"># disable directory browsing<br />
Options All -Indexes</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">14. 设置默认主页</strong></p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial"># serve alternate default index page<br />
DirectoryIndex about.html</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">15. 口令认证 &ndash; 你可以创建一个文件用于认证。下面是一个示例：</strong></p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial"># to protect a file</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">AuthType Basic<br />
AuthName &ldquo;Prompt&rdquo;<br />
AuthUserFile /home/path/.htpasswd<br />
Require valid-user</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial"># password-protect a directory<br />
resides<br />
AuthType basic<br />
AuthName &ldquo;This directory is protected&rdquo;<br />
AuthUserFile /home/path/.htpasswd<br />
AuthGroupFile /dev/null<br />
Require valid-user</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">16. 把老的域名转像新的域&lt;实现反向代理&gt;</strong></p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial"># redirect from old domain to new domain<br />
RewriteEngine On<br />
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">17.利用.htaccess绑定域名到子目录</strong></p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">前提</strong><br />
首先得把域名绑定绑定了，比如把dev.ccvita.com解析到211.136.108.190这个IP<br />
其次是在网站管理面板里，为网站绑定dev.ccvita.com<br />
最后编辑配置.htaccess文件，就可以了。如果没有开启.htaccess请访问下面的内容</p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">.htaccess文件内容</strong><br />
RewriteEngine on<br />
# 把 ccvita.com 改为你要绑定的域名.<br />
RewriteCond %{HTTP_HOST} ^(www.)?ccvita.com$</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial"># 把 subfolder 改为要绑定的目录.<br />
RewriteCond %{REQUEST_URI} !^/subfolder/</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial"># 不要改以下两行.<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial"># 把 dev 改为要绑定的目录.<br />
RewriteRule ^(.*)$ /dev/$1</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial"># 把 ccvita.com 改为你要绑定的域名<br />
# 把 dev 改为要绑定的目录.<br />
# dev/ 后面是首页文件index.php, index.html<br />
RewriteCond %{HTTP_HOST} ^(www.)?ccvita.com$<br />
RewriteRule ^(/)?$ dev/index.php [L]</p>
</blockquote>
<h2 style="border-bottom-style: none; padding-bottom: 0px; line-height: 22px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; font-variant: normal; font-style: normal; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">18.修改 .htaccess 实现 301 重定向</h2>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">出于 SEO、PR 值传递、网址转换的目的，在网站初建和网站迁移时我们都需要使用 301 重定向，通常包括域名对域名，目录对目录和一个独立网址对另一个独立网址的重定向。在虚拟主机上作 301 重定向，最常用的方法有2种：</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">1.直接编辑 .htaccess。</strong></p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">2.用 cPanel 设定。</strong></p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">实质二者都是修改文件 .htaccess，只是前者手工编辑，后者是由 cPanel 完成。用 cPanel 操作相当简单，登陆你的 cPanel&ndash;&gt;Domain&ndash;&gt;Redirects，选择相应的选项即可完成设置，这里暂不讨论。下面讲一下直接编辑 .htaccess 的方法。</p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">注意：在设置 301 重定向之前务必备份相应目录下的.htaccess文件。</strong></p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">1.重定向domain.com到www.domain.com</strong></p>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">这种重定向旨在使域名唯一，是网站SEO必须要做的，后面重定向www.domain.com到domain.com也是出于同样的原因，只是形式不同。打开.htaccess文件，加入以下规则。(下面的规则是针对主域名的，子域名要修改)</p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">RewriteEngine On<br />
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]<br />
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">2.重定向www.domain.com到domain.com</strong></p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">RewriteEngine On<br />
RewriteCond %{HTTP_HOST} !^domain.com$ [NC]<br />
RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301]</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">3.重定向olddomain.com到www.newdomain.com</strong></p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">RewriteEngine On<br />
RewriteCond %{HTTP_HOST} !olddomain.com$ [NC]<br />
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [L,R=301]</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">4.重定向olddomain.com to newdomain.com</strong></p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{HTTP_HOST} !olddomain.com$ [NC]<br />
RewriteRule ^(.*)$ http://newdomain.com/$1 [L,R=301]</p>
</blockquote>
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 26px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/22px 微软雅黑; white-space: normal; orphans: 2; border-top-style: none; letter-spacing: normal; color: rgb(34,34,34); border-left-style: none; word-spacing: 0px; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">5.重定向domain.com/file/file.php 到 otherdomain.com/otherfile/other.php</strong></p>
<blockquote style="background-image: url(http://m.zzsa.net/wp-content/themes/forigi2/images/quote.png); border-bottom-style: none; border-left: rgb(21,132,201) 5px solid; padding-bottom: 15px; overflow-x: hidden; overflow-y: hidden; border-right-style: none; widows: 2; text-transform: none; background-color: rgb(255,255,255); list-style-type: none; text-indent: 0px; margin: 0px auto; padding-left: 10px; width: 584px; padding-right: 10px; font: 15px/24px 微软雅黑; white-space: normal; background-position: 100% 0%; orphans: 2; letter-spacing: normal; color: rgb(255,255,255); border-top: rgb(21,132,201) 2px solid; word-spacing: 0px; padding-top: 15px; background-origin: initial; background-clip: initial; border-image: initial; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<p style="border-bottom-style: none; padding-bottom: 0px; border-right-style: none; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 微软雅黑; border-top-style: none; border-left-style: none; padding-top: 0px; background-origin: initial; background-clip: initial; border-image: initial">RewriteCond %{HTTP_HOST} ^www.domain.com$<br />
RewriteRule ^file/file.php$ http://www.otherdomain.com/otherfile/other.php [R=301,L]</p>
</blockquote>]]></description>
			<link>http://blog.xreacn.com/?action=show&amp;id=1853</link>
			<category domain="http://blog.xreacn.com/?cid=16">站点建设</category>
			<pubDate>2012-02-17 22:36</pubDate>
		</item>
		<item>
			<guid>http://blog.xreacn.com/?action=show&amp;id=1848</guid>
			<title>免费.edu邮箱</title>
			<author>xreacn</author>
			<description><![CDATA[<p><span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/21px Tahoma, Helvetica, SimSun, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">1. 注册地址 https://eims.maricopa.edu/MAW/MAW.html</span><br style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, Helvetica, SimSun, sans-serif; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" />
<span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/21px Tahoma, Helvetica, SimSun, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">2. 选则 &quot;I am a new student and have never attended any Maricopa Community College or Skill Centers.&quot;</span><br style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, Helvetica, SimSun, sans-serif; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" />
<span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/21px Tahoma, Helvetica, SimSun, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">3. 去 http://zh-cn.fakenamegenerator.com/advanced.php生成一个美国人的信息</span><br style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, Helvetica, SimSun, sans-serif; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" />
<span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/21px Tahoma, Helvetica, SimSun, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">4. 完成注册</span><br style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, Helvetica, SimSun, sans-serif; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" />
<span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/21px Tahoma, Helvetica, SimSun, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">5. 登陆地址&nbsp;&nbsp;http://mail.google.com/a/maricopa.edu</span></p>]]></description>
			<link>http://blog.xreacn.com/?action=show&amp;id=1848</link>
			<category domain="http://blog.xreacn.com/?cid=16">站点建设</category>
			<pubDate>2012-01-11 14:10</pubDate>
		</item>
		<item>
			<guid>http://blog.xreacn.com/?action=show&amp;id=1833</guid>
			<title>免费VPN服务搭建软体以及配套网站源码</title>
			<author>xreacn</author>
			<description><![CDATA[<p>注： 未经作者允许，不方便提供下载，所以程序设置了压缩密码，请见谅</p>
<p>软体使用教程</p>
<p>需要已经在2003/2008里架设好路由与远程访问，具体怎么架请百度。</p>
<p>编辑user.conf文件，填写你的windows用于vpn拨号的用户，请不要填写administrator，因为密码会随机生成并替换掉原登录密码<br />
编辑time.conf文件，填写重新生成vpn连接密码的时间，单位（分）<br />
编辑ip.conf文件，填写vpn分配的ip地址池的开始ip段和结束ip段<br />
编辑key.conf文件，填写与PHP文件通讯的随机key。<br />
编辑port.conf文件，填写与PHP文件通讯的端口。</p>
<p>user.conf time.conf ip.conf key.conf port.conf ivpn.exe&nbsp; 单独放在一个目录运行在开启RRAS的VPS/服务器上。</p>
<p>注意：这不是VPN服务端，iVPN.exe软体只能运行在 2003/2008上，运行后没有界面，如果配置有错误则会用messagebox提示，如需要终止请直接结束进程。</p>
<p>很难用，很麻烦，仅供尝鲜使用，折腾帝使用，如果有任何问题请不要联系我解决，谢谢。</p>
<p>编程/建站/AV 交流群：3398599</p>
<p>&nbsp;</p><br /><br /><b>附件: </b><a href="http://blog.xreacn.com/attachment.php?id=17" target="_blank">vpn.zip</a> (99.89 K, 下载次数:12)]]></description>
			<link>http://blog.xreacn.com/?action=show&amp;id=1833</link>
			<category domain="http://blog.xreacn.com/?cid=16">站点建设</category>
			<pubDate>2011-10-27 18:29</pubDate>
		</item>
		<item>
			<guid>http://blog.xreacn.com/?action=show&amp;id=1829</guid>
			<title>box.net提供50G的存储空间</title>
			<author>xreacn</author>
			<description><![CDATA[<p><img border="0" alt="" src="http://www.xreacn.com/images/smiles/cry.gif" />&nbsp;前几天没抢到魔垫。。 现在小小的安慰了下</p>
<p>老牌免费空间 Box.net 为了迎战来势汹汹的 iCloud，现在推出了永久免费空间 50GB 的优惠，同时单档上传限制将会从原本的 25MB 提升到 100MB。</p>
<p><img border="0" alt="" src="http://img.cnbeta.com/upimg/111014/Mowd_173913125377361_small.png" /><br />
<br />
只要在 iPhone、iPad 或是 iPod Touch 下载 Box.net app，注册并登入就可以得到啰。<br />
不过这么好康的讯息也不是一直都有，活动期限只到今年的十二月二号就会结束了。<br />
手上有 iOS 设备的人可以去注册看看，毕竟免费 50GB 空间不用白不用啰。</p>]]></description>
			<link>http://blog.xreacn.com/?action=show&amp;id=1829</link>
			<category domain="http://blog.xreacn.com/?cid=16">站点建设</category>
			<pubDate>2011-10-14 14:52</pubDate>
		</item>
		<item>
			<guid>http://blog.xreacn.com/?action=show&amp;id=1796</guid>
			<title>PHP空间下通过wget远程获取文件</title>
			<author>xreacn</author>
			<description><![CDATA[<p>记得 phpspy2008 上有这个功能</p>
<p>&nbsp;</p>
<div class="codeText">
<div class="codeHead">XML/HTML代码</div>
<ol class="dp-xml">
    <li class="alt"><span><span class="tag">&lt;?</span><span class="tag-name">php</span><span>&nbsp;&nbsp;</span></span></li>
    <li><span>$</span><span class="attribute">file</span><span>=</span><span class="attribute-value">trim</span><span>($_POST['url']); &nbsp;&nbsp;</span></li>
    <li class="alt"><span>exec(&quot;wget&nbsp;$file&quot;) &nbsp;&nbsp;</span></li>
    <li><span class="tag">?&gt;</span><span>&nbsp;&nbsp;</span></li>
    <li class="alt"><span class="tag">&lt;</span><span class="tag-name">form</span><span>&nbsp;</span><span class="attribute">action</span><span>=</span><span class="attribute-value">&quot;&quot;</span><span>&nbsp;</span><span class="attribute">method</span><span>=</span><span class="attribute-value">post</span><span class="tag">&gt;</span><span class="tag">&lt;</span><span class="tag-name">input</span><span>&nbsp;&nbsp;</span><span class="attribute">name</span><span>=</span><span class="attribute-value">&quot;url&quot;</span><span>&nbsp;</span><span class="attribute">type</span><span>=</span><span class="attribute-value">&quot;text&quot;</span><span>&nbsp;</span><span class="attribute">value</span><span>=</span><span class="attribute-value">&quot;&quot;</span><span class="tag">&gt;</span><span class="tag">&lt;</span><span class="tag-name">input</span><span>&nbsp;&nbsp;</span><span class="attribute">type</span><span>=</span><span class="attribute-value">&quot;submit&quot;</span><span>&nbsp;</span><span class="attribute">value</span><span>=</span><span class="attribute-value">&quot;OK&quot;</span><span class="tag">&gt;</span><span class="tag">&lt;/</span><span class="tag-name">form</span><span class="tag">&gt;</span><span>&nbsp;&nbsp;</span></li>
    <li><span>&nbsp;&nbsp;</span></li>
</ol>
</div>]]></description>
			<link>http://blog.xreacn.com/?action=show&amp;id=1796</link>
			<category domain="http://blog.xreacn.com/?cid=16">站点建设</category>
			<pubDate>2011-09-10 14:00</pubDate>
		</item>
		<item>
			<guid>http://blog.xreacn.com/?action=show&amp;id=1789</guid>
			<title>关于 Dropbox</title>
			<author>xreacn</author>
			<description><![CDATA[<p>DropBox 注册地址：<a target="_blank" href="http://db.tt/FQq31vu"><font color="#000000">http://db.tt/FQq31vu</font></a><br />
<br />
Edu信箱注册地址：<a href="https://domains.live.com/members/signup.aspx?domain=live.whut.edu.cn "><font color="#1982d1">https://domains.live.com/members/signup.aspx?domain=live.whut.edu.cn </font></a></p>
<p><a href="http://mail.hsit.edu.cn/php/report/osignup.php">http://mail.hsit.edu.cn/php/report/osignup.php</a></p>
<p>升级</p>
<p>1 登陆 <a href="https://www.dropbox.com/free">https://www.dropbox.com/free</a>，完成Dropbox的几个任务，一共可以获得768M空间</p>
<p>2 邀请他人，<a target="_blank" href="http://db.tt/FQq31vu"><font color="#000000">http://db.tt/FQq31vu</font></a>&nbsp;每人都可以获得500M空间</p>
<p>刷容量的两种办法</p>
<p>1 <a href="http://www.tolayu.com/2011/06/update-dropbox-free-invite/">http://www.tolayu.com/2011/06/update-dropbox-free-invite/</a></p>
<p>2 <a href="http://bbs.weiphone.com/read-htm-tid-718705.html">http://bbs.weiphone.com/read-htm-tid-718705.html</a></p>
<p>在VPS中安装Dropbox实现网站的实时备份内容：</p>
<div class="codeText">
<div class="codeHead">XML/HTML代码</div>
<ol class="dp-xml">
    <li class="alt"><span><span>1、登陆进VPS或者是服务器，进入用户目录 &nbsp;&nbsp;</span></span></li>
    <li><span>cd &nbsp;&nbsp;</span></li>
    <li class="alt"><span>&nbsp;&nbsp;</span></li>
    <li><span>2、下载dropbox的客户端，要For&nbsp;linux那个而非For&nbsp;Nautilus的 &nbsp;&nbsp;</span></li>
    <li class="alt"><span>wget&nbsp;-O&nbsp;dropbox.tar.gz&nbsp;http://www.dropbox.com/download?</span><span class="attribute">plat</span><span>=</span><span class="attribute-value">lnx</span><span>.x86 &nbsp;&nbsp;</span></li>
    <li><span>这个是32位的，64位就这样 &nbsp;&nbsp;</span></li>
    <li class="alt"><span>wget&nbsp;-O&nbsp;dropbox.tar.gz&nbsp;http://www.dropbox.com/download?</span><span class="attribute">plat</span><span>=</span><span class="attribute-value">lnx</span><span>.x86_64 &nbsp;&nbsp;</span></li>
    <li><span>&nbsp;&nbsp;</span></li>
    <li class="alt"><span>3、解压 &nbsp;&nbsp;</span></li>
    <li><span>tar&nbsp;xzvf&nbsp;dropbox.tar.gz &nbsp;&nbsp;</span></li>
    <li class="alt"><span>&nbsp;&nbsp;</span></li>
    <li><span>4、下载dbmakefilelib.py并运行 &nbsp;&nbsp;</span></li>
    <li class="alt"><span>wget&nbsp;http://dl.dropbox.com/u/637552/Dropbox/dbmakefilelib.py &nbsp;&nbsp;</span></li>
    <li><span>python&nbsp;dbmakefilelib.py &nbsp;&nbsp;</span></li>
    <li class="alt"><span>&nbsp;&nbsp;</span></li>
    <li><span>如果出现以下信息，说明它运行正常 &nbsp;&nbsp;</span></li>
    <li class="alt"><span>&nbsp;&nbsp;</span></li>
    <li><span>adding&nbsp;library&nbsp;libgtk-x11-2.0.so.0 &nbsp;&nbsp;</span></li>
    <li class="alt"><span>adding&nbsp;library&nbsp;libgdk-x11-2.0.so.0 &nbsp;&nbsp;</span></li>
    <li><span>adding&nbsp;library&nbsp;libatk-1.0.so.0 &nbsp;&nbsp;</span></li>
    <li class="alt"><span>adding&nbsp;library&nbsp;libgdk_pixbuf-2.0.so.0 &nbsp;&nbsp;</span></li>
    <li><span>adding&nbsp;library&nbsp;libpango-1.0.so.0 &nbsp;&nbsp;</span></li>
    <li class="alt"><span>adding&nbsp;library&nbsp;libgobject-2.0.so.0 &nbsp;&nbsp;</span></li>
    <li><span>adding&nbsp;library&nbsp;libgmodule-2.0.so.0 &nbsp;&nbsp;</span></li>
    <li class="alt"><span>adding&nbsp;library&nbsp;libgthread-2.0.so.0 &nbsp;&nbsp;</span></li>
    <li><span>adding&nbsp;library&nbsp;libglib-2.0.so.0 &nbsp;&nbsp;</span></li>
    <li class="alt"><span>adding&nbsp;function&nbsp;gtk_tree_view_new &nbsp;&nbsp;</span></li>
    <li><span>adding&nbsp;function&nbsp;gtk_toolbar_new &nbsp;&nbsp;</span></li>
    <li class="alt"><span>adding&nbsp;function&nbsp;g_threads_got_initialized &nbsp;&nbsp;</span></li>
    <li><span>adding&nbsp;function&nbsp;gtk_grab_remove &nbsp;&nbsp;</span></li>
    <li class="alt"><span>adding&nbsp;function&nbsp;gtk_button_new &nbsp;&nbsp;</span></li>
    <li><span>adding&nbsp;function&nbsp;gtk_frame_new &nbsp;&nbsp;</span></li>
    <li class="alt"><span>adding&nbsp;function&nbsp;gtk_major_version &nbsp;&nbsp;</span></li>
    <li><span>&hellip;&nbsp;lots&nbsp;more&nbsp;of&nbsp;this&nbsp;&hellip; &nbsp;&nbsp;</span></li>
    <li class="alt"><span>adding&nbsp;function&nbsp;g_static_rw_lock_writer_unlock &nbsp;&nbsp;</span></li>
    <li><span>adding&nbsp;function&nbsp;g_value_set_boxed_take_ownership &nbsp;&nbsp;</span></li>
    <li class="alt"><span>adding&nbsp;function&nbsp;g_boxed_type_register_static &nbsp;&nbsp;</span></li>
    <li><span>adding&nbsp;function&nbsp;g_datalist_clear &nbsp;&nbsp;</span></li>
    <li class="alt"><span>dropboxd&nbsp;ran&nbsp;for&nbsp;15&nbsp;seconds&nbsp;without&nbsp;quitting&nbsp;&ndash;&nbsp;success? &nbsp;&nbsp;</span></li>
    <li><span>&nbsp;&nbsp;</span></li>
    <li class="alt"><span>看到它的提示了吗，dropbox已经启动了，让你运行15秒后再退出，这个过程就是dropbox生成机器信息并保存到db文件的，其实对于国外的vps来说几秒时间就够了，我们ctrl－c将其退出，完成接下来的步骤 &nbsp;&nbsp;</span></li>
    <li><span>&nbsp;&nbsp;</span></li>
    <li class="alt"><span>5、进入dropbox的dot目录导出机器信息 &nbsp;&nbsp;</span></li>
    <li><span>$&nbsp;cd&nbsp;.~/.dropbox &nbsp;&nbsp;</span></li>
    <li class="alt"><span>$&nbsp;sqlite3&nbsp;dropbox.db &nbsp;&nbsp;</span></li>
    <li><span>&nbsp;&nbsp;</span></li>
    <li class="alt"><span>SQLite&nbsp;version&nbsp;3.6.22 &nbsp;&nbsp;</span></li>
    <li><span>Enter&nbsp;&quot;.help&quot;&nbsp;for&nbsp;instructions &nbsp;&nbsp;</span></li>
    <li class="alt"><span>Enter&nbsp;SQL&nbsp;statements&nbsp;terminated&nbsp;with&nbsp;a&nbsp;&quot;;&quot; &nbsp;&nbsp;</span></li>
    <li><span>sqlite</span><span class="tag">&gt;</span><span>&nbsp;.dump&nbsp;config &nbsp;&nbsp;</span></li>
    <li class="alt"><span>&nbsp;&nbsp;</span></li>
    <li><span>我们会在导出的信息中看到如下的一串字符 &nbsp;&nbsp;</span></li>
    <li class="alt"><span>&nbsp;&nbsp;</span></li>
    <li><span>INSERT&nbsp;INTO&nbsp;&quot;config&quot;&nbsp;VALUES(4,'host_id','</span><span class="attribute">VmQ0NWFlMTdmYmQ3OGYzMzgyOTM0NWMzN2Q1MGFkOTIzCnAxCi4</span><span>= &nbsp;&nbsp;</span></li>
    <li class="alt"><span>'); &nbsp;&nbsp;</span></li>
    <li><span>&nbsp;&nbsp;</span></li>
    <li class="alt"><span>这个host_id就是机器的唯一标识，我们需要用它来跟自己的账户进行匹配，不过在这之前还有个工作需要做，因为上面的那长串字符很明显可以看出是用base64编码后的结果，我们得先把它解码再说，注意这里dropbox耍了个小花招，这串字符串前面的那个&rdquo;V&ldquo;，是无用的，我们在解码后的把它忽略掉 &nbsp;&nbsp;</span></li>
    <li><span>&nbsp;&nbsp;</span></li>
    <li class="alt"><span>6、将base64字符串解码 &nbsp;&nbsp;</span></li>
    <li><span>$&nbsp;echo&nbsp;</span><span class="attribute">VmQ0NWFlMTdmYmQ3OGYzMzgyOTM0NWMzN2Q1MGFkOTIzCnAxCi4</span><span>=&nbsp;｜&nbsp;base64&nbsp;-d &nbsp;&nbsp;</span></li>
    <li class="alt"><span>&nbsp;&nbsp;</span></li>
    <li><span>Vd45ae17fbd78f33829345c37d50ad923 &nbsp;&nbsp;</span></li>
    <li class="alt"><span>p1 &nbsp;&nbsp;</span></li>
    <li><span>我的结果是Vd45ae17fbd78f33829345c37d50ad923，忽略掉&rdquo;V&ldquo;，就是d45ae17fbd78f33829345c37d50ad923 &nbsp;&nbsp;</span></li>
    <li class="alt"><span>&nbsp;&nbsp;</span></li>
    <li><span>补充： &nbsp;&nbsp;</span></li>
    <li class="alt"><span>如果你觉得上面的步骤麻烦，我写了个python脚本，可以直接解出真正的host_id &nbsp;&nbsp;</span></li>
    <li><span>&nbsp;&nbsp;</span></li>
    <li class="alt"><span>try: &nbsp;&nbsp;</span></li>
    <li><span>&nbsp;&nbsp;&nbsp;&nbsp;from&nbsp;sqlite3&nbsp;import&nbsp;dbapi2&nbsp;as&nbsp;sqlite &nbsp;&nbsp;</span></li>
    <li class="alt"><span>except: &nbsp;&nbsp;</span></li>
    <li><span>&nbsp;&nbsp;&nbsp;&nbsp;from&nbsp;pysqlite2&nbsp;import&nbsp;dbapi2&nbsp;as&nbsp;sqlite &nbsp;&nbsp;</span></li>
    <li class="alt"><span>import&nbsp;os,pickle,base64 &nbsp;&nbsp;</span></li>
    <li><span class="attribute">db_path</span><span>&nbsp;=&nbsp;</span><span class="attribute-value">os</span><span>.path.expanduser('~/.dropbox/dropbox.db') &nbsp;&nbsp;</span></li>
    <li class="alt"><span class="attribute">conn</span><span>&nbsp;=&nbsp;</span><span class="attribute-value">sqlite</span><span>.connect(db_path) &nbsp;&nbsp;</span></li>
    <li><span class="attribute">cur</span><span>&nbsp;=&nbsp;</span><span class="attribute-value">conn</span><span>.cursor() &nbsp;&nbsp;</span></li>
    <li class="alt"><span class="attribute">row</span><span>&nbsp;=&nbsp;</span><span class="attribute-value">cur</span><span>.execute('SELECT&nbsp;value&nbsp;from&nbsp;config&nbsp;where&nbsp;</span><span class="attribute">key</span><span>&nbsp;=&nbsp;</span><span class="attribute-value">&quot;host_id&quot;</span><span>').fetchone() &nbsp;&nbsp;</span></li>
    <li><span>print&nbsp;pickle.loads(base64.b64decode(row[0])) &nbsp;&nbsp;</span></li>
    <li class="alt"><span>&nbsp;&nbsp;</span></li>
    <li><span>7、将账户信息与机器信息绑定 &nbsp;&nbsp;</span></li>
    <li class="alt"><span>这步很简单，只需要访问以下网址，并登陆 &nbsp;&nbsp;</span></li>
    <li><span>HOSTID替换成你刚才解码出来的那串字符就行了 &nbsp;&nbsp;</span></li>
    <li class="alt"><span>https://www.dropbox.com/cli_link?</span><span class="attribute">host_id</span><span>=</span><span class="attribute-value">HOSTID</span><span>&nbsp;&nbsp;</span></li>
    <li><span>&nbsp;&nbsp;</span></li>
    <li class="alt"><span>8、建立dropbox的同步目录 &nbsp;&nbsp;</span></li>
    <li><span>dropbox的同步目录默认的是~/Dropbox &nbsp;&nbsp;</span></li>
    <li class="alt"><span>$&nbsp;mkdir&nbsp;~/Dropbox &nbsp;&nbsp;</span></li>
    <li><span>&nbsp;&nbsp;</span></li>
    <li class="alt"><span>9、运行，开始你的同步 &nbsp;&nbsp;</span></li>
    <li><span>$&nbsp;~/.dropbox-dist/dropboxd&nbsp;&amp; &nbsp;&nbsp;</span></li>
    <li class="alt"><span>到这里dropbox就可以正常运行并同步了，文章标题说的是备份网站数据，那么我们就来使我们的网站数据能够同步到dropbox服务器上 &nbsp;&nbsp;</span></li>
    <li><span>其实很简单，就是建立符号连接而已，windows之前是没有这个功能的 &nbsp;&nbsp;</span></li>
    <li class="alt"><span>比如要备份/var/www这个目录 &nbsp;&nbsp;</span></li>
    <li><span>cd&nbsp;~/Dropbox &nbsp;&nbsp;</span></li>
    <li class="alt"><span>$&nbsp;ln&nbsp;-s&nbsp;/var/www&nbsp;web_backup &nbsp;&nbsp;</span></li>
    <li><span>这就可以了,或者要备份/etc目录 &nbsp;&nbsp;</span></li>
    <li class="alt"><span>$&nbsp;cd&nbsp;~/Dropbox &nbsp;&nbsp;</span></li>
    <li><span>$&nbsp;ln&nbsp;-s&nbsp;/etc&nbsp;etc_backup &nbsp;&nbsp;</span></li>
    <li class="alt"><span>ok.发挥你的想象尽情的使用吧。&nbsp;&nbsp;</span></li>
</ol>
</div>
<p>下面是备份脚本</p>
<p>&nbsp;</p>
<div class="codeText">
<div class="codeHead">XML/HTML代码</div>
<ol class="dp-xml">
    <li class="alt"><span><span>#!/bin/bash &nbsp;&nbsp;</span></span></li>
    <li><span>###&nbsp;MySQL&nbsp;Server&nbsp;Login&nbsp;Info&nbsp;### &nbsp;&nbsp;</span></li>
    <li class="alt"><span class="attribute">MUSER</span><span>=</span><span class="attribute-value">&quot;root&quot;</span><span>&nbsp;&nbsp;</span></li>
    <li><span class="attribute">MPASS</span><span>=</span><span class="attribute-value">&quot;mysqlpassword&quot;</span><span>&nbsp;&nbsp;</span></li>
    <li class="alt"><span class="attribute">MHOST</span><span>=</span><span class="attribute-value">&quot;localhost&quot;</span><span>&nbsp;&nbsp;</span></li>
    <li><span class="attribute">MYSQL</span><span>=</span><span class="attribute-value">&quot;/usr/local/mysql/bin/mysql&quot;</span><span>&nbsp;&nbsp;</span></li>
    <li class="alt"><span class="attribute">MYSQLDUMP</span><span>=</span><span class="attribute-value">&quot;/usr/local/mysql/bin/mysqldump&quot;</span><span>&nbsp;&nbsp;</span></li>
    <li><span class="attribute">BAK</span><span>=</span><span class="attribute-value">&quot;/root/Dropbox/Data/Database&quot;</span><span>&nbsp;&nbsp;</span></li>
    <li class="alt"><span class="attribute">GZIP</span><span>=</span><span class="attribute-value">&quot;/bin/gzip&quot;</span><span>&nbsp;&nbsp;</span></li>
    <li><span>###&nbsp;FTP&nbsp;SERVER&nbsp;Login&nbsp;info&nbsp;### &nbsp;&nbsp;</span></li>
    <li class="alt"><span class="attribute">FTPU</span><span>=</span><span class="attribute-value">&quot;user&quot;</span><span>&nbsp;&nbsp;</span></li>
    <li><span class="attribute">FTPP</span><span>=</span><span class="attribute-value">&quot;password&quot;</span><span>&nbsp;&nbsp;</span></li>
    <li class="alt"><span class="attribute">FTPS</span><span>=</span><span class="attribute-value">&quot;backup.server.ip&quot;</span><span>&nbsp;&nbsp;</span></li>
    <li><span class="attribute">NOW</span><span>=$(date&nbsp;+&quot;%Y-%m-%d&quot;) &nbsp;&nbsp;</span></li>
    <li class="alt"><span>&nbsp;&nbsp;</span></li>
    <li><span>#[&nbsp;!&nbsp;-d&nbsp;$BAK&nbsp;]&nbsp;&amp;&amp;&nbsp;mkdir&nbsp;-p&nbsp;$BAK&nbsp;||&nbsp;/bin/rm&nbsp;-f&nbsp;$BAK/* &nbsp;&nbsp;</span></li>
    <li class="alt"><span>[&nbsp;!&nbsp;-d&nbsp;$BAK&nbsp;]&nbsp;&amp;&amp;&nbsp;mkdir&nbsp;-p&nbsp;$BAK &nbsp;&nbsp;</span></li>
    <li><span>&nbsp;&nbsp;</span></li>
    <li class="alt"><span class="attribute">DBS</span><span>=</span><span class="attribute-value">&quot;$($MYSQL&nbsp;-u&nbsp;$MUSER&nbsp;-h&nbsp;$MHOST&nbsp;-p$MPASS&nbsp;-Bse&nbsp;'show&nbsp;databases')&quot;</span><span>&nbsp;&nbsp;</span></li>
    <li><span>for&nbsp;db&nbsp;in&nbsp;$DBS &nbsp;&nbsp;</span></li>
    <li class="alt"><span>do &nbsp;&nbsp;</span></li>
    <li><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="attribute">FILE</span><span>=$BAK/$db.$NOW.gz &nbsp;&nbsp;</span></li>
    <li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;$MYSQLDUMP&nbsp;-u&nbsp;$MUSER&nbsp;-h&nbsp;$MHOST&nbsp;-p$MPASS&nbsp;$db&nbsp;--skip-lock-tables&nbsp;|&nbsp;$GZIP&nbsp;-9&nbsp;</span><span class="tag">&gt;</span><span>&nbsp;$FILE &nbsp;&nbsp;</span></li>
    <li><span>done &nbsp;&nbsp;</span></li>
    <li class="alt"><span>&nbsp;&nbsp;</span></li>
    <li><span>#tar&nbsp;zcvf&nbsp;$BAK/httpdocs/html.$NOW.tar.gz&nbsp;/home/www &nbsp;&nbsp;</span></li>
    <li class="alt"><span>&nbsp;&nbsp;</span></li>
    <li><span>####&nbsp;FTP&nbsp;备份&nbsp;####### &nbsp;&nbsp;</span></li>
    <li class="alt"><span>#&nbsp;lftp&nbsp;-u&nbsp;$FTPU,$FTPP&nbsp;-e&nbsp;&quot;mkdir&nbsp;/db-backup/$NOW;cd&nbsp;/db-backup/$NOW;&nbsp;mput&nbsp;/root/backup/httpdocs/*&nbsp;/root/backup/database/*;&nbsp;quit&quot;&nbsp;$FTPS &nbsp;&nbsp;</span></li>
    <li><span>&nbsp;&nbsp;</span></li>
    <li class="alt"><span>#&nbsp;find&nbsp;/root/backup/database&nbsp;-ctime&nbsp;+2&nbsp;-exec&nbsp;rm&nbsp;{}&nbsp;\; &nbsp;&nbsp;</span></li>
    <li><span>#&nbsp;find&nbsp;/root/backup/httpdocs&nbsp;-ctime&nbsp;+2&nbsp;-exec&nbsp;rm&nbsp;{}&nbsp;\; &nbsp;&nbsp;</span></li>
    <li class="alt"><span>&nbsp;&nbsp;</span></li>
    <li><span>###&nbsp;Dropbox&nbsp;备份####### &nbsp;&nbsp;</span></li>
    <li class="alt"><span>if&nbsp;[&nbsp;&quot;`ps&nbsp;-e|grep&nbsp;dropbox`&quot;&nbsp;=&nbsp;&quot;&quot;&nbsp;];&nbsp;then &nbsp;&nbsp;</span></li>
    <li><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/opt/python2.7/bin/python2.7&nbsp;/usr/bin/dropbox.py&nbsp;start &nbsp;&nbsp;</span></li>
    <li class="alt"><span>fi &nbsp;&nbsp;</span></li>
    <li><span>&nbsp;&nbsp;</span></li>
    <li class="alt"><span>sleep&nbsp;5 &nbsp;&nbsp;</span></li>
    <li><span>&nbsp;&nbsp;</span></li>
    <li class="alt"><span>while&nbsp;true &nbsp;&nbsp;</span></li>
    <li><span>do &nbsp;&nbsp;</span></li>
    <li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;[&nbsp;&quot;`/opt/python2.7/bin/python2.7&nbsp;/usr/bin/dropbox.py&nbsp;status`&quot;&nbsp;=&nbsp;&quot;Idle&quot;&nbsp;]&nbsp;&amp;&amp;&nbsp;break &nbsp;&nbsp;</span></li>
    <li><span>&nbsp;&nbsp;&nbsp;&nbsp;sleep&nbsp;20 &nbsp;&nbsp;</span></li>
    <li class="alt"><span>done &nbsp;&nbsp;</span></li>
    <li><span>&nbsp;&nbsp;</span></li>
    <li class="alt"><span>/opt/python2.7/bin/python2.7&nbsp;/usr/bin/dropbox.py&nbsp;stop &nbsp;&nbsp;</span></li>
</ol>
</div>]]></description>
			<link>http://blog.xreacn.com/?action=show&amp;id=1789</link>
			<category domain="http://blog.xreacn.com/?cid=16">站点建设</category>
			<pubDate>2011-09-09 15:23</pubDate>
		</item>
		<item>
			<guid>http://blog.xreacn.com/?action=show&amp;id=1775</guid>
			<title>关于很多站点需要身份传真的问题</title>
			<author>xreacn</author>
			<description><![CDATA[<p>仿照以下的格式，抓图发Email给老外就可以了，记得要用图片，因为中文有可能在老外看来是乱码</p>
<p>The passport copy which has translated into English is under !<br />
========================================================<br />
姓名： 韦 小宝<br />
Name：Xiaobao Wei<br />
性别：男 民族：汉<br />
Sex：male Race：Chinese<br />
出生： 1654年 12月 20日<br />
Birthday：20.12.1654<br />
住址：北京市东城区景山前街4号紫禁城敬事房<br />
Address：Keiji room 4，Jingshan Front Street, Dongcheng District, Beijing, P.R.C <br />
编号：11204416541220243X<br />
SN. 11204416541220243X<br />
北京市公安局<br />
Beijing Local Police station ，Beijing，China<br />
========================================================<br />
And the picture of passport copy is in the mailbox enclosure !</p><br /><br /><b>图片附件(缩略图):</b><br /><a href="http://blog.xreacn.com/attachment.php?id=5" target="_blank"><img src="http://blog.xreacn.com/attachments/date_201109/thumb_6f1bfac8ce11a4801d58753383a07372.gif" border="0" alt="大小: 12.99 K&#13;尺寸: 465 x 500&#13;浏览: 16 次&#13;点击打开新窗口浏览全图" width="465" height="500" /></a><br /><br /><b>图片附件:</b><br /><a href="http://blog.xreacn.com/attachment.php?id=6" target="_blank"><img src="http://blog.xreacn.com/attachments//date_201109/5ed72b08643e04dae62c994fab71b7db.jpg" border="0" alt="大小: 71 K&#13;尺寸: 500 x 316&#13;浏览: 3 次&#13;点击打开新窗口浏览全图" width="500" height="316" /></a>]]></description>
			<link>http://blog.xreacn.com/?action=show&amp;id=1775</link>
			<category domain="http://blog.xreacn.com/?cid=16">站点建设</category>
			<pubDate>2011-08-31 23:02</pubDate>
		</item>
		<item>
			<guid>http://blog.xreacn.com/?action=show&amp;id=1757</guid>
			<title>来自荷兰的免费shell</title>
			<author>xreacn</author>
			<description><![CDATA[<p>Yours IP：[<font color="#ff0000">77.247.181.164</font>]&nbsp;From：<font color="#ff0000">荷兰</font></p>
<p><font color="#ff0000">ms国内被hx了。。</font></p>
<p><a href="http://www.cjb.net/cgi-bin/shell.cgi?action=signup">http://www.cjb.net/cgi-bin/shell.cgi?action=signup</a></p>
<center>
<h3>Introduction</h3>
</center>
<p>CJB.NET offers free shell accounts on our dedicated shell server. Our shell accounts include access to compilers, many common shells and scripting languages, system utilities, and more than 10,000 software packages to install.</p>
<p>注册后收到的信</p>
<p>Your shell account has been activated.</p>
<p>Hostname:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; shell.cjb.net<br />
Username:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xreacn<br />
Password:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xreacn.com</p>
<p>Please allow up to five minutes for your SSH login to activate.</p>
<p>You must log into your shell for the first time within 7 days.</p>
<p>For more information, go to:<br />
<a href="http://www.cjb.net/shell.html">http://www.cjb.net/shell.html</a></p>
<p>ms很不好的一点就是shell的权限似乎没设置好</p>
<p>在/etc下面有一个 pwd.db的数据库文件 有兴趣的童鞋可以去看下</p>]]></description>
			<link>http://blog.xreacn.com/?action=show&amp;id=1757</link>
			<category domain="http://blog.xreacn.com/?cid=16">站点建设</category>
			<pubDate>2011-08-27 14:24</pubDate>
		</item>
		<item>
			<guid>http://blog.xreacn.com/?action=show&amp;id=1749</guid>
			<title>alwaysonpc , 又一款翻墙好工具</title>
			<author>xreacn</author>
			<description><![CDATA[<p>注册地址 <a href="http://www.alwaysonpc.com/signup.php">http://www.alwaysonpc.com/signup.php</a></p>
<p>然后他会发送一封激活信件到你信箱</p>
<p>登录后会先下载java虚拟机 <a href="http://sdlc-esd.sun.com/ESD6/JSCDL/jre/6u26-b120/JavaSetup6u26.exe?AuthParam=1313691523_1d7f9238c712fc1fa036547e98271b44&amp;GroupName=JSC&amp;FilePath=/ESD6/JSCDL/jre/6u26-b120/JavaSetup6u26.exe&amp;File=JavaSetup6u26.exe&amp;BHost=javadl.sun.com">http://sdlc-esd.sun.com/ESD6/JSCDL/jre/6u26-b120/JavaSetup6u26.exe?AuthParam=1313691523_1d7f9238c712fc1fa036547e98271b44&amp;GroupName=JSC&amp;FilePath=/ESD6/JSCDL/jre/6u26-b120/JavaSetup6u26.exe&amp;File=JavaSetup6u26.exe&amp;BHost=javadl.sun.com</a></p>
<p>然后下载他网站上的小插件就可以登入了。</p>
<p>网站ip</p>
<p>
<li>74.80.210.169</li>
<li>来自地区:美国 加利福尼亚州弗里蒙特市Hurricane Electric公司</li>
<li>系统为Unknown 浏览器为Unknown</li>
</p>
<p>&nbsp;</p>]]></description>
			<link>http://blog.xreacn.com/?action=show&amp;id=1749</link>
			<category domain="http://blog.xreacn.com/?cid=16">站点建设</category>
			<pubDate>2011-08-18 11:25</pubDate>
		</item>
		<item>
			<guid>http://blog.xreacn.com/?action=show&amp;id=1731</guid>
			<title>关于在很多站点需要手机验证的问题</title>
			<author>admin</author>
			<description><![CDATA[<div class="content">
<p>大家可以选择性的注册一个&nbsp; google voice</p>
<p>具体注册办法可以在网上找。</p>
<p>我这里有一个比较简单的办法，大家可以试试看</p>
<p><a href="https://www.google.com/voice">https://www.google.com/voice</a></p>
<p>1 gmail帐户一枚</p>
<p>2 virtualphoneline.com&nbsp; 这里直接用gmail的帐户登陆就可以了</p>
<p><a href="http://www.virtualphoneline.com/signupnew/">http://www.virtualphoneline.com/signupnew/</a>&nbsp; 选择 OpenID Signup:</p>
<p>3 virtualphoneline.com&nbsp; 会给一个试用的号码 然后用来注册gv</p>
<p>4 把电话都转到 google talk上。。。</p>
<p>注意选择号码的时候要选择mobile，否则没法收短信</p>
<p>偶自己倒是一直是在用这个，接收短信很方便</p>
<p>大家有兴趣的话可以给偶发个信息</p>
<p>偶的GV&nbsp; (520) 329-7111</p>
<p>主要是偶的AT&amp;T的卡没开通语音信箱。。。</p>
</div>]]></description>
			<link>http://blog.xreacn.com/?action=show&amp;id=1731</link>
			<category domain="http://blog.xreacn.com/?cid=16">站点建设</category>
			<pubDate>2011-08-13 23:21</pubDate>
		</item>
		<item>
			<guid>http://blog.xreacn.com/?action=show&amp;id=1728</guid>
			<title>推荐给大家几个有趣的信箱吧</title>
			<author>admin</author>
			<description><![CDATA[<div class="content">
<p>两个都是10分钟信箱，比较开心的是注册些垃圾东西的时候可以不用自己的信箱来注册啦</p>
<p><a href="http://10minutemail.com/10MinuteMail/index.html">http://10minutemail.com/10MinuteMail/index.html</a></p>
<p><a href="http://mail.dns123.org/">http://mail.dns123.org/</a></p>
</div>]]></description>
			<link>http://blog.xreacn.com/?action=show&amp;id=1728</link>
			<category domain="http://blog.xreacn.com/?cid=16">站点建设</category>
			<pubDate>2011-08-13 23:20</pubDate>
		</item>
		<item>
			<guid>http://blog.xreacn.com/?action=show&amp;id=1723</guid>
			<title>几个比较好用的 组件式系统</title>
			<author>admin</author>
			<description><![CDATA[<div class="content">
<p>wdcp&nbsp; <a href="http://www.wdlinux.cn/">http://www.wdlinux.cn/</a>&nbsp; 给予 Centos 。。 很好很强大</p>
<p><font color="#0000ff">LuManager&nbsp;&nbsp; </font><a href="http://www.zijidelu.org/">http://www.zijidelu.org/</a>&nbsp; （很多人反映使用段时间会报错，偶没用过，不发表意见）</p>
<p>LNMP&nbsp; <a href="http://lnmp.org/">http://lnmp.org/</a></p>
</div>]]></description>
			<link>http://blog.xreacn.com/?action=show&amp;id=1723</link>
			<category domain="http://blog.xreacn.com/?cid=16">站点建设</category>
			<pubDate>2011-08-13 23:18</pubDate>
		</item>
	</channel>
</rss>
