This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
HotlinkBlocker (Forum Locked Forum Locked)
 Helicon Tech : HotlinkBlocker
Subject Topic: general questions (Topic Closed Topic Closed)
Author
Message |
mpic
Newbie


Joined: 08 February 2006
Posts: 2
Posted: 08 February 2006 at 6:26pm  

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
 
Yaroslav
Admin Group


Joined: 15 August 2002
Posts: 6520
Posted: 11 February 2006 at 6:30am  

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 Visit Yaroslav's Homepage
 
mpic
Newbie


Joined: 08 February 2006
Posts: 2
Posted: 21 February 2006 at 3:20am  

will do

cheers
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
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