Solved

VBScript / Hide Source Code

Posted on 1996-12-30
1
749 Views
Last Modified: 2012-06-21
1) Is there a way to keep people from viewing the
source code of HTML files?

2) When using VBScript in HTML files can the actual VB code be placed in another file like you would do with CGI scripts, or does the code actually have to be placed in the HTML file, and if you can put VBScript in another file, how would you call it in the HTML file?

Thank you in advance... I hope you understand what I'm asking, it's hard
to put in words.

Peter Fuller

0
Comment
Question by:kowgod
1 Comment
 

Accepted Solution

by:
tlangan earned 50 total points
ID: 1835877
1) No, and 2) yes.  You can download for free at the MS web site a program called "Microsoft ActiveX Control Pad" which is an environment for writing VBScript, JScript, and linking them with ActiveX controls.  You can create something called an "HTML Layout".  This is a seperate file (usually with the ".ALX" extention.  Within code, you can call an HTML layout.  This can be done quite easily with the ActiveX Control Pad (which also automatically inserts those tricky ActiveX ID-#'s (You can insert ANY ActiveX control installed with your copy of IE 3).

Once you are finished, it will look something like this:

<OBJECT CLASSID="CLSID:812AE312-8B8E-11CF-93C8-00AA00C08FDF"
ID="mplayer_alx" STYLE="LEFT:0;TOP:0">
<PARAM NAME="ALXPATH" REF VALUE="file:C:\FrontPage Webs\Content\mplayer.alx">
 </OBJECT>

So, basically, the code will be an object inserted into your HTML page.  The only way one could access your ACTUAL code is by downloading and viewing the actual ALX file, making your code much more secure.


0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now