PDA

View Full Version : Backwards Hotlinking Question


Crimm
01-14-2008, 01:40 AM
Hi :)

So I know how to stop users from hotlinking off of my site by using .htaccess:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://([^.]+\.)?mysite\.com/ [NC]
RewriteCond %{HTTP_USER_AGENT} !(googlebot-image|msnbot|psbot|yahoo-mmcrawler) [NC]
RewriteCond %{REQUEST_URI} !^/hotlink\.png$
RewriteRule \.(bmp|gif|jpe?g|png)$ /hotlink.png [L]
</IfModule>

Which works perfectly, but what I want ... is I want to disable users from hotlinking from other sites. ie I don't want to promote hotlinking :) It would be even better to be able to define this down to a certain page :) I'm still learning how to write custom mods, so I'm lacking the knowledge yet to do a rewrite with vB ...

Any suggestions? I did some searching and everyone that asked this question ... The thread seem to die off.

Thank you.