I’ve tried. My son is obsessed with the roomba. So I every time he goes there I carry him and tell him no touch and then put him where his toys are and as soon as I put him down he crawls right back there like 5 times.
Saying "no" can kinda work, sometimes. There are things my son is not touching most of the times now, but sometimes he still does. "No" and/or "you're not allowed to do that" combined with his name maybe. But you still have to get there and be ready physically move them away
We don’t discipline. Or yell. But use a stern/serious voice and tell him “no” “danger” and he DOES seem to get it, most of the time lol. He’ll kinda stop what he’s doing for a moment but then goes back to it. I feel like distractions work the best
Redirecting mostly like you can’t have the curtain cords but here are your bungee toys and at times just being serious and saying no he’s learned to put things back when I say no