Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Hot Linking  (Read 6858 times)

0 Members and 1 Guest are viewing this topic.

Fallonized

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Hot Linking
« on: April 01, 2007, 06:02:32 am »

I found out someone hot linked 25 of my photos and I'm pissed. I thought maybe I could edit my files and change the names of them but I can't and I'm not about to delete, rename and upload because I will lose all of the view counts. Is there anything I can do besides contacting this person and asking them to take them down?

Thanks for your time,
Vanessa

P.S> YES I did search "hot linking" and I didn't see anything so please don't go making fun of me.
Logged

skidpics

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 223
Re: Hot Linking
« Reply #1 on: April 01, 2007, 06:24:00 am »

Can't you move the files to a different Album? 
Logged

Fallonized

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Hot Linking
« Reply #2 on: April 01, 2007, 07:00:19 am »

I just did that, thinking it would work! But it didn't!! Irk, I'm going to kill this girl. Maybe I'd let it slide if it were one or two, but twenty five?!
Logged

skidpics

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 223
Re: Hot Linking
« Reply #3 on: April 01, 2007, 07:02:52 am »

what the website and image links?
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Hot Linking
« Reply #4 on: April 01, 2007, 07:28:14 am »

use htaccess to protect your site from hotlinking

http://www.htaccesstools.com/hotlink-protection/
the link I posted offers a generator for the necessary code

Hercules24

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 71
    • High Resolution Party Pictures
Re: Hot Linking
« Reply #5 on: April 06, 2007, 03:13:01 am »

You could simply use the .htacces file to disalow hotlinking.
It's even more fun to redirect al hotlink request to a home made anti hotlinking image.
If you really hate somebody that steals your pics you can rename those pics manually in CPG and upload some horror pic with the old filename in your directory.
I'll bet they stop deeplinking within 24 hours :)
Logged

Walkinman

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 380
    • Skolai Images - Nature, Travel and Adventure stock photos
Re: Hot Linking
« Reply #6 on: April 12, 2007, 06:33:29 pm »

Hey Stramm
Thanks for this. I just went to the link yo uposted, and it generated the following code:

Code: [Select]
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?http://www.skolaiimages.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?http://www.alaskanalpinetreks.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?http://www.naturescapes.net [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?http://www.naturephotographers.net [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?http://www.photoportfolios.net [NC]
RewriteRule \.(jpg|jpeg|png|gif|tif)$ skolaiimages.com/images/hotlingstopper_2.jpg [NC,R,L]

When I upload that to my site as a .htaccess file, I get the following error on every page on my site:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@skolaiimages.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Apache/1.3.37 Server at www.skolaiimages.com Port 80


Do I upload the file to any particular folder? I'm using Lunarpages.

Thank you.

Cheers

Carl
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Hot Linking
« Reply #7 on: April 12, 2007, 07:52:59 pm »

I'm no htaccess guru but for my understanding it should read
Code: [Select]
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?http://www.skolaiimages.com [NC,OR]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?http://www.alaskanalpinetreks.com [NC,OR]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?http://www.naturescapes.net [NC,OR]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?http://www.naturephotographers.net [NC,OR]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?http://www.photoportfolios.net [NC]
RewriteRule \.(jpg|jpeg|png|gif|tif)$ skolaiimages.com/images/hotlingstopper_2.jpg [NC,R,L]

of course the rewrite engine needs to be enabled

Nibbler

  • Guest
Re: Hot Linking
« Reply #8 on: April 12, 2007, 07:56:11 pm »

No, you don't want to use [OR] since it would always treat it as hotlinking. Try like this:

Code: [Select]
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?skolaiimages.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?alaskanalpinetreks.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?naturescapes.net [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?naturephotographers.net [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?photoportfolios.net [NC]
RewriteRule \.(jpg|jpeg|png|gif|tif)$ http://skolaiimages.com/images/hotlingstopper_2.jpg [NC,R,L]

The albums folder would be the best place for it. Should be fine on LP.
Logged

Walkinman

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 380
    • Skolai Images - Nature, Travel and Adventure stock photos
Re: Hot Linking
« Reply #9 on: April 12, 2007, 08:23:08 pm »

Hey Nibbler/Stramm,

Thanks for your help. I tried both of those ammendments and keep geting the same result (when I drop the file in the first page of the site). When i drop it into the albums folder, I don't get the error message, but the images don't appear either. And it doesn't show the image that it's supposed to show if someone tries to hotlink it.

Stramm, I'm not sure how to enable the engine rewrite.

Any thoughts?

Thanks again

Cheers

Carl
Logged

Nibbler

  • Guest
Re: Hot Linking
« Reply #10 on: April 12, 2007, 09:20:01 pm »

The code I posted works as expected for me. Make sure you clear or disable your cache when testing.
Logged

Walkinman

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 380
    • Skolai Images - Nature, Travel and Adventure stock photos
Re: Hot Linking
« Reply #11 on: April 12, 2007, 09:22:07 pm »

Hey Nibbler,

I understand .. I expected it would work for me too. I might try contacting LP on this one, as it's probably not closely enough related to Coppermine to warrant me taking up more of your time.

Thanks for your help.

Cheers

Carl
Logged

PirateZipp

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 34
  • Hotimage.dk
    • HotImage
Re: Hot Linking
« Reply #12 on: April 16, 2007, 04:21:56 pm »

Hey...

please note this : Blocked Image URL

If you want to show an image for blocked hits, enter the URL below. NOTE: Make sure the image is not hotlink protected or your server can go into an endless loop.

Leave blank to just block the hits causing a red X to appear instead of the image.

------

You use this:

     RewriteEngine on
      RewriteCond %{HTTP_REFERER} !^$
      RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?skolaiimages.com [NC]
      RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?alaskanalpinetreks.com [NC]
      RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?naturescapes.net [NC]
      RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?naturephotographers.net [NC]
      RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?photoportfolios.net [NC]
      RewriteRule \.(jpg|jpeg|png|gif|tif)$ skolaiimages.com/images/hotlingstopper_2.jpg [NC,R,L]


You try to show a hotlink protected image instead of a hotlink protected image??

you need to place the image on another domain or in a sub domain...

thanks from here...i hopr it will help you out..
Logged
.

Nibbler

  • Guest
Re: Hot Linking
« Reply #13 on: April 16, 2007, 05:23:29 pm »

The domains listed in the code are the domains which are permitted to hotlink.
Logged

PirateZipp

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 34
  • Hotimage.dk
    • HotImage
Re: Hot Linking
« Reply #14 on: April 17, 2007, 03:05:05 am »

Yes and thats the problem... if i try hotlink to 1 of hes images it vill try to show skolaiimages.com/images/hotlingstopper_2.jpg
but its hotlink protcet.. and then you got the loop..

This code read the adressline in your browser to see whis domain try to show the image.. so it i cant find skolaiimages.com in the adressline it will not show the hotlink protectet image...

so if you realy wandt to have the replace image on your server use a subdomain or place a  with the valute:
Code: [Select]
RewriteEngine Offin the same folder as the replace image...

I use this code and it is working... you can modefy it to your needs:
Code: [Select]
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?de2dumme.dk [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?natteliv.net [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?xn--stttrup-r1a.dk [NC]
RewriteRule \.(jpg|jpeg|png|gif|bmp|iff|jb2|jp2|jpc|jpe|jpx|psd|swc|tif|tiff|ico)$ http://hotlink0vs56776lobsvv358n65mw8.de2dumme.dk/nohotlink.png [L]

Thank you from here...
Logged
.

Hercules24

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 71
    • High Resolution Party Pictures
Re: Hot Linking
« Reply #15 on: April 21, 2007, 08:38:35 pm »

I solved the 'deeplink loop problem' by removing gif from this list: (jpg|jpeg|png|gif|tif) and create an anti deeplink image in gif format.
All the pics they were trying to steal are in jpg format so these are still protected against deeplinking.
Logged
Pages: [1]   Go Up
 

Page created in 0.029 seconds with 20 queries.