I am pretty new with Joomla and my first thought was to create a web gallery for my family. I’ll found a couple of Joomla galleries and (of course) I pick phoca gallery. I install it for testing and create my first gallery for registered users only. But I recognize that it is possible to access pictures by using the complete URL of the picture. I don’t like to allocate my private pictures to the whole world. So I found this thread for protecting the gallery folder with a .htaccess file viewtopic.php?f=1&t=2065&p=11983&hilit=protect#p11996.
But I think it’s not very useful to let the user login twice, one time for Joomla to see the gallery and second time to see the picture itself.
So my request is to change the access behaviour of the gallery. With this php-code
Code: Select all
<?php
$myImage = imagecreatefromjpeg('images/jpgFile.jpg');
header("Content-type: image/jpeg");
imagejpeg($myImage);
imagedestroy($myImage);
?>
Code: Select all
Order deny,allow
Deny from all
Allow from localhost 127.0.0.1
That does the developers think? Is that possible?
Kind Regards
Matthias
PS: Find attached my testing source.