I have had this set up in the order of 50 years sailing it's easy to set up, easy to operate, and vaue for money. £7
It's an abseiling fitting, (I got it from my navy days) set it up on your boom towards the rear.
Thread rope from port side through hole in bottom of midship cleat, to fitting on boom down to stb side midship cleat, back to cockpit cleat.
Once rope is tight the boom is fixed, I have mine just less than tight and if boom swings across it goes slowly. Trial and error for your boat, It works.
Hope this helps
Odysseus
Bav 38.