I'm trying to get Media Protect 2 set up on a new site running on Umbraco 7.6. I've protected a folder and added a few images and PDF files - the PDF files are protected correctly but I can still access the images. The log in the database shows the images as unprotected and the PDF as protected.
I opened each file in a new private window so there's no previous session cookies. We haven't bought a licence yet so the site is running over localhost.
I tried adding the <protectCropperImages>true</protectCropperImages> option to the config which worked on older versions of Media Protect but that doesn't seem to have any effect now - is that setting still relevant for Media Protect 2?
Looks like the HTTPModule is not running, see the manual how to fix that. That could cause this issue. Otherwise check the Umbraco log file for errors please.
The HTTP module is registered in the web.config. The mediaprotect.txt file under App_Plugins/mediaprotect reads "This is a markerfile don't delete" - is that correct?
I'm not getting any errors in my Umbraco log file, however I have turned on debug logging and get the following two entries for my PDF file and image in the log:
Both of these files are inside the same folder in the media library so they should be inheriting the same media protect permissions, yet the image is flagged as unprotected and the PDF is protected.
Media Protect 2 not blocking images on 7.6
Hi Richard,
I'm trying to get Media Protect 2 set up on a new site running on Umbraco 7.6. I've protected a folder and added a few images and PDF files - the PDF files are protected correctly but I can still access the images. The log in the database shows the images as unprotected and the PDF as protected.
I opened each file in a new private window so there's no previous session cookies. We haven't bought a licence yet so the site is running over localhost.
I tried adding the
<protectCropperImages>true</protectCropperImages>
option to the config which worked on older versions of Media Protect but that doesn't seem to have any effect now - is that setting still relevant for Media Protect 2?Hi James,
Looks like the HTTPModule is not running, see the manual how to fix that. That could cause this issue. Otherwise check the Umbraco log file for errors please.
Hope this helps,
Richard
Hi Richard,
The HTTP module is registered in the web.config. The mediaprotect.txt file under App_Plugins/mediaprotect reads "This is a markerfile don't delete" - is that correct?
I'm not getting any errors in my Umbraco log file, however I have turned on debug logging and get the following two entries for my PDF file and image in the log:
Both of these files are inside the same folder in the media library so they should be inheriting the same media protect permissions, yet the image is flagged as unprotected and the PDF is protected.
Hi,
No that indicates that the HTTPModuel is not running. when it is running properly it returns true.
Please check that you are running in integrated mode.
Best,
Richard
I have the same situation. I am running Umbraco 7.6.6, and my IIS7 application pool value for my site is set to "Integrated."
Also this is what my httpModules code looks like in my web.config
What else can we check to make sure Media Protect has all the prerequisites needed to run?
Thanks
Hi as mentioned on the other thread your HTTPModule is not running an as seen in this snippet it is not in.
The manual describes how to manually configure the module in this case.
But if you add
MediaProtect" />
It should be fine.
Best,
Richard
is working on a reply...