# Nginx - Match Client Language

**URL:** <https://www.ruby-forum.com/t/nginx-match-client-language/186125>\
**Category:** NGINX\
**Created:** [March 31, 2010, 10:23pm UTC](https://www.ruby-forum.com/t/nginx-match-client-language/186125 "2010-03-31T22:23:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Payam\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/59ef9b/32.png) [@Payam\_C](https://www.ruby-forum.com/u/Payam_C)\
**Post date:** [March 31, 2010, 10:23pm UTC](https://www.ruby-forum.com/t/nginx-match-client-language/186125/1 "2010-03-31T22:23:57Z")

</div>

Hi Guys,

Anyone know what variable to search for and match against User/Client  
Browser Language?  
Say i want to drop everyone that has browser lang set to US or  
something.

Thanks in advance, i should be able to figure this out but i cant recall  
which $var holds this data… did not work with user-agent obviously heh

Thanks  
Payam

---

<div class="post-metadata">

**Author:** ![Payam\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/59ef9b/32.png) [@Payam\_C](https://www.ruby-forum.com/u/Payam_C)\
**Post date:** [March 31, 2010, 10:33pm UTC](https://www.ruby-forum.com/t/nginx-match-client-language/186125/2 "2010-03-31T22:33:19Z")

</div>

Maxim D. wrote:

> > 
> 
> * * *
> 
> nginx mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [mailman.nginx.org archive](http://nginx.org/mailman/listinfo/nginx)

As always, you are awesome! thanks Maxim

-Payam

---

<div class="post-metadata">

**Author:** ![Payam\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/59ef9b/32.png) [@Payam\_C](https://www.ruby-forum.com/u/Payam_C)\
**Post date:** [March 31, 2010, 10:29pm UTC](https://www.ruby-forum.com/t/nginx-match-client-language/186125/3 "2010-03-31T22:29:13Z")

</div>

Hello!

On Wed, Mar 31, 2010 at 01:22:56PM -0700, Payam C. wrote:

> Hi Guys,
> 
> Anyone know what variable to search for and match against  
> User/Client Browser Language?  
> Say i want to drop everyone that has browser lang set to US or something.
> 
> Thanks in advance, i should be able to figure this out but i cant  
> recall which $var holds this data… did not work with user-agent  
> obviously heh

> **[RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1 | RFC Editor](https://www.rfc-editor.org/info/rfc2616/)**
>
> HTTP has been in use by the World-Wide Web global information initiative since 1990. This specification defines the protocol referred to as "HTTP/1.1", and is an update to RFC 2068. \[STANDARDS-TRACK\]

> **[GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki...](https://github.com/nginxinc/nginx-wiki)**
>
> ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com

Maxim D.
