It’s a popular feature and it’s been implemented in Pano2VR. If the pano is not loaded from your domain URL, it will be locked.
This works – Link
While this will tell you the pano is not loading from the proper URL. Link.
This will of course prevent illegal copying of any pano works.
Check out Pano2VR Version 2.2 Beta 4.