In Juniper Direct routes is the equivalent of connected routes so you should reject those routes if you do not want to advertise them:
set policy-options policy-statement advertise-routes-through-rip term 0 from protocol direct
set policy-options policy-statement advertise-routes-through-rip term 0 then reject
set policy-options policy-statement advertise-routes-through-rip term 1 from interface [ fe-1/2/0.2 fe-1/2/1.5 ]
set policy-options policy-statement advertise-routes-through-rip term 1 from interface [ fe-1/2/0.2 fe-1/2/1.5 ]
=============================================================================
if you do not want to advertise connected routes from a specific interface like the lo0 then:
set policy-options policy-statement advertise-routes-through-rip term 0 from interface lo0.0
set policy-options policy-statement advertise-routes-through-rip term 0 from protocol direct
set policy-options policy-statement advertise-routes-through-rip term 0 then reject
set policy-options policy-statement advertise-routes-through-rip term 1 from interface [ fe-1/2/0.2 fe-1/2/1.5 ]
set policy-options policy-statement advertise-routes-through-rip term 1 from interface [ fe-1/2/0.2 fe-1/2/1.5 ]