Protecting asp codehttp://forums.asp.net/t/1682751.aspx/1?Protecting+asp+codeFri, 27 May 2011 09:03:34 -040016827514426530http://forums.asp.net/p/1682751/4426530.aspx/1?Protecting+asp+codeProtecting asp code <p>Hi members how can i protect my asp code from being read by unauthorised users</p> 2011-05-20T17:28:58-04:004426567http://forums.asp.net/p/1682751/4426567.aspx/1?Re+Protecting+asp+codeRe: Protecting asp code <p>You can precompile your code...</p> <p><a href="http://msdn.microsoft.com/en-us/library/bb398860.aspx">http://msdn.microsoft.com/en-us/library/bb398860.aspx</a></p> <p>&nbsp;</p> <p>Matt</p> 2011-05-20T17:56:02-04:004426650http://forums.asp.net/p/1682751/4426650.aspx/1?Re+Protecting+asp+codeRe: Protecting asp code <p>One way is precompiling ..second is publishing your code instead of an XCopy deployment..Third way is via a sound architecture</p> <p>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</p> 2011-05-20T19:22:23-04:004428911http://forums.asp.net/p/1682751/4428911.aspx/1?Re+Protecting+asp+codeRe: Protecting asp code <p>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. </p> <p>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.</p> <p>Hope this gives you some idea or please elaborate your requirement.</p> 2011-05-23T13:59:56-04:004434928http://forums.asp.net/p/1682751/4434928.aspx/1?Re+Protecting+asp+codeRe: Protecting asp code <p>Publish your web site and place all code inside Assembly, not require to deploye code file.</p> <p>You can offuscate your code and protect it from being ready by anyother disassembler. Your aspx file will remain as it is.</p> <p>&nbsp;</p> 2011-05-27T09:03:21-04:004434929http://forums.asp.net/p/1682751/4434929.aspx/1?Re+Protecting+asp+codeRe: Protecting asp code <p>Publish your web site and place all code inside Assembly, not require to deploye code file.</p> <p>You can offuscate your code and protect it from being ready by anyother disassembler. Your aspx file will remain as it is.</p> <p>&nbsp;</p> <p>&nbsp;</p> 2011-05-27T09:03:34-04:00