PDA

View Full Version : Allow hotlinking


director
10-20-2007, 03:54 PM
Any way to disable phpthumb to allow linking to an image outside of the server it is hosted on.

David
10-20-2007, 04:21 PM
You want to prevent people from linking to thumbnails?

director
10-20-2007, 05:35 PM
I want people to be able to link to the images and embed the images. When I now try to embed an image on another site, I get this message where the image would show


PhpThumb() version 1.7.7

AntiOffsteLinking() ................

James
10-20-2007, 06:13 PM
Ok I havent really dug into the admin to see if there is a setting there or not but in the
/libs/phpthumb/phpThumb.config.php line 161

$PHPTHUMB_CONFIG['nooffsitelink_enabled'] = true;


change that to false.

I will look at my test install to see if there is a setting. IF not it will be added thank you for bringing this to our attention.

Radi
10-20-2007, 06:23 PM
We don't have option for disabling this in admin panel, but I'll include it in next version.

Thanks,
Radi

director
10-20-2007, 11:38 PM
$PHPTHUMB_CONFIG['nooffsitelink_enabled'] = true;
change that to false.

I changed to false and it works. Thanks Dawzz for the help, that did the trick. Radi that would be a nice option in the control panel. Thanks again