# Traffic limiting

**URL:** <https://www.ruby-forum.com/t/traffic-limiting/189181>\
**Category:** NGINX\
**Created:** [May 26, 2010, 8:36am UTC](https://www.ruby-forum.com/t/traffic-limiting/189181 "2010-05-26T08:36:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [May 26, 2010, 8:36am UTC](https://www.ruby-forum.com/t/traffic-limiting/189181/1 "2010-05-26T08:36:25Z")

</div>

Hi

I have this one very popular site configured go thru nginx reverse proxy  
and its so popular that it takes lots of bandwidth and we are now need  
to  
limit traffic.

It seems there is limit modules in nginx but examples are per user  
limit,  
but that does not help us because thats the problem here, several  
hundred  
thousands users are requesting one particular xml file. So i think  
limiting per user limit does not limit bandwidth at all, i need to limit  
request to that one file per all users. So any help can i use nginx  
limit  
zone or req\_limit\_zone in this case, is there some $session\_variable  
what  
i can use here instead of binary\_remote\_address?

Terveisin/Regards,  
Pekka Panula, Sofor Oy - Jatkuvat palvelut
