Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 26th, 2005, 05:02 AM
Registered User
 
Join Date: Aug 2005
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

Hi!
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







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





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