Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
HotlinkBlocker support forum
 Helicon Tech : HotlinkBlocker support forum
Subject Topic: general questions Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
mpic
Newbie
Newbie


Joined: 08 February 2006
Online Status: Offline
Posts: 2
Posted: 08 February 2006 at 6:26pm | IP Logged Quote mpic

hi, i was just searching for hotlinking tutorials on google and found this website....i'm glad i did

i'm a complete newb at this.

i downloaded he Hotlink blocker, extracted & got 4 files.....and have no idea wat to do.

here is my current htaccess file:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^.*\.domain.com/.*$ [NC]
RewriteRule .*\.(jpe?g|png|gif|bmp)$ /sorry.jpg [NC,F,L]

1. the /sorry.jpg doesn't show.
2. how can stop all other file types such as videos, compressed files....etc from hotlinking?

let's assume we have any of the following urls:
domain.com/carshow.mpg
domain.com/rach.jpg
domain.com/history.txt
domain.com/game.zip

...you get the idea.

i want to make it so that whenever a "surfer" goes to one of those urls, they see a page with the corresponding link on it....intead of the download starting right when they go to the link....i hope this makes sense.

Back to Top View mpic's Profile Search for other posts by mpic
 
Yaroslav
Moderator Group
Moderator Group


Joined: 15 August 2002
Online Status: Offline
Posts: 6446
Posted: 11 February 2006 at 6:30am | IP Logged Quote Yaroslav

You can consider two products - ISAPI_Rewrite and HotlinkBlocker. ISAPI_Rewrite can be used as a replacement for mod_rewrite. Here is a translation of your mod_rewrite rules into ISAPI_Rewrite syntax:

RewriteCond Referer: (?!.*\.domain.com).+
RewriteRule .*\.(jpe?g|png|gif|bmp) /sorry.jpg [I,O,L]

But if you wish to protect video files then you may need to use HotlinkBlocker instead. I suggest you to install it using MSI installation package instead of trying to set it manually. After installing go to the HotlinkBlocker tab and add the following protection rule:

@.*\.(jpe?g|png|gif|bmp) REDIRECT http://www.domain.com/sorry.jpg

I suggest you to read HotlinkBlocker manual first.

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top View Yaroslav's Profile Search for other posts by Yaroslav Visit Yaroslav's Homepage
 
mpic
Newbie
Newbie


Joined: 08 February 2006
Online Status: Offline
Posts: 2
Posted: 21 February 2006 at 3:20am | IP Logged Quote mpic

will do

cheers
Back to Top View mpic's Profile Search for other posts by mpic
 

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