Solved Disable the setting of AllowBypassKey property from another db (1 Viewer)

bob fitz

AWF VIP
Local time
Today, 07:07
Joined
May 23, 2011
Messages
4,729
Does anyone know of a way to prevent the setting of the AllowBypassKey property being changed by another db
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 14:07
Joined
May 7, 2009
Messages
19,249
it is a database property, so directly to the database, no you can't prevent others.
but if you use a 3rd Tier accde db (without table), it can be cracked but will
give it a hard time to figure out where the data is coming.
 

isladogs

MVP / VIP
Local time
Today, 07:07
Joined
Jan 14, 2017
Messages
18,293
No - any database property can be modified externally.
Suggest using a combination of measures to make it more difficult for others to break your security.
For example, see
 

bob fitz

AWF VIP
Local time
Today, 07:07
Joined
May 23, 2011
Messages
4,729
....but if you use a 3rd Tier accde db (without table......
Can you tell me more about this. I know what an accde file is but what is a "3rd Tier accde db"
Thanks for your interest.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 14:07
Joined
May 7, 2009
Messages
19,249
forget about 3rd tier, you can do it on the FE.
instead of Binding your Form/Report to a Table or Query,
use the Load/Open event of your Form/Report to set the recordsource/recordset.
so no table/query exists on your db.

of course this is hard coded, so the path to your BE
must also be fix.
 

bob fitz

AWF VIP
Local time
Today, 07:07
Joined
May 23, 2011
Messages
4,729
No - any database property can be modified externally.
Suggest using a combination of measures to make it more difficult for others to break your security.
For example, see
Hi Colin. Thanks for your interest.
It was looking at that link that prompted me to ask the question that I asked.
Perhaps I've missed something there but it seemed to me that once the AllowByPass property is changed back it allows someone to undo most of the other things?
 

strive4peace

AWF VIP
Local time
Today, 01:07
Joined
Apr 3, 2020
Messages
1,003
hi @bob fitz

while you can't prevent someone else from changing AllowSpecialKeys from another database, you CAN redefine what F11 does with an AutoKeys macro (that you could mark to be Hidden). This is example just shows a message box. Instead, it could set itself back, along with other properties like StartUpShowDBWindow, and exit the database! Maybe even trigger running a batch file after the database is closed with some scary message.
Autokeys_redefine_F11.png
 

isladogs

MVP / VIP
Local time
Today, 07:07
Joined
Jan 14, 2017
Messages
18,293
Hi Colin. Thanks for your interest.
It was looking at that link that prompted me to ask the question that I asked.
Perhaps I've missed something there but it seemed to me that once the AllowByPass property is changed back it allows someone to undo most of the other things?

Yes that is indeed true.
The third part of that article contained a list of proposed additional security measures which I sent to MS & which would help to plug some of the weaknesses in Access security. See:

However, if you use a number of different security measures, they will need to identify each of those and then overcome them if they know how.

What @arnelgp was referring to, is the use of disconnected ADO recordsets.
I have an example of that approach you can look at & try to 'crack' if you wish:

In the end, how much security is worth using will largely depend on who you are trying to protect your databases from
 

isladogs

MVP / VIP
Local time
Today, 07:07
Joined
Jan 14, 2017
Messages
18,293
while you can't prevent someone else from changing AllowSpecialKeys from another database, you CAN redefine what F11 does with an AutoKeys macro (that you could mark to be Hidden).

Just to clarify, disabling special keys such as F11, has absolutely no effect on the shift bypass. That has to be disabled separately.
 

strive4peace

AWF VIP
Local time
Today, 01:07
Joined
Apr 3, 2020
Messages
1,003
yes that's true ... just that the Autokeys macro DOES run even if the database is opened with Shift ... so it could contain other definitions as well
 

isladogs

MVP / VIP
Local time
Today, 07:07
Joined
Jan 14, 2017
Messages
18,293
yes that's true ... just that the Autokeys macro DOES run even if the database is opened with Shift ... so it could contain other definitions as well
Yes of course any code will run after the database has been opened using the shift bypass.
All that does is prevent code running at startup
 

Users who are viewing this thread

Top Bottom