First, let's take a look at the structure of a typical integrated stepper motor:
In addition to the motor itself at the front, the rear section of an integrated stepper motor is occupied by the components of the built-in driver.
For comparison, a conventional brake motor is typically structured as follows:

The brake is secured to the rear of the motor with screws, and the internal locking mechanism is connected to the rear shaft of the motor. For details, please refer to:
How to Install a Brake on a Motor
From the perspective of installation requirements, an integrated stepper motor does not have the conditions for directly installing a brake (there is no rear shaft extension, and there is no space at the rear for machining the screw mounting holes required to secure the brake). Therefore, a rear-mounted brake is not feasible.
For this special situation, a common alternative is to add a brake to the end where the motor drives the load. Since the motor's front output shaft is already occupied by the load, there is no extra space to connect the brake. In this case, a shaft can be extended from the load side for connecting the brake. When the position needs to be held after power is removed, the load side can be directly locked.
It should be noted that the braking torque of the load-side brake should preferably be around 2 times the motor's rated torque. This is to ensure safety. For a vertical axis, 3 times is recommended.