Hi zalagan80,
i think you search something like a combination from route-map and "set tag".
So you can do the following (only for one direction):
RIP > OSPF redistribution
route-map rip-outbound-filter permit 10
set tag rip
router rip
redistribute .... route-map rip-outbound-filter
OSPF < RIP
route-map ospf-inbound-filter deny 10
match tag rip
route-map ospf-inbound-filter permit 20
!
router ospf 1
distribute-list route-map ospf-inbound-filter in
Or you check if it possible for you to move the ospf area 0 to the actually rip devices and
set the actually ospf area to a different one and distribute only a summary route into the
new ospf area 0. Or or or...
Best regards