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: leeching protection for coppemine?  (Read 3022 times)

0 Members and 1 Guest are viewing this topic.

borru

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
leeching protection for coppemine?
« on: May 03, 2005, 03:12:36 am »

is there any leeching protection avalible for coppermine?
I mean that if someone links pics prom my server to some other website or someting... that he could get one other image that says for example to visit that website where the image is hosted.
Logged

OmegaGOD

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • I approve.
Re: leeching protection for coppemine?
« Reply #1 on: May 03, 2005, 03:44:08 am »

If you webserver is running Unix/Linux and your webhost allows for .htaccess, you can create a .htaccess file that will prevent hot-linking.

Code: [Select]
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://www.yoursite.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yoursite.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://yoursite.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://yoursite.com$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp.*.*jpg|jpeg|gif|png|bmp)$ http://www.yoursite.com [R,NC]

I would also recommend searching google as there are lots of sites that will detail for you hot to use .htaccess to prevent hot-linking

--OmegaGOD
Logged
Please do not PM me with support questions. Please read the manual and then if posting questions please place them in the proper sub-boards.
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 16 queries.