in ospf you can summarize routes int ASBR or ABR routers when send routes into area 0.
on ASBR you can use summary address [prefix] [mask] command.
you can add other paramether: not-advertise
on ABR you can use area [x] range [prefix] [mask] command.
you can add other paramethers advertise, not-advertise and cost.
If you use this aggregation methods your router will suppress all of the specific routes which are included into summary.