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

Turn on/Off #2

Closed JohnBergman closed 4 years ago

JohnBergman commented 7 years ago

Can this be turned on / off without uninstalling/installing? Also, if the Umbraco instance hosts multiple sites, does it affect a single one, or is it across the board?

AnthonyCogworks commented 7 years ago

Multiple sites will work just fine assuming you mean each site is a different domain.

Turning on and off is not something we considered, as it's kind of a set and forget lock-down. However, it should be really trivial to add a flag in the XML. I'll see if we can add it in the next couple days.

JohnBergman commented 7 years ago

So it's possible to lock one site, but not another in the same Umbraco instance?

Thanks for adding the setting :-)

AnthonyCogworks commented 7 years ago

YES! Simply specify the domains you want to lock in /config/SiteLock.config

`

localhost staging.sitelock.local

`

Full doc: https://our.umbraco.org/FileDownload?id=17537