Jump to content

How to deny access to images attached to not accessible pages?


Recommended Posts

Posted

Hi,

I have a page for which I manage access so that guest users can not view it. This page has attached an image.

Of course, the basic page access settings works as expected for guests by denying them to view the page. However, when I, as a guest user, access directly the attached image via its URL then I can view the image!

How can I deny access also to the image?

 

Posted

You need to add pagefileSecure-setting to your /site/config.php file, and set it to "true":

$config->pagefileSecure = true;

More details here.

  • Like 4
  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...