<?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>Web Style Press, Best Practices from all the Web, Build Better Websites &#187; htaccess</title>
	<atom:link href="http://www.webstylepress.com/category/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webstylepress.com</link>
	<description>Web VS Style</description>
	<lastBuildDate>Mon, 26 Dec 2011 10:35:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Protect Your WordPress Blog From Hotlinking</title>
		<link>http://www.webstylepress.com/protect-your-wordpress-blog-from-hotlinking/</link>
		<comments>http://www.webstylepress.com/protect-your-wordpress-blog-from-hotlinking/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 22:44:47 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[htaccess]]></category>
		<category><![CDATA[Modrewrite]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Wp Customization]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[customize]]></category>
		<category><![CDATA[hotlinking]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=466</guid>
		<description><![CDATA[Hotlinking is the use of an image from a website into another web page belonging to another site. There is thin chances that any popular blog will not be hot linked ever. By this way other websites use your host&#8217;s bandwidth and cause load at your server which has no benefit for you but loss. [...]<p><a href="http://www.webstylepress.com/protect-your-wordpress-blog-from-hotlinking/">Protect Your WordPress Blog From Hotlinking</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Hotlinking is the use of an image from a website into another web page belonging to another site. There is thin chances that any popular blog will not be hot linked ever. By this way other websites use your host&#8217;s bandwidth and cause load at your server which has no benefit for you but loss. Following is a solution to protect your WordPress blog from hotlinking using .htaccess file.</p>
<p>Ever visited a webpage when you were trying to access an image, which shows you an image saying that image stealing is prohibited. We are going to use this way. The image will still be displayed from your blog but then it can be small and of low quality minimizing load. So we will create a small image written something like &#8220;Content Stealing is prohibited at my server&#8221; and upload it on our blog server.</p>
<p>Then, we will edit our .htaccess file, located in your WordPress blog root directory. Sometimes ftp does not show .htaccess file because it is hidden. In that case we can apply a filter -a via ftp which will show us hidden files too. </p>
<p><span id="more-466"></span></p>
<p>Add the following code to your .htaccess file:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">RewriteEngine On
#Replace ?myblog\.com/
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?myblog\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
#Replace /images/donothotlink.jpg
RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/donothotlink.jpg [L]</pre></div></div>

<p>Replace myblog with your blog URL name. For this blog it will be <strong>webstylepress</strong><br />
Use <strong>donothotlink</strong> as a name for your jpg image.</p>
<p>And you are done. Now when anybody shall copy any image URL from your blog, this image will be shown instead.</p>
<p><a href="http://www.webstylepress.com/protect-your-wordpress-blog-from-hotlinking/">Protect Your WordPress Blog From Hotlinking</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/redesign-brainstorming-keep-in-mind-before-you-redesign/" title="Redesign Brainstorming &#8211; Keep in Mind Before you Redesign">Redesign Brainstorming &#8211; Keep in Mind Before you Redesign</a></li><li><a href="http://www.webstylepress.com/code-hider-tool-lock-webpage-code/" title="Code Hider Tool &#8211; Lock Webpage Code">Code Hider Tool &#8211; Lock Webpage Code</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-1/" title="Javascript Essentials Part 1">Javascript Essentials Part 1</a></li><li><a href="http://www.webstylepress.com/div-issues-problems-and-solution/" title="DIV Issues, Problems and Solutions">DIV Issues, Problems and Solutions</a></li><li><a href="http://www.webstylepress.com/fav-icon-tutorial/" title="Fav Icon Tutorial">Fav Icon Tutorial</a></li><li><a href="http://www.webstylepress.com/robots-txt-file/" title="Robots File &#8211; Usage and Best Practices">Robots File &#8211; Usage and Best Practices</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/protect-your-wordpress-blog-from-hotlinking/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

