Last post May 27, 2011 05:03 AM by jkmaheta
May 20, 2011 01:28 PM|thedjay|LINK
Hi members how can i protect my asp code from being read by unauthorised users
May 20, 2011 01:56 PM|AZMatt|LINK
You can precompile your code...
May 20, 2011 03:22 PM|Shakti Singh Tanwar|LINK
One way is precompiling ..second is publishing your code instead of an XCopy deployment..Third way is via a sound architecture
For every page create a user control which will contain UI and logic..compile all these controls in a seperate assembly and load them on demand..This way even if user gets to aspx they will find just plain files with no code since code is inside dll..to
secure dll use obfuscation
May 23, 2011 09:59 AM|GPankaj|LINK
Can you provide more details. Are you trying to protect plain asp code or asp.net code. From whom you are trying to protect, the person who has access to the file system to read your code or are you trying to prevent users from reading your code in web server.
Pre-Compiling and publishing your code may help but the user who would be viewing this code would be authorised user of the web server, so there is no question of unauthorized user.
ASP or ASP.net code is never sent to the client browser but renders to pure HTML so there is no question of viewing the source code.
Hope this gives you some idea or please elaborate your requirement.
May 27, 2011 05:03 AM|jkmaheta|LINK
Publish your web site and place all code inside Assembly, not require to deploye code file.
You can offuscate your code and protect it from being ready by anyother disassembler. Your aspx file will remain as it is.