Welcome! Log In Create A New Profile

Advanced

Re: Protect link with cookies?

June 09, 2009 08:22AM
On Tue, Jun 09, 2009 at 01:30:50PM +0200, Artifex Maximus wrote:

> Hello!
>
> I am pretty newbie to nginx and having problem on protecting my links.
> I am using valid_referers but is it possible using cookies for make it
> stronger?
>
> For example I set cookie uid with nginx's userid in 'location / {}'
> and check somehow under 'location /download/ {}' for cookie uid. Is it
> possible or just a dream? Userid was just an idea and not necessary.
> And any other ideas are welcome as well because cheating referer is
> easy task.

location /download/ {
if ($cooke_NAME = '') {
return 403;
}
}

--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

Protect link with cookies?

Artifex Maximus June 09, 2009 07:30AM

Re: Protect link with cookies?

Igor Sysoev June 09, 2009 08:22AM

Re: Protect link with cookies?

Artifex Maximus June 09, 2009 08:48AM

Re: Protect link with cookies?

Artifex Maximus June 10, 2009 06:16AM

Re: Protect link with cookies?

merlin corey June 10, 2009 05:53PM

Re: Protect link with cookies?

Artifex Maximus June 11, 2009 06:11AM

Re: Protect link with cookies?

merlin corey June 11, 2009 05:58PM

Re: Protect link with cookies?

Artifex Maximus June 12, 2009 05:33AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 236
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