<?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>PHP Magic Book - Free PHP Scripts, Tutorials and Downloads &#187; hotlinking</title>
	<atom:link href="http://www.phpmagicbook.com/tag/hotlinking/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpmagicbook.com</link>
	<description>PHP AtoZ Reloaded, free php tutorials, free php downloads, php scripts, PHP tips</description>
	<lastBuildDate>Tue, 15 Jun 2010 13:22:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Protect Hotlink the Right Way Using htaccess</title>
		<link>http://www.phpmagicbook.com/protect-hotlink-the-right-way-using-htaccess/</link>
		<comments>http://www.phpmagicbook.com/protect-hotlink-the-right-way-using-htaccess/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 00:27:51 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[htaccess]]></category>
		<category><![CDATA[bandwidth]]></category>
		<category><![CDATA[hotlinking]]></category>

		<guid isPermaLink="false">http://www.phpmagicbook.com/?p=505</guid>
		<description><![CDATA[Protect hotlinking the right way. There are content stealers out there who will copy your links and images and display them at their websites in result of which you pay more for bandwidth. If you do not do it the right way, you can block google and feedburner also. Here is a code to do [...]<p><a href="http://www.phpmagicbook.com/protect-hotlink-the-right-way-using-htaccess/">Protect Hotlink the Right Way Using htaccess</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Protect hotlinking the right way. There are content stealers out there who will copy your links and images and display them at their websites in result of which you pay more for bandwidth. If you do not do it the right way, you can block google and feedburner also. Here is a code to do it the right way. Any incoming direct request for your image file, zip file or rar will will display your specified image instead of that.</p>
<p><span id="more-505"></span></p>
<p>Add this code into your .htaccess file and make sure you change &#8216;yoursitename&#8217; there.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">Options +FollowSymlinks
# Protect Hotlinking
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+.)?yoursitename.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www.)?google.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www.)?feedburner.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www.)?feeds2.feedburner.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*.(jpe?g|gif|bmp|png|zip|rar)$ http://yoursitename.com/someimage.jpg [L]</pre></div></div>

<p><a href="http://www.phpmagicbook.com/protect-hotlink-the-right-way-using-htaccess/">Protect Hotlink the Right Way Using htaccess</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.phpmagicbook.com/allow-htaccess-and-mod-rewrite-in-wamp/" title="Allow htaccess and Mod Rewrite in Wamp">Allow htaccess and Mod Rewrite in Wamp</a></li><li><a href="http://www.phpmagicbook.com/htaccess-essential-tricks-for-blog-website-performance-a-guide/" title=".htaccess Essential Tricks For Blog/Website Performance &#8211; Guide">.htaccess Essential Tricks For Blog/Website Performance &#8211; Guide</a></li><li><a href="http://www.phpmagicbook.com/redirect-wordpress-rss-feeds-to-feedburner/" title="Redirect WordPress RSS Feeds to Feedburner">Redirect WordPress RSS Feeds to Feedburner</a></li><li><a href="http://www.phpmagicbook.com/force-file-download-do-not-display-open-in-browser/" title="Force File download Using PHP &#8211; Do Not Display Open In Browser onclick">Force File download Using PHP &#8211; Do Not Display Open In Browser onclick</a></li><li><a href="http://www.phpmagicbook.com/dothtaccess-hacks/" title="Essential DotHtaccess Hacks">Essential DotHtaccess Hacks</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.phpmagicbook.com/protect-hotlink-the-right-way-using-htaccess/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.276 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-07-30 16:29:06 -->
