Solved

VBScript / Hide Source Code

Posted on 1996-12-30
1
775 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to create a table with buttons 3 31
HTML5 storage and web apps 11 49
Popup write two lines 3 22
Regular Expression needed 4 16
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

733 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