# Time related conditions

**URL:** <https://www.ruby-forum.com/t/time-related-conditions/190626>\
**Category:** NGINX\
**Created:** [June 24, 2010, 5:09am UTC](https://www.ruby-forum.com/t/time-related-conditions/190626 "2010-06-24T05:09:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mauro\_Stettler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/898d66/32.png) [@Mauro\_Stettler](https://www.ruby-forum.com/u/Mauro_Stettler)\
**Post date:** [June 24, 2010, 5:09am UTC](https://www.ruby-forum.com/t/time-related-conditions/190626/1 "2010-06-24T05:09:37Z")

</div>

hi

we are looking for a way to change the nginx’s behavior if certain  
conditions related to time are met. like for example if one source ip  
requests more than 10 times a minute we would like to redirect it to  
somewhere else. or also if one certain cookie from a client gets  
received more than x times per x seconds we would like to deliver an  
alternative page. is there any way how nginx can do things like this?  
if not i might start to write a module to provide this kind of  
behavior, since i think it’s probably not very hard to implement.

thanks,

mauro
