Prevent un-authorised access to files.
-
Hi, I have help files written in HTML, which I display in my Win Form application using Web Browser component. But now I need to make sure that these files should be accessed only by my application, user should not be able to access these files from the location where these files are installed. Thanks, Karmendra
-
Hi, I have help files written in HTML, which I display in my Win Form application using Web Browser component. But now I need to make sure that these files should be accessed only by my application, user should not be able to access these files from the location where these files are installed. Thanks, Karmendra
Keep the help files encrypted and decrypt them before displaying them from your application.
«_Superman_»
-
Hi, I have help files written in HTML, which I display in my Win Form application using Web Browser component. But now I need to make sure that these files should be accessed only by my application, user should not be able to access these files from the location where these files are installed. Thanks, Karmendra
If you protect the files so that they are not accessible by the user, then they wouldn't be accessible by your application which the user runs. Possibly one way could be that you embed the help files to your application. In that case you don't have a separate help file at all. However, then you should extract the help and store it somewhere when you want to show it.
The need to optimize rises from a bad design.My articles[^]
-
Keep the help files encrypted and decrypt them before displaying them from your application.
«_Superman_»
Hi, I thought of the same thing, but I was wondering how to do it, can you tell me how can I encrypt ant keep the html files and then how can I decrypt it in the application. Thanks, Karmendra
-
If you protect the files so that they are not accessible by the user, then they wouldn't be accessible by your application which the user runs. Possibly one way could be that you embed the help files to your application. In that case you don't have a separate help file at all. However, then you should extract the help and store it somewhere when you want to show it.
The need to optimize rises from a bad design.My articles[^]
Hi, I meant users should not access the files directly in the installation folder and open and view it using there internet browser. The only way for them to access those files is via my application. As you suggest embedding it, can you tell me how that can be done, sorry This might be silly to ask but I am very new to .NET and C# Thanks for you help and time Regards, Karmendra
-
Hi, I meant users should not access the files directly in the installation folder and open and view it using there internet browser. The only way for them to access those files is via my application. As you suggest embedding it, can you tell me how that can be done, sorry This might be silly to ask but I am very new to .NET and C# Thanks for you help and time Regards, Karmendra
I think that the problem is that your web browser shows the document based on URL. So in my understanding you must point the url to a valid location where the html is located. Now where ever you store the html, I think it needs to be in a file, in clear format the moment the browser accesses it. If you embed it, you could write a temporary file and get the contents using GetFile method in Assembly class. After the help is closed, you would remove the remporarty file. The file itself is included in the project using Add Existing item in Project Explorer.
The need to optimize rises from a bad design.My articles[^]
-
Hi, I have help files written in HTML, which I display in my Win Form application using Web Browser component. But now I need to make sure that these files should be accessed only by my application, user should not be able to access these files from the location where these files are installed. Thanks, Karmendra
Encrypting the files individually would probably be less intrusive if you needed to update a single help file whereas there is no change to the application. You could embedd them but that would mean any change to the help file requires a new binary. From a support perspective, keep them seperate. Schott
-
Hi, I have help files written in HTML, which I display in my Win Form application using Web Browser component. But now I need to make sure that these files should be accessed only by my application, user should not be able to access these files from the location where these files are installed. Thanks, Karmendra
A combination of the suggestions above - why not create a seperate assembly that creates the html in memory or has them embedded - and use that to serve the html source to your main app. An update to the help would just require that dll to be redistributed.
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) -
Hi, I have help files written in HTML, which I display in my Win Form application using Web Browser component. But now I need to make sure that these files should be accessed only by my application, user should not be able to access these files from the location where these files are installed. Thanks, Karmendra
Unreadable help files? great idea. :omg:
Luc Pattyn [Forum Guidelines] [My Articles]
I use ListBoxes for line-oriented text output (not TextBoxes), and PictureBoxes for pictures (not drawings).
modified on Friday, June 10, 2011 12:18 PM
-
Unreadable help files? great idea. :omg:
Luc Pattyn [Forum Guidelines] [My Articles]
I use ListBoxes for line-oriented text output (not TextBoxes), and PictureBoxes for pictures (not drawings).
modified on Friday, June 10, 2011 12:18 PM
:-D These help files are not related to using the software it is having information related to any experiment, and in Examination mode I do not want users to see them.
-
A combination of the suggestions above - why not create a seperate assembly that creates the html in memory or has them embedded - and use that to serve the html source to your main app. An update to the help would just require that dll to be redistributed.
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)Hi, Thanks for all you r efforts, but i am very new .Net C#, I am not sure what you mean "embed the html", Do you mean write code that will generate the Html? Please Explain. Thanks, Karmendra
-
:-D These help files are not related to using the software it is having information related to any experiment, and in Examination mode I do not want users to see them.
Hi, you could add an "enter password" dialog to the HTML code, have most of the page content encrypted and include some JavaScript that checks the password and decrypts the text. Don't ask me for details though, I'm not inclined to do such things myself. I'd rather create my own file type and non-HTML browser. :)
Luc Pattyn [Forum Guidelines] [My Articles]
I use ListBoxes for line-oriented text output (not TextBoxes), and PictureBoxes for pictures (not drawings).
modified on Friday, June 10, 2011 12:19 PM