The following is one method that you can use to restrict linking of your content to only the URLs that you specify.
The attached zip file contains a proto called EmbeddingManager and a usage example. Place EmbeddingManager.wrl in the same website folder as your content and create an EXTERNPROTO declaration at the top of your content WRL like so:
EXTERNPROTO EmbeddingManager [Next, you must create an instance of the proto and move your content into the allowedContent field. In the deniedContent field you can add any nodes that you wish to be displayed if someone attempts to embed your content from another website. Typically you'd add a copyright notice and link (anchor) to direct people back to your own website.
field MFString allowedUrls
field MFNode allowedContent
field MFNode deniedContent
]
"EmbeddingManager.wrl#EmbeddingManager"
EmbeddingManager {
allowedUrls [
"http://www.mysite.com/content.wrl"
"http://www.mysite2.com/content2.wrl"
]
allowedContent [
# Place the content you wish to protect here.
]
deniedContent [
# For example, add a copyright notice and link to your website here.
]
}Lastly, populate the list of allowedUrls. The allowedContent will be displayed only if used (via Inline, createVrmlFromURL or HTML object/embed) from one of these allowedUrls. Otherwise, deniedContent will be displayed. See the example in the zip archive for further clarification.