One way of doing route filtering with external-resources in practice is using Routing Policy Specification Language in combination with Internet Routing Registry databases.
In the context of practical route filtering, using Routing Policy Specification Language in conjunction with Internet Routing Registry databases is a common method.