Limit Number of Requests for an IP

I have a strapi app in which there is a collection called Page and I want to limit the number of requests to /pages . I know there is a rateLimit middleware but how do i use it and change its default limit interval and max values.

  • Strapi Version: 4.5.1
  • Operating System: Windows 11
  • Database: postgres