Welcome! Log In Create A New Profile

Advanced

Re: Set URL request length in Nginx reverse proxy

Igor Sysoev
November 24, 2009 06:38AM
On Tue, Nov 24, 2009 at 06:05:42AM -0500, himesh wrote:

> Thanks Igor,
>
> But i just want my users to enter less that 70 characters into the url, is there any way i can enforce this form Nginx, may be using the &http_referer or the $request_length.. please advice..

You may try

server {

if ($request_uri ~ .{70,}) {
return 403;
}


--
Igor Sysoev
http://sysoev.ru/en/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Set URL request length in Nginx reverse proxy

himesh November 24, 2009 12:24AM

Re: Set URL request length in Nginx reverse proxy

himesh November 24, 2009 01:21AM

Re: Set URL request length in Nginx reverse proxy

Igor Sysoev November 24, 2009 03:24AM

Re: Set URL request length in Nginx reverse proxy

himesh November 24, 2009 06:05AM

Re: Set URL request length in Nginx reverse proxy

Igor Sysoev November 24, 2009 06:38AM

Re: Set URL request length in Nginx reverse proxy

himesh November 24, 2009 07:17AM

Re: Set URL request length in Nginx reverse proxy

Nick Pearson November 24, 2009 10:06AM

Re: Set URL request length in Nginx reverse proxy

himesh November 25, 2009 12:02AM

Re: Set URL request length in Nginx reverse proxy

agentzh November 25, 2009 12:32AM

Re: Set URL request length in Nginx reverse proxy

himesh November 25, 2009 01:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 185
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready