endopeptidase inhibitor activity [GO_0004866] - Virtual Fly Brain