Protect ASP .NET Source code

  • Thread starter Ganesh Muthuvelu
  • Start date
G

Ganesh Muthuvelu

Hi,
I have a ASP .NET application that we give to our clients
for them to deploy it in their web server and use it. My
concern is that all of my ASPX pages source code is open
and our clients can open the ASPX file and see the code in
it.

I want to protect my code something like a Windows
application where we give only the .EXE and the dll's. Is
there a way to do the same for ASP .NET applications
also?..

Can anyone guide me with useful likns, tools etc.,?

Thanks,
Ganesh
 
M

Marina

This is why ASP.NET has the code behind model, which you should use. This
means all code is in .vb file, that gets compiled to a DLL when you compile
your project. You then deploy just the .aspx files (which have UI only) and
the dll, which has the compiled version of your code.
 
S

S. Justin Gengo

Ganesh,

On top of using the code behind page as Marina recommends, you can also use
the .Net Obfuscator on the generated .dll; then, even if, someone were to
open the .dll with the Ildasm.exe (Which allows you to examine the code in
the .dll) the friendly object names in your .dll files will be replaced with
difficult to read names. This makes it much more complex for anyone to
reverse engineer your .dlls.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
 
K

Kevin Spencer

.... Of course, if anyone can get into the file system on your web server to
look at the files contained therein, you have a serious security problem
already that has nothing whatsoever to do with ASP.Net.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top