[plug] Apache Server Client User Aggreement
Craig Ringer
craig at postnewspapers.com.au
Sun Nov 7 20:12:38 WST 2004
On Sun, 2004-11-07 at 19:46, Craig Ringer wrote:
> On Sun, 2004-11-07 at 19:27, Timothy White wrote:
> > I would like to set up my Apache server so that it displays a
> > 'conditions of use' message that the user most accept before using the
> > server. Like /etc/issue and /etc/issue.net (for ssh)
> > Is this possible and easy or should I write a PHP script of some sort?
> > (e.g. Have it password protected and the PHP script hands out the
> > password to those who agree to the conditions)
>
> Sure, your PHP approach would work - the PHP script would accept input
> from a static HTML form, validate it, and display the result.
> Alternately, you could use a cookie to mark hosts that have accepted
> (though users who reject cookies by default will be denied access until
> they add an exception for your server).
I should note that I was (probably incorrectly) writing under the
assumption that you plan to "protect" the entry page only. This would be
far from secure, but it depends on your goals whether or not it's
acceptable. With a referer check it might be alright.
James presents a much more comprehensive approach to the problem and a
different interpretation of the question - almost certainly a more
useful one.
Depending on what you need to do, mod_rewrite may also be useful to you.
--
Craig Ringer
More information about the plug
mailing list