OSPF - distribute-list filtering
It is not possible to filter routes between OSPF routers that are in the same area. However, it is possible to prevent certain routes from being installed in the local Routing Table. This can be done using distribute-lists.
Links
https://forum.networklessons.com/t/ospf-distribute-list-filtering/1258/12?u=lagapides
https://networklessons.com/ospf/ospf-distribute-list-filtering