Re: Reg: Forcing first-time clients to acknowledge a page before accessing the webpage requested per session

Ramesh GK <[email protected]> Mon, 25 Jan 2021 19:08:22 +0000
Newsgroups gmane.comp.web.privoxy.user
Message-ID <MN2PR07MB69424158CF48A0D3414C04A4EDBD9@MN2PR07MB6942.namprd07.prod.outlook.com>
Thanks for your help, Fabian.

I will have a check on this solution too.

Thanks
Ramesh GK
Phone: 408-462-0408

Strive not to be a success but rather to be of value - Albert Einstein

________________________________
From: Fabian Keil
Sent: Friday, January 22, 2021 8:48 AM
To: Ramesh GK
Cc: [email protected]
Subject: Re: [Privoxy-users] Reg: Forcing first-time clients to acknowledge a page before accessing the webpage requested per session

Ramesh GK <[email protected]> wrote on 2021-01-19:

> I am trying to use privoxy for a project and have a question on how we
> can force first-time clients to acknowledge a page before accessing the
> webpage requested per session. This is more of an acknowledgement page
> and once accepted, the client can browse the internet with rest of the
> filters applied as long as the session exists. I am assuming that this
> can be a cookie based solution but looking for some help on how to do
> this within privoxy.

It doesn't involve cookies but you could redirect all requests
to http://config.privoxy.org/client-tags, modify the client-tags
template to contain whatever the user is supposed to see and add
a client-specific tag that disables the redirect.

https://www.privoxy.org/user-manual/actions-file.html#REDIRECT
https://www.privoxy.org/user-manual/config.html#CLIENT-SPECIFIC-TAG

You may want to restart Privoxy occasionally so it clears the
client tag state.

Fabian