title: PHP - How to rate limit an API?
body: <p>I have a custom api page. How can I limit the number of requests by IP address?</p>
  
  <p>I need some examples in PHP, I'm not too experienced with this.</p>
  
  <p>I'm running an apache2 server. </p>