coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: mahesh1825 on January 26, 2011, 09:20:33 AM

Title: Hotlinking prevtion through .hta
Post by: mahesh1825 on January 26, 2011, 09:20:33 AM
i want to prevent the hotlinking from the fullsize and intermediate images but. i want to allow the thumbs are being hotlinked. to achieve this i used this code in .hta file in root directory.

RewriteCond %{REQUEST_FILENAME} !(.*thumb|.*highlight) [NC]

Iam working on test bench so i can't post the working link

My question is is there any security threat to the gallery or functional difficulty for the version of 1.5.12?

i search the forum regarding this and found one but its based on 1.4.x and i don't have the required information on that.

http://forum.coppermine-gallery.net/index.php/topic,44005.0.html
Title: Re: Hotlinking prevtion through .hta
Post by: ΑndrĂ© on January 26, 2011, 09:52:22 AM
Should work in cpg1.5.x as in cpg1.4.x.