serine-type endopeptidase inhibitor activity [GO_0004867] - Virtual Fly Brain