(E-Mail Removed) (Adam De Paolis) wrote in message news:<(E-Mail Removed). com>...
> Hello All,
>
> We would like to install a legal disclaimer that a guest using our
> internet service is forced to agree to before continung to browse the
> internet.
>
> For example, when a person plugs his computer into our internet and
> starts his/her browser, a message is displayed and the user has to
> click on agree to continue to whatever website they wish to access.
>
> I was thinking of perhaps some sort of proxy server like squid, but
> wasnt sure.
>
> Anybody have any ideas?
sounds like you'd want to use squid with transparent proxy turned on.
i'm assuming you are running linux.
use iptables to redirect port 80 traffic to the squid port, and then
make sure squid is is config'd for transparent proxy.
iptables + squid is pretty common and well documented, so you shouldnt
have trouble.
well, after that i'd guess you'd have to rtfm on squid and probably
hack a few small shell scripts.
i'd think that you'd touch a file (eg. /tmp/.UNIQUE_SESSION_MACADDR)
that squid would check for. if it was there, it would let the session
go through. if it wasnt there, it would redirect them to the "do you
accept these policies" page, and when they click yes, a cgi creates
the session file. you could then have cron go through every 5 minutes
and delete session files that created more than an hour ago.
anyway, just some random thoughts.