We’ve received quite a few requests from you guys asking how you can password protect the movement from one panorama (or room) to the next. Especially for virtual escape rooms and e-learning where you want to make sure your visitors solved a problem before moving on, that is a crucial feature.
While there’s not a general setting to request a password before moving on to another panorama, this will do the trick:
if (window.prompt(‘Enter Code‘) == ‘1234‘) window.location.href = ‘https://www.domain.com/tour#media=2‘;
And that’s how you can password protect certain media or areas of your virtual tour to keep sensitive data protected or to add a gamification element to your virtual tour.
Note: Careful if you want to securely protect sensitive data with this. What’s password protected in this approach is the hotspot that leads to the new media. Somebody who knows or guesses the deep link URL may be able to directly access the media by typing in that deep link URL. If you really need to properly protect sensitive data, it would be better to create a second tour, password protect that entire tour (either in VT PRO if you host with 3DVista or else on your server) and then deep link to that other tour. That way, the password is based on the entire tour and your server rather than on the click of the hotspot icon which could be circumvented.