Securing ASP source

Posted on 2000-04-08
Last Modified: 2006-11-17
I do not want the server admins to see (and rip) my ASP scripts. How can I encode them, or password protect.
Maybee ussing SSI and RealTime decode their contents, when IIS reads them?
Does anybody knows a method like this, or a different one?

Question by:cosie

Author Comment

ID: 2696084
Adjusted points from 100 to 400

Author Comment

ID: 2696110
Adjusted points from 400 to 900

Expert Comment

ID: 2696229
I guess the only way to do this is to make your scripts in to DLL files (using COM) and on the ASP pages you pass in the varables and the DLL returns a a huge string with all your HTML output.

More on this at:
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.


Expert Comment

ID: 2696438
Yep ruperts right...
Make ASP components with VC++, VB or Delphi ...
look there for some examples.
LVL 18

Expert Comment

ID: 2696482
Or you can use the Microsoft Script Encoder, check here;

I use it for some of my more sensitive scripts and find it to be more than adequate.  Plus you don't need to register any components so your ISP is out of the loop, the only caveat is they must be running 5.0 script engine.  Try it!
LVL 13

Expert Comment

ID: 2696679
script engine and MSIE5 isnt it??
How good is it then??
LVL 18

Expert Comment

ID: 2697011
No, the script engine is for VBScript processing and is embeded in the asp.dll reference.  You don't need IE5 or IIS 5, I use IIS 4 and IE 4.7 with no problem, the engine is what you need to verify.  Run this against your server;

<%@ language=VBScript%>

'**Start Encode**
Function GetScriptEngineInfo()
 Dim s
 s = ""                        ' Build string with necessary info.
 s = ScriptEngine & " Version "
 s = s & ScriptEngineMajorVersion & "."
 s = s & ScriptEngineMinorVersion & "."
 s = s & ScriptEngineBuildVersion
 GetScriptEngineInfo = s      ' Return the results.
End Function

<%= GetScriptEngineInfo %>

It will tell you what version of VBScript engine your ISP is using, if he's not running > 5.0, demand it!


Accepted Solution

jkunal earned 900 total points
ID: 2699046
This is what you want..............

ASP2DLL converts and optimizes ASP web applications or plain HTML to Visual Basic 5.0, 6.0 source code for compilation of your web application into an ActiveX COM DLL file for maximum performance, safety and security.  
If you are serious about site performance, you will quickly see how ASP2DLL will save you time & money by making your existing ASP applications faster and more reliable :

You can download it from.........
LVL 18

Expert Comment

ID: 2701025
One problem with ASP2DLL is that most ISP do not allow third-components, just try asking then to install and register a .dll...

In fact, try asking server-admins to register COM objects... sometimes they freak out...

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
format nvarchar field as mm/dd/yyyy 4 78
HTML in email body has extra  tick marks 3 87
If condition on Html with Asp 11 27
IIS components 2 14
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: and…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In a recent question ( here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question