Cycles Hdri's?

Ok so I know how to load a hdri into cycles and make it light a scene but is there a way were it doesn’t show the Hdri in the background. So I could have a different background but still have it light it???

You have to set your viewport from camera, not perspective.

And the back ground to transparent in integrator settings…