Ability to require user to confirm and/or enter specific text before action / process will run

I would like a way to help prevent accidental clicking of buttons that run important / irreversible actions (like a large deletion for instance).
Here are some ideas on how I think one might go about tackling this, when the user clicks a button with this prevention measure enabled:
* Show the user a warning message, where I can designate the text they read, and they have to acknowledge by clicking a second "OK" button.
* Allow me to disable a button unless a checkbox I point it to is checked.
* Give me the option to require the user type in some specific text (something like "DELETE"),
* Allow me to designate a certain amount of time the user must wait (maybe 5 seconds?) before they can click a second button to perform the action (think: "display some warning text, give them time to read it")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.