Search code examples
.netasp.netdecompiling

Can I protect my ASP.NET application against decompilers?


  1. I know also that ASP.NET when published can be precompiled
  2. I know that .NET applications are compiled to MSIL that are easily reverted to any .NET language through tools like Red Gate's .NET Reflector.
  3. I want to develop and deliver an ASP.NET site where the buyer will host the site and but cannot have access to the code.

There is any way to do that?


Solution

  • It's called "obfuscation". There are commercial products which do that. It will not exactly prevent decompiling, but it will mess up the insides of your program so much, that it will be difficult to make heads or tails of it.

    Note that it may also break your code under special circumstances, so you will have to play with its options until you get it to work.

    Dotfuscator is a popular one, and a stripped-down free community version comes with Visual Studio (not sure which editions though).