Only background DoF

So I just built a dynamic DoF system. It works fine, but I don’t want dof in near object while focusing behind them. So I want a system that blurs the background but never blurs fore. I searched this for days but there is not a topic about it. Is it possible? Maybe I can do this with a blueprint setup?