Disable public page but keep the player working and embeddable
With a reference to: "Password Protection Accessing Public Page - Option for each radio" https://features.azuracast.com/suggestions/86656/password-protection-accessing-public-page-option-for-each-radio
Currently, disabling public pages also 'kills' the embeddable player (attempt to access it results in a 500 'station not found' error message). What I'd like to propose is to keep the ability to use the embeddable player when public page is disabled. This would enable users to embed their players on their websites and hide them behind paywalls, login forms, etc. without a risk that someone discovers how to listen to their radio for free and without control. ;)
Comments: 1
-
19 Jul, '21
JroTry something like this in the custom JS:
if(window.top == window.self) {
window.location.href = "/404";
} else {
}