Is it possible to use distribute-list command to filter routes in OSPF?

Configuring distribute-list commands that utilize route maps will not achieve desired Link State Advertisement (LSA) filtering. Open Shortest Path First Protocol (OSPF) routes cannot be filtered from entering the OSPF database using distribute-list. The distribute-list in command only filters routes from entering the routing table, and it does not prevent LSA packets from being propagated.

The Route map can be used to filter routes in OSPF. Route map can be based on those parameters such as

-match interface
-match ip address
-match ip next-hop
-match ip route-source
-match metric
-match route-type
-match tag