<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>曾露.Net -- 思考人生 营销自己 &#187; 密码保护</title>
	<atom:link href="http://www.zenglu.net/tag/mmbh/feed" rel="self" type="application/rss+xml" />
	<link>http://www.zenglu.net</link>
	<description>博学之,审问之,慎思之,明辨之,笃行之！</description>
	<lastBuildDate>Sun, 06 Jun 2010 07:54:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>10,密码保护的.htpasswd文件</title>
		<link>http://www.zenglu.net/200904107.html</link>
		<comments>http://www.zenglu.net/200904107.html#comments</comments>
		<pubDate>Sat, 04 Apr 2009 22:47:34 +0000</pubDate>
		<dc:creator>曾露</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[htpasswd文件]]></category>
		<category><![CDATA[密码保护]]></category>

		<guid isPermaLink="false">http://www.vgoldzone.cn/?p=107</guid>
		<description><![CDATA[目录的密码保护比.htaccess的其他功能要麻烦些，因为你必须同时创建一个包含用户名和密码的文档，用于访问你的网站，相关信息（默认）位于一个名为.htpasswd的文档里。像.htaccess一样，.htpasswd也是一个没有文件名且具有8位扩展名的文档，可以放置在你网站里的任何地方（此时密码应加密），但建议你将其保存在网站Web根目录外，这样通过网络就无法访问到它了。
在使用.htaccess来设置目录的密码保护时，它包含了密码文件的路径。从安全考虑，有必要把.htaccess也保护起来，不让别人看到其中的内容。虽然可以用其他方式做到这点，比如文档的权限。不过，.htaccess本身也能做到，只需加入如下的指令：
order allow,deny
deny from all
]]></description>
		<wfw:commentRss>http://www.zenglu.net/200904107.html/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>9,密码保护的.htaccess文件</title>
		<link>http://www.zenglu.net/200904104.html</link>
		<comments>http://www.zenglu.net/200904104.html#comments</comments>
		<pubDate>Sat, 04 Apr 2009 22:46:15 +0000</pubDate>
		<dc:creator>曾露</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[htaccess文件]]></category>
		<category><![CDATA[密码保护]]></category>

		<guid isPermaLink="false">http://www.vgoldzone.cn/?p=104</guid>
		<description><![CDATA[尽管有各种各样的.htaccess用法，但至今最流行的也可能是最有用的做法是将其用于网站目录可靠的密码保护。尽管JavaScrip等也能做到，但只有.htaccess具有完美的安全性（即访问者必须知晓密码才可以访问目录，并且绝无“后门”可走）。
利用.htaccess将一个目录加上密码保护分两个步骤。第一步是在你的.htaccess文档里加上适当的几行代码，再将.htaccess文档放进你要保护的目录下：
AuthName &#8220;Section Name&#8221;
AuthType Basic
AuthUserFile  /full/path/to/.htpasswd
Require  valid-user
你可能需要根据你的网站情况修改一下上述内容中的一些部分，如用被保护部分的名字&#8221;Members  Area&#8221;，替换掉“Section  Name”。
/full/parth/to/.htpasswd则应该替换为指向.htpasswd文件（后面详述该文档）的完整服务器路径。如果你不知道你网站空间的完整路径，请询问一下你的系统管理员。
]]></description>
		<wfw:commentRss>http://www.zenglu.net/200904104.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
