If it is general blocking a set of users then a logon trigger will do the trick.
But if you want to block Server Admins & Developers with Server Admin rights then it gets more tricky as they can always start sql with single user mode and minimal configuration which will prevent the login triggers from running.