Support > cpg1.5 miscellaneous

[Invalid]: Hot link

(1/1)

tommytomato:
I've created a hotlink image for people who hotlink images, I've see our images on other sites, checked the link and it refers back to our site.

I used these two sites
http://altlab.com/htaccess_tutorial.html
http://www.htaccesstools.com/hotlink-protection/

Here's my .htacess


--- Code: ---RewriteEngine on

RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?rockinghamgateway.com [NC]

RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?gallery.rockinghamgateway.com [NC]

RewriteRule \.(jpg|jpeg|png|gif)$ http://gallery.rockinghamgateway.com/hotlink.gif [NC,R,L]
--- End code ---

when I check to see if I can see the image i'm trying to hotlink, it still shows the gallery image I chose to view and not the hotlink image

http://gallery.rockinghamgateway.com/hotlink.gif

Am I missing the point or some thing in my .htaccess file ?

TT ( karl )





Joachim Müller:
We provide support for Coppermine. Configuring Apache's mod_rewrite engine is certainly beyond the scope of this board.
You haven't followed the instructions of the tutorial to a T

--- Code: ---RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?rockinghamgateway\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|png)$ http://gallery.rockinghamgateway.com/hotlink.gif [L]
--- End code ---
should do the trick as far as I can see. If it doesn't, ask your webhost for support - this is not the right place.

Additionally, you already have an open thread where you discuss exactly the same thing. We're not fond of cross-posting.

Navigation

[0] Message Index

Go to full version