<?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>美国虚拟主机资讯 &#187; 防盗链使用</title>
	<atom:link href="http://www.host114.org/tag/%e9%98%b2%e7%9b%97%e9%93%be%e4%bd%bf%e7%94%a8/feed" rel="self" type="application/rss+xml" />
	<link>http://www.host114.org</link>
	<description>美国虚拟主机，美国主机，国外主机资讯。关于国外的虚拟主机，VPS，独立主机一切信息</description>
	<lastBuildDate>Wed, 01 Feb 2012 01:34:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>ix中设置防盗链事例</title>
		<link>http://www.host114.org/hosting/ix%e3%80%80htaccess-fangdaolian.htm</link>
		<comments>http://www.host114.org/hosting/ix%e3%80%80htaccess-fangdaolian.htm#comments</comments>
		<pubDate>Wed, 18 Nov 2009 06:25:06 +0000</pubDate>
		<dc:creator>user1</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[美国主机]]></category>
		<category><![CDATA[ixwebhosting]]></category>
		<category><![CDATA[防盗链使用]]></category>

		<guid isPermaLink="false">http://www.host114.org/?p=464</guid>
		<description><![CDATA[我们都知道IXWebHosting是支持.htaccess这个文件的,那么现在我们就来看看,怎么利用这个文件设置防盗链.下面看一个实例： 首先我们打开记事本,在里面输入以下的规则: &#60;IfModule mod_rewrite.c&#62; RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^$ [NC] RewriteCond %{HTTP_REFERER} !www.ixguide.com [NC] RewriteCond %{HTTP_REFERER} !bbs.ixguide.com [NC] RewriteCond %{HTTP_REFERER} !blog.ixguide.com [NC] RewriteCond %{HTTP_REFERER} !ixguide.com [NC] RewriteCond %{HTTP_REFERER} !www.idcspy.com [NC] RewriteCond %{HTTP_REFERER} !idcspy.com [NC] RewriteCond %{HTTP_REFERER} !bbs.idcspy.com [NC] RewriteCond %{HTTP_REFERER} !www.host114.org [NC] RewriteCond %{HTTP_REFERER} !host114.org [NC] RewriteCond %{HTTP_REFERER} !www.google.com [NC] RewriteCond %{HTTP_REFERER} !google.com [...]]]></description>
			<content:encoded><![CDATA[<p>我们都知道<a href="http://www.host114.org/hosturl/ixwebhosting.htm" target="_blank">IXWebHosting</a>是支持.htaccess这个文件的,那么现在我们就来看看,怎么利用这个文件设置防盗链.下面看一个实例：</p>
<p>首先我们打开记事本,在里面输入以下的规则:<br />
<span id="more-464"></span></p>
<table border="1" cellspacing="0" cellpadding="0" width="500" bordercolor="#999999">
<tbody>
<tr>
<td align="left">&lt;IfModule mod_rewrite.c&gt; RewriteEngine on</p>
<p>RewriteCond %{HTTP_REFERER} !^$</p>
<p>RewriteCond %{HTTP_REFERER} !^$ [NC]</p>
<p>RewriteCond %{HTTP_REFERER} !www.ixguide.com [NC]</p>
<p>RewriteCond %{HTTP_REFERER} !bbs.ixguide.com [NC]</p>
<p>RewriteCond %{HTTP_REFERER} !blog.ixguide.com [NC]</p>
<p>RewriteCond %{HTTP_REFERER} !ixguide.com [NC]</p>
<p>RewriteCond %{HTTP_REFERER} !www.idcspy.com [NC]</p>
<p>RewriteCond %{HTTP_REFERER} !idcspy.com [NC]</p>
<p>RewriteCond %{HTTP_REFERER} !bbs.idcspy.com [NC]</p>
<p>RewriteCond %{HTTP_REFERER} !www.host114.org [NC]</p>
<p>RewriteCond %{HTTP_REFERER} !host114.org [NC]</p>
<p>RewriteCond %{HTTP_REFERER} !www.google.com [NC]</p>
<p>RewriteCond %{HTTP_REFERER} !google.com [NC]</p>
<p>RewriteCond %{HTTP_REFERER} !www.google.cn [NC]</p>
<p>RewriteCond %{HTTP_REFERER} !google.cn [NC]</p>
<p>RewriteCond %{HTTP_REFERER} !www.baidu.com [NC]</p>
<p>RewriteCond %{HTTP_REFERER} !www.baidu.cn [NC]</p>
<p>RewriteCond %{HTTP_REFERER} !baidu.com [NC]</p>
<p>RewriteCond %{HTTP_REFERER} !baidu.cn [NC]</p>
<p>RewriteCond %{HTTP_REFERER} !www.163.com [NC]</p>
<p>RewriteCond %{HTTP_REFERER} !www.yahoo.com [NC]</p>
<p>RewriteCond %{HTTP_REFERER} !www.sogou.com [NC]</p>
<p>RewriteCond %{HTTP_REFERER} !www.soso.com [NC]</p>
<p>RewriteCond %{HTTP_REFERER} !www.sina.com.cn [NC]</p>
<p>RewriteCond %{HTTP_REFERER} !www.msn.com [NC]</p>
<p>RewriteRule .(jpg|gif|psd|zip|rar|mp3|txt|png|wma|wmv) http://ixguide.com/images1/ixguidefdl.jpg [R,NC,L]</p>
<p>&lt;/IfModule&gt;</td>
</tr>
</tbody>
</table>
<p> </p>
<p>将其中的ixguide.com改为你的地址,另外根据自己的实际情况更改,添加,删除其中的代码.需要注意的是防盗链的ixfdl.jpg这个图片不要开启防盗链.</p>
<p>修改好后,保存,命名为: .htaccess,之后上传到网站的根目录.等待生效就可以了.</p>
<p>PS:如果在自己的计算机上面不能保存为.htaccess这样的文件名,可以先保存为其他的(如:1.txt).上传上去之后再更改.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.host114.org/hosting/ix%e3%80%80htaccess-fangdaolian.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HostMonster中防盗链的使用</title>
		<link>http://www.host114.org/hosting/hostmonster/guard.htm</link>
		<comments>http://www.host114.org/hosting/hostmonster/guard.htm#comments</comments>
		<pubDate>Wed, 02 Jan 2008 04:36:24 +0000</pubDate>
		<dc:creator>user1</dc:creator>
				<category><![CDATA[hostmonster]]></category>
		<category><![CDATA[防盗链使用]]></category>

		<guid isPermaLink="false">http://www.host114.org/hosting/guard.htm</guid>
		<description><![CDATA[盗链是他人在您的站点外，未经您同意直接引用您站点上的文件，如图片等，他们在耗用您的宽带资源。您可以通过cPanel的“防盗链”功能来预防。这里提及到几个概念： 1. URLs to Allow Access: 允许访问受保护的来源地址列表，确保您填写了包含与没包含www在内的地址 2. Extensions to Allow: 设置哪些文件类型可被允许访问的地址访问 3. URL Redirect: 如果您不允许对受保护文件的直接访问，那么浏览者在对受保护文件的直接访问时将会被跳转到该设置地址 4. Allow Direct Requests: 如果您允许浏览者对受保护的文件直接访问，那么请勾选此项]]></description>
			<content:encoded><![CDATA[<p>盗链是他人在您的站点外，未经您同意直接引用您站点上的文件，如图片等，他们在耗用您的宽带资源。您可以通过cPanel的“防盗链”功能来预防。这里提及到几个概念：</p>
<p>1. URLs to Allow Access: 允许访问受保护的来源地址列表，确保您填写了包含与没包含www在内的地址<br />
2. Extensions to Allow: 设置哪些文件类型可被允许访问的地址访问<br />
3. URL Redirect: 如果您不允许对受保护文件的直接访问，那么浏览者在对受保护文件的直接访问时将会被跳转到该设置地址<br />
4. Allow Direct Requests: 如果您允许浏览者对受保护的文件直接访问，那么请勾选此项</p>
]]></content:encoded>
			<wfw:commentRss>http://www.host114.org/hosting/hostmonster/guard.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

