**Is your feature request related to a problem? Please describe.** Many frameworks have guards for security **Describe the solution you'd like.** Proposed to implement it as a middleware **Describe alternatives you've considered** We can also implement it as a standalone middleware