Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
Hello, Create a "peer-group" where you will add those two AS to the peer-group. And apply "mhnedirli" solution above...and use : neighbor <peer-group-name> route-map BLOCK out