![]() |
|
php file in the album's directories to redirect the curious - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: php file in the album's directories to redirect the curious (/thread-7829.html) |
php file in the album's directories to redirect the curious - vincent3569 - 2010-11-09 hello now, if we know the path to the files, it is entirely possible to view pictures, even if the gallery is private and is protected by a password. it's right ? to fix this problem, it is possible to put a php file with the following code in all directories and subdirectories under Albums: ` ` Is it possible to create a plugin that automatically write this file in all directories found on the site? I do not have the skills to do this in php. php file in the album's directories to redirect the curious - sbillard - 2010-11-09 If the album folder is within the web path and you have no .htaccdess prevention then, yes, someone can view the image. I am not sure what you are attempting with that PHP script. But it would not prevent a direct link to the image file. Pretty much the only way to do that is as above--external album or .htaccess protection. php file in the album's directories to redirect the curious - acrylian - 2010-11-10 Take a look at our troubleshooting, there is a template file of a .htaccess file for preventing hotlinking. No guarantee that it works on every server as expected though. php file in the album's directories to redirect the curious - DetlevCM - 2011-06-08 I just thought I'd comment: On IIS you cannot use .htaccess - so there is not way of locking out the album folder... One way of securing data that I came across, is by moving the folder out of the webroot path. I.e. php file in the album's directories to redirect the curious - acrylian - 2011-06-08 Quote:On IIS you cannot use .htaccess You can move the albums folder out of the webroot but that will make it impossible to use multimedia items. These will not work then, at least not with our standard player. |