[support] Prevent access to original images

Liviu Nicolicioiu liviu.nicolicioiu at epoint.ro
Sat Oct 1 15:04:43 UTC 2011


You can use imagecache to display
images resized and place an .htaccess in the directory with the original file.

In .htaccess add:

Order Deny,Allow
Deny from all



On Sat, Oct 1, 2011 at 4:43 PM, Peter Anderson <list at panda.id.au> wrote:
> Hi all,
>
> I want to allow my users to upload photos from their digital cameras. I
> will use Image Styles to resize and watermark the photos to display in
> galleries, etc. I then want to prevent access to the original,
> full-size, non-watermarked photos; but even using a private file system
> with the directory set outside the web root folder, it seems the
> original photos are still accessible if you know (or can guess) the URL...
>
> Is there any possible way to prevent anyone accessing the original
> photos, but allow full access to the image style derivatives?
>
> --
> Kind regards,
> Peter Anderson.
> http://panda.id.au
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>


More information about the support mailing list