Re: [users@httpd] access control based on time of day

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

 



On Sunday 29 January 2006 03:53, McDouglas wrote:
> Hi,
>
> I have some trouble figuring out how to set up apache to allow remote users
> to request pages only at a given time of day.
>
> I've read the documentations of mod_access and mod_auth, but could not find
> any information.
>
> "Access can be granted or denied based on a wide variety of criteria, such
> as the network address of the client, the TIME OF DAY, the phase of the
> moon, or the browser which the visitor is using."
> (http://httpd.apache.org/docs/1.3/howto/auth.html)
>
> After reading this, I hoped it is possible to do. Any ideas?

It's possible.  You need a Require directive that'll look something like

Require time 09:00-17:00

But - you need a module to do it.  I wrote a module to permit access
according to day-of-the-week as a simple example for the modules book.
If you're happy hacking C, I'm happy to let you have that as a startingpoint.

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux