Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Components
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 26th, 2005, 05:02 AM
Registered User
Join Date: Aug 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aaronsandy
Default securing a component and restricting it for localh

I am creating a dll in vb to store the connection strring for db server,so that other users,developers cant see the db login detail.
I am making this in VB6.0.
Here is the code

Option Explicit
Private conn As ADODB.Connection

Public Function setDBConnection() As ADODB.Connection
conn.Open "PROVIDER=SQLOLEDB.1;Server=serverip;Initial Catalog=dbname;UID=test;pwd=tester"
setMasterDBConnection = conn
End Function

Public Sub removeDBConnection(conn As ADODB.Connection)
Set conn = Nothing
End Sub
Later I want to use this dll in my asp script.
Now if I register this dll ,any users can guess the dll name and can use it like server.createobject("dllname.classname").This will be come a security issue.Is there is any way such that no users can use it like this.What I know is once a dll is registered it becomes global,like a CDONTS for sending mails.I want to restrict it only to local host.Is it possible to secure the dll


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Restricting the # of digits after a decimal in a K stevenyoo321 VB How-To 1 April 18th, 2007 07:52 AM
error occurs while uploading file to http://localh madhusrp ASP.NET 1.0 and 1.1 Professional 2 March 15th, 2006 11:41 AM
Restricting the data in a ComboBox hemanth_p2p Visual Basic 2005 Basics 2 January 10th, 2006 02:23 AM
Restricting the forms to move aspadda Excel VBA 0 February 16th, 2004 04:39 PM

All times are GMT -4. The time now is 12:48 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.