Welcome! Log In Create A New Profile

Advanced

Re: How to use cookie for request/conection limiting

October 31, 2009 06:02PM
anomalizer Wrote:
-------------------------------------------------------

> >Genuine users of specific application - this why
> I though that session
> >should be most reliable way. The other option is
> to limit by IP but
> >AFAIU this is not good in case several users are
> connecting from behind
> >the same proxy. Could you recommend other
> options?
>
> You need some sort of a way to ensure that the per
> user token (in this
> case session id in a cookie) was actually issued
> by you.

The web application which I need to throttle is a php one. I'm not a php coder and only slightly familiar with php - can I assign a custom algorithm to php session id generation?
Also how can I verify the session id inside nginx? Should I write a special verification code in nginx embedded perl?

> The token
> should have the following properties:
>
> * Computationally inexpensive to check if you had
> issued the token
>
> * Computationally prohibitive for others to create
> a token that will
> pass the test above
>
>
> Failure to produce a legitimate toke by the user
> shoudl result in a HTTP
> 403

Now that I think about cookie based limiting again - it's not clear to me how new client connections will be handled, by
the connection/request limiting modules, before the application assigns them a valid cookie?

Thanks
Subject Author Posted

How to use cookie for request/conection limiting

piavlo October 29, 2009 08:20PM

Re: How to use cookie for request/conection limiting

Igor Sysoev October 30, 2009 02:38AM

Re: How to use cookie for request/conection limiting

piavlo October 30, 2009 06:24PM

Re: How to use cookie for request/conection limiting

Maxim Dounin October 30, 2009 09:08PM

Re: How to use cookie for request/conection limiting

piavlo October 31, 2009 06:27PM

Re: How to use cookie for request/conection limiting

Maxim Dounin November 01, 2009 06:22AM

Re: How to use cookie for request/conection limiting

anomalizer October 30, 2009 01:26PM

Re: How to use cookie for request/conection limiting

piavlo October 30, 2009 06:21PM

Re: How to use cookie for request/conection limiting

anomalizer October 31, 2009 09:36AM

Re: How to use cookie for request/conection limiting

piavlo October 31, 2009 06:02PM

Re: How to use cookie for request/conection limiting

anomalizer November 03, 2009 01:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 224
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready