how to reject connected routes in ospf

Hi everyone
I have a Mikrotik 4011 router with version 7.8
I want to reject two IP ranges in OSPF
IP range which is ospf protocol is rejected
But the IP range that is the connected protocol is not rejected
Can anyone guide me?
Rules.JPG
Routes.JPG

output filter does not filtering your incoming routes

But it is working for one of the IP ranges
Look at these pictures
after.JPG
Before.JPG