leeching protection for coppemine? leeching protection for coppemine?
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

leeching protection for coppemine?

Started by borru, May 03, 2005, 03:12:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

borru

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.

OmegaGOD

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


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
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.