Blender 2.8, EEvee, Limit sun distance

Is there a way to have a sun light reach to only a certain distance, i.e. light objects that are closer than but not farther than a selected distance?

What happens if you connect a color/light falloff node to a sunlamp? Never tried. Light nodes only work in Cycles though.

Use other light types for such thing and enable this:

fESG I know how to do that for other light types, but thanks for the reply. I will try CarlG’s method if I decide to switch to Cycles. Thank you both for your replies.