<?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>gHacks Technology News &#124; Latest Tech News, Software And Tutorials &#187; htaccess hotlink</title> <atom:link href="http://www.ghacks.net/tag/htaccess-hotlink/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Sat, 11 Feb 2012 09:52:46 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>How to setup Hotlink Protection</title><link>http://www.ghacks.net/2007/08/01/how-to-setup-hotlink-protection/</link> <comments>http://www.ghacks.net/2007/08/01/how-to-setup-hotlink-protection/#comments</comments> <pubDate>Wed, 01 Aug 2007 20:08:35 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[The Web]]></category> <category><![CDATA[bandwidth stealing]]></category> <category><![CDATA[hotlink prevention]]></category> <category><![CDATA[htaccess hotlink]]></category> <guid
isPermaLink="false">http://www.ghacks.net/2007/08/01/how-to-setup-hotlink-protection/</guid> <description><![CDATA[Hotlinking is a technique that is frowned upon on the Internet. This happens if you upload a file to your webserver and someone else links to that file directly effectively using your bandwidth to display and / or spread the file on his website. This happens most often with images but it could also be happening with all other files such as zip or pdf.]]></description> <content:encoded><![CDATA[<p>Hotlinking is a technique that is frowned upon on the Internet. This happens if you upload a file to your webserver and someone else links to that file directly effectively using your bandwidth to display and / or spread the file on his website. This happens most often with images but it could also be happening with all other files such as zip or pdf.</p><p>The best way to stop someone hotlinking your files is to setup a htaccess file a directory that you want to protect. All subdirectories are protected as well by this. If you use a webhosting account you should make sure that you can actually use .htaccess files on it before you try and implement this feature.</p><p>To use them you simply upload a file called .htaccess to a directory on your website and edit it with the following information to prevent hotlinking:</p><p><span
id="more-1821"></span>RewriteEngine on<br
/> RewriteCond %{HTTP_REFERER} !^$<br
/> RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?ghacks.net [NC]<br
/> RewriteRule \.(jpg|jpeg|png|gif)$ &#8211; [NC,F,L]</p><p>You have to edit the domain name of course and add possible other filetypes to the list in the fourth line. If you have another domain that should be allowed to hotlink your files you simply add the third line again and edit the domain name accordingly.</p><p>If you have a WordPress blog and can&#8217;t use .htaccess you could use the WordPress plugin called <a
href="http://www.bahn-spass.de/2007/05/05/hotlink-protection/">Hotlink Protection</a> which basically does the same thing but does not allow the addition of other domain names.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2007/08/01/how-to-setup-hotlink-protection/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> </channel> </rss>
