Set URL request length in Nginx reverse proxy

Igor Sysoev igor at sysoev.ru
Tue Nov 24 14:30:43 MSK 2009


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/




More information about the nginx mailing list