Limiting access in Silverlight\Pivotviewer

Posted by sparaflAsh on Server Fault See other posts from Server Fault or by sparaflAsh
Published on 2012-12-04T11:09:05Z Indexed on 2012/12/04 11:12 UTC
Read the original article Hit count: 357

Filed under:
|
|

I'm going to deploy a pivotviewer application.

As some of you might know this silverlight application load a .cxml index file for a group of images.

My need is to make .cxml file and image files not accessible for the user.

Now, if I don't have a need I usually code like this in C# and the file is hosted in the documentroot:

_cxml = new CxmlCollectionSource(new Uri("http://www.myurl.it/Collection.cxml", UriKind.Absolute));

This means that my cxml and then the images are available by http for everyone who knows the URI.

I'm a newbie to server configuration, so any help/hint would be deeply appreciated.

Someone suggested me to take the files out of the root, but it seems like I can't go to pick them up if they are not a URL in Silverlight. At least I didn't managed to understand how.

Someone else suggested me to play with web.config file to hide URLs, but I don't really know where to start.

My question is, what's the best practice to hide my stuff?

Obviously I can edit the question if you need more details.

© Server Fault or respective owner

Related posts about security

Related posts about url