<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1010753" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1010753</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/hotlinking#comment-1066207</link>
    <description> &lt;p&gt;One way to do it with mod_rewrite. In .htaccess you&#039;d put something like:&lt;/p&gt;
&lt;p&gt;RewriteEngine on&lt;br /&gt;
RewriteCond %{HTTP_REFERER} !^$&lt;br /&gt;
RewriteCond %{HTTP_REFERER} !^http://www.angelfire.com/.*$ [NC]&lt;br /&gt;
RewriteCond %{HTTP_REFERER} !^http://angelfire.com/.*$ [NC]&lt;br /&gt;
RewriteRule .*\.exe$ download.php3&lt;/p&gt;
&lt;p&gt;That would look at the HTTP_REFERER field of the requesting browser whenever a file with the .exe extension was requested. If it came from angelfire it would allow the request, otherwise it would forward to a page called download.php3.  In download.php3 you could just add in a link to the originally requested file with something like &amp;lt;? echo $REQUEST_URI ?&amp;gt;&lt;/p&gt;
&lt;p&gt;Angelfire probably uses a far more complicated system, but if you&#039;re looking to do something similar on your site, that&#039;s the way to go about it.&lt;/p&gt;
 </description>
     <pubDate>Sat, 01 Jul 2000 15:25:07 +0000</pubDate>
 <dc:creator>Maverick</dc:creator>
 <guid isPermaLink="false">comment 1066207 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
