thecogworks / Cogworks.SiteLock

A security package for Umbraco 7. Lock down an Umbraco website from viewers. Only users who are logged into the backoffice can see the public website.
MIT License
10 stars 5 forks source link

This type of page is not served #5

Closed bsubasic closed 3 years ago

bsubasic commented 6 years ago

Umbraco ver. 7.11.1 SiteLock ver. 1.2.0

I'm trying to figure out why this error appears, the main functionality is correct (website is locked and returns 403 forbidden if I'm not logged in) but it doesn't show up message from 403-sample.html template. I can access this page directly through the url btw.

Is this some incompatibility with the newer Umbraco version or some misconfiguration in the IIS or web.config?

Thanks

sitelock


<configuration>

  <lockedDomains>
    <!-- Uncomment to lock all domains -->
    <domain>*</domain>
  </lockedDomains>

  <allowedPaths>
    <!--Regular expressions-->
    <path>^/about(.*)</path>
    <path>/403-sample.html</path>
  </allowedPaths>

</configuration>```
AnthonyCogworks commented 6 years ago

I think you need a web.config setting:

https://www.troyhunt.com/solving-tyranny-of-http-403-responses/