[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Force viewing of web page



Hi,

What about forcing the home-page on the browser? Not full-proof but youre
sure the user sees this page a-lot!

Yours,
Nico de Haer

----- Original Message -----
From: Miquel van Smoorenburg <miquels@cistron-office.nl>
To: <debian-user@lists.debian.org>
Sent: Monday, July 30, 2001 2:20 PM
Subject: Re: Force viewing of web page


> In article <[🔎] 20010730210456.46371.qmail@web12707.mail.yahoo.com>,
> Matheson Cameron  <cmatheson3@yahoo.com> wrote:
> >I'm doing this thing on my network, and I was told
> >that I need to find a way to force people to view our
> >webpage everytime they log onto the network (or use
> >the internet, to be more specific).  Anyway, I was
> >wondering if their was a way to force Apache (or
> >something else) to just send our web-page down once a
> >connection was established.
>
> There is no way for apache to magically know that a user has
> started a browser, nor is there a way to 'send' a webpage to
> a user, nor is there really a concept of an 'internet session'.
>
> You will have to force all users to use a proxy server, for example
> squid or the apache proxy module.
>
> Then you will have to figure out a way to let people 'log on' to
> the proxy server, and show a default page if they are not 'logged on'
>
> I don't think there's a standard package to do this - with squid
> you could probably write a special redirector module in perl that
> redirects all URLs to one page, and from there a CGI script would
> run that would put the users IP address in a .db DBM database
> which the redirector would read - if the IP address is in the
> .db database, don't redirect. Also put a timestamp in the database,
> refresh it for every access, and if it's older than 1 hour, invalidate
> the entry.
>
> But it's going to take some custom programming.... I'd say one
> or two hours for a squid & perl guru, a few days to a week for
> someone who is new to squid and redirector modules, a few months
> if you have to learn to program first ;)
>
> Mike.
> --
> "dselect has a user interface which scares small children"
> -- Theodore Tso, on debian-devel
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Reply to: