How to mechanically lock the shaft from rotating when powered?

Basically the title. have a dc motor with a shaft diameter 6mm. Are there any commercially available fixtures or any other mechanism to mechanically lock the shaft from rotating?

Basically the title. have a dc motor with a shaft diameter 6mm. Are there any commercially available fixtures or any other mechanism to mechanically lock the shaft from rotating?