I have created views with thumbnails. I notice that when I hover over the photos, they show the link to the photos for direct download. For example: www.example.com/default/sites/files

Now, anybody could go to the link. How do you block it from being viewed at the button of browser or shown at all ?

Generally, what should be done to secure links to direct photos download page ? The idea is that I upload a photo using CCK, then shown in the download page in a smaller version. For full version, I only allow subscriber only that shows link to the original photo download.

How do I accomplish this please ?

Thank you

Comments

devin carlson’s picture

Status: Active » Fixed

Using views, you can specify where the image links to (or if it links to anything at all), however, website visitors will always be able to view images by guessing their URL unless you configure Drupal to use a private file system. However, be warned that using a private file system will increase server load.

The best way to restrict content depends on what you are trying to do. If you use organic groups, you could limit content to only group members. If you require a user to pay in order to download images, take a look at the Ubercart module which can provide that functionality when combined with a few other modules.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.