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