Re: Protecting ASP code

From: Jeff Cochran (jeff.nospam_at_zina.com)
Date: 12/07/04


Date: Tue, 07 Dec 2004 15:05:51 GMT


>I did write some asp code, that I sell to companies, to control several
>dbases. Because I sell the code, it's not that they own the code and can
>sell it further or change the code, or add some extra code to it. It's like
>I'm selling a program like Excel and that they can use the program, not
>change it. I'm still the rightful and intellectual owner.

Make sure your license agreement states that.

>It would be a lot nicer and easer if I can deliver some protected code that
>they can't change! This will make my live a lot easer regarding updates. And
>I will sleep better because they can't see the raw asp code,
>copy/past/change and sell it or worse, going to competitors.

It's called a DLL. Put at least some of your logic, maybe
authentication code, into a DLL and it's tough to reverse engineer.

>Using dll's would be nice and could be a solution, but then
> a) I've to buy "Visual-Basic" or something else to do this.
> A question that is running in my mind is : Is "visual-Basic"
> the good/perfect programming language to do this? Some people
> did always say that C++ is mutch better in performance and
> is thread save. I can write Delphi also, is this a way to go?
> But how?

Bummer. Haviung to buy developer tools to be able to develop and sell
a product. That's shameful. As bad as having to buy a pizza oven and
a delivery car to run a pizza shop.

> b) Then I have to put all my pages in DLL form. (login.asp ->
> will be : login.dll) or do I have to protect only portions of
> my asp pages, but still then, they could change or implement
> some extra code in the pages and that is not what I'm searching
> for.

If you want them to change *nothing* then you have to use an
environment that isn't designed for simplicity in changing code.

> c) will this dll solution be steady enough against asp code. I
> know from asp-code (I'm writing in UltraEdit, so I have a low
> cost regarding buying all the software I need for my work. This
> is important for me!) that I can write heavy used pages with no
> problems at all. What with dll-pages? What with MTS?
> d) Asp gives you the fast solution in debugging, because there is
> no compilation involved so you can directly write/change your
> code without compiling, installing and register your code. Is
> this not a drawback in a dll solution, or is there a good
> debugging environment for dll coding for iis?
>
>The best solution for me is : some sort of opensource script language that
>you can use like asp, but with some build in
>
>function like
> a) Create iis readable script
> b) Create iis dll script
>
>So when a webpage is done, you could create a filename.dll file and put this
>on the webserver without losing any functionality from the previous readable
>script like filename.asp. Better would be, that the file extension would
>stay filename.asp for the dll version, this to protect my inline hyperlinks.

So write this type of environment yourself.

There are advantages and drawbacks to every programming choice. Match
the techniques to your needs.

Jeff



Relevant Pages

  • Re: Protecting ASP code
    ... It's regarding protecting asp code. ... > It would mean a lot for me, if you could help me to protect my code ... > d) Windows Script Encode, ... > c) will this dll solution be steady enough against asp code. ...
    (microsoft.public.inetserver.asp.general)
  • php5activescript mostly works but odd gaps
    ... It has worked with ASP for years (Dynamic-CD) ... php-activescript.ini or add in and recompile the dll. ... directory as specified but are not available to chained script files. ...
    (comp.lang.php)
  • Re: can i load my own dlls into services.exe, if how
    ... ISAPI extensions and ISAPI filters can be useful. ... > DLL via JScript 'new ActiveXObject' or the VBscript equivalent in your ASP ...
    (microsoft.public.windowsce.app.development)
  • ASP / ASP.NET
    ... Ich habe folgendes Vorgehen mit ASP erfolgreich getestet: ... Eine Active-X DLL übernimmt die Abfrage der ... (hat nichts mit dem Request aus ASP zu tun). ... es ist effizient und recht schnell weil die Abfrage der Datenbank ...
    (microsoft.public.de.german.entwickler.dotnet.asp)
  • Re: Registering a .NET assembly for COM interop access from an ASP page
    ... If I put my DLL in ... problems with ASP pages calling a strongly named assembly, ... Pointer to a null-terminated string that specifies the full path to ... So the IIS process or dllhost will check the lpCurrentDirectory in their ...
    (microsoft.public.dotnet.framework.interop)