Preventing file leeching with Gallery2 (url has no .jpg)

ceenda

Joined: 2003-05-29
Posts: 3
Posted: Fri, 2006-03-10 10:31

I used to use a standard .htaccess file to prevent people leeching photos from Gallery 1. The "image location" always defaulted to a specific .jpg/.gif/.png file.

However, I've noticed that gallery2 now uses a url with a php command to grab the image.

This means that remote-linking this image won't be considered leeching by .htaccess as it is main.php on the local server that is calling it.

Any advice? I couldn't find "leeching" in the Gallery2 FAQ.

 
ceenda

Joined: 2003-05-29
Posts: 3
Posted: Fri, 2006-03-10 11:23

Apologies, apparently the word is "hotlinking" and there are lots of search results for it. I had not set up the URLRewrite module correctly.