Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x support forum
 Helicon Tech : ISAPI_Rewrite 2.x support forum
Subject Topic: Hotlink Prevention Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
gungey
Newbie
Newbie


Joined: 17 August 2004
Online Status: Offline
Posts: 6
Posted: 20 August 2008 at 6:34am | IP Logged Quote gungey

I'm trying to disable image hotlinking to my site, but I can't seem to get it to work? Here is the code I'm using in my config file (the rest works fine):

[ISAPI_Rewrite]

RewriteEngine on

RewriteCond %{HTTP} (on)?
RewriteCond Host: ^example\.com$
RewriteRule (.*) http\://www.example.com$1 [I,RP]

RewriteRule /feed.xml /feed.php [I,L]

RewriteCond Referer: (?!http://www\.example\.com).*
RewriteRule .*\.jpg /images/hotlink.jpg [I,L]


Is there anything wrong with that code?
Back to Top View gungey's Profile Search for other posts by gungey
 
gungey
Newbie
Newbie


Joined: 17 August 2004
Online Status: Offline
Posts: 6
Posted: 20 August 2008 at 6:49am | IP Logged Quote gungey

I think I've got it working now :)
Back to Top View gungey's Profile Search for other posts by gungey
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum