Abstract-Software design patterns provide a proven and comprehensive solution for a series of problems that designers confront with them. Web security becomes a critical issue in the online environments. Many techniques strive to achieve web applications to acceptable level of confidence. One of the useful behavioral design patterns is the chain-of-responsibilities pattern that includes several command objects in a series of processing objects. There is a set of logic in each processing object that can handle a command and transfer it to the next processing object. This series of processing objects is stable, and also, the position of each ring in the chain is unchangeable. In this paper, a dynamic chain of responsibilities design pattern that provides a new mechanism for enhance flexibility in security of web application would be presented.