There's no way to eliminate risk of injury, especially since you've already had back surgery. Start with leg presses. Go real light and as weight as you feel comfortable. Do leg extensions and curls as well. As your legs get stronger and if your back feels ok, move to hack squats.