Have you considered being the adult and doing some proactive childproofing? The areas you don't want her to get into? Put some childproofing zip-tie-type locks on them. (the ones where you have to press the buttons at the same time to release them).
I worked with toddlers for a long, long time. My strategies were always "change the environment/off reasonable distractions or substitutions". For a child this age, if they can't get into something they are curious about, the punishment is already in the 'not being able to'.... she is angry because she can't. So, some options are to removed the forbidden items for the time being and replace them with things she CAN do (limits her frustration) or to be aware of her tenacity and persistence and limit-- through childproofing-- access to those items. When my son (and so many of my other young charges) were this age and holding something they shouldn't, I would scoop them up, say "Oh, can I see what you found?" have them hand it over/take it from them and give them an immediate substitute "Look what I found for you! You may have this one." If they cried, I used empathetic language "Oh, you really wanted that (item) and it's not for you. I see you are sad. Let's find something else for you...." and again, distraction/redirection.
Some people might feel that childproofing at this age is a waste of time or that their kid needs to learn what NO means. Of course, all children need to learn that, but if the cabinet or cupboard isn't opening, that's an automatic "no". Kids at that age have no sense of the future consequences and have little to no regard for safety. I childproofed because I didn't want to spend my entire day in conflict and saying "no". Most toddlers and preschoolers throw tantrums, too, not because they can't have a certain item, but because they are being frustrated in their effort to achieve something. So, offering a child something engaging that they CAN do is a useful technique for the parenting toolbox. It doesn't always work, of course.
And some kids can be very strong willed. When tantrums arose for us at home, we just moved Kiddo to his room (any safe place will do) and said "I see you are really mad. Come on out when you are all done" and let him get his feelings out.
Here's the tricky thing with discipline--- I see it, at this age, as something I do WITH the child. I always offered a positive choice and an alternative which worked for me. Here's an example-- when Kiddo was about 2.5 or so, he had a desire to stand on the kitchen table and often, I'd be working at the counter, turn around, and there he'd be. Well, THAT was completely unacceptable, of course, so I would take him down and tell him "feet stay on the floor (pointing at his feet and then the floor) or you sit in the stroller". Simple, simple language. So, when he started to scramble up again, I would say "Ooops! I see you will be sitting in the stroller now." and buckle him in so that I could cook and keep him safe. (Any containment device will do, by the way...high chair, porta-crib, our umbrella stroller wasn't too big.) And I would just hand him a few things he could play with while sitting there. It wasn't a punishment, per se (the punishment/frustration --which registers in the pain centers of the developing brain at this age-- which is why your girl is raging), it was teaching him where he COULD be. It taught him that, when he tried to so something unsafe, his liberty would be revoked and he'd have to be 'grounded' (as it were) to the stroller. I do think they get the lesson of redirection better if we as parents do this as a guidance technique and don't look upon it as a power struggle.
That's the best advice I can offer you. I can also tell you, from my long experience working with toddlers, that this technique of offering the positive choice (safe hands or keeping feet on the floor or not throwing hard items) and the reasonable consequence (containment, hard toy being removed from the area, replaced with softer objects) is far better and makes more sense than time outs. Why? Because when we remove the problem item or put the child in a safer place, we have already solved the problem in the moment.
ETA: for Penny-- when your son smacks you in the face, do say "NO" firmly, but also put him down off your lap/out of your arms and walk away to another room. He'll see, physically, that you refuse to tolerate being hit, and that when he does that, he doesn't get to 'have you', as it were. He might want to be 'up' again immediately, ignore this. Two minutes away from mommy's arms or lap is plenty for little ones. If the hitting happens again, pop him in the pack-n-play "you play here now" and go about your business. When you are feeling calm inside and ready to pick him up again, do say "gentle touches" and keep modeling that for him, on his own body, have him (hand over hand--help him) give you gentle touches or the cat or a toy.... so he knows what it feels like. Just a 'no' is not enough, though, when he hits. DO remove yourself from his ability to hit you.