Show panoramas only on permitted sites

  • Hi. I've tried to search for an answer to this but not sure if I've found the right one.

    All my panos are hosted on mydomain.com. I give my clients access to their panos via an iframe so they can embed on their own websites (clientdomain.com). Is there a way to limit the display of the panos to only mydomain.com and clientdomain.com? At present it's very easy for my clients to just share the iframe code I give them to other 3rd parties that have not licensed the panos.

    Will using the "Limit Domains" function in the Protect Tool solve this for me even when using iFrames?

    Thanks for any help
    Thomas

  • When content is displayed through iframe, krpano will only get the domain name from the src attribute of the iframe, which will be your domain.
    You should disable iframing of your site content through 'X-Frame-Options' header of apache web server. You should be able to white list the domains that you want allow iframes on through that header.
    Or, you can try using javascript to verify domain name before allowing your tour to be displayed in iframe. Something like this:

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!