Time restricted access to folder?

Ask a Question related to Linux / Unix Administration, Design and Development.

  1. #1

    Default Time restricted access to folder?

    Hello

    I wonder if there is a way when using .htaccess /.htpasswd to restrict
    access to a web site folder for a limited time, eg 0.5 hr?

    Cheers

    Geoff

    Geoff Cox Guest

  2. Similar Questions and Discussions

    1. Restricted access
      Yes, put the files outside of web root or protect them using .htaccess file. After authorization use readfile90 to serve the file. There are lots...
    2. Webservice with restricted ip access
      I've consumed a webservices that will only accept connection from my servers IP address and a password. When I run the file locally on the server...
    3. how to time limit folder access?
      Hello I would like to be able to time limit user access to a folder ... any ideas on how to do this? can .htaccess etc be used? Cheers Geoff
    4. Problem with web.config access-restricted subdirectory
      Hi, I have a problem with web.config unsuccessfully controlling access to a subdirectory. I'm using VS03 and IIS5.0 on NT2K. I have been able...
    5. Unable to access Tools/Internet Optios in I.E. - Restricted
      Am using XP-Pro with two accounts the first as an administrator and the second as a user (Both accounts having different names) While using I.E...
  3. #2

    Default Re: Time restricted access to folder?

    Geoff Cox wrote:

    Hello Geoff,
    > I wonder if there is a way when using .htaccess /.htpasswd to restrict
    > access to a web site folder for a limited time, eg 0.5 hr?
    not directly but if you can start programs automatically (cron or
    something similar) you could modify the entries in the .htpasswd file
    after 30 minutes, thereby forcing a reauthentication.

    --
    Klaus Johannes Rusch
    [email]KlausRusch@atmedia.net[/email]
    [url]http://www.atmedia.net/KlausRusch/[/url]


    Klaus Johannes Rusch Guest

  4. #3

    Default Re: Time restricted access to folder?

    On Mon, 02 Feb 2004 12:28:34 -0800, "Michael Vilain
    <vilain@spamcop.net>" wrote:

    >I'd create a totally separate directory with only what you want to have
    >time-sensative access to. That means a separate .htaccess file with
    >it's own password file. The at job would run htpasswd to reset the
    >password to some random value or remove the user entirely from the
    >password file.
    Michael

    this sounds useful - are you able to give me or point me at any
    details on how to implement this?!

    Geoff

    Geoff Cox Guest

  5. #4

    Default Re: Time restricted access to folder?

    In article <vilain-4CCE51.11474903022004@comcast.ash.giganews.com>,
    "Michael Vilain wrote:
    >1) user fills in information into web form and clicks "Submit" button
    >2) CGI script creates temporary directory which is accessible to
    > web server (e.g. a Alias directive is in httpd.conf for it)
    >3) script copies files (including .htaccess) into temporary directory
    >4) script runs htpasswd to create user and password file referenced by
    > .htaccess file
    >4) script creates "at" job which will use htpasswd to change
    > password for user after 30 minutes
    Why not have the CGI directly show and refuse to show the content -
    thereby avoiding all the external commands ?

    --
    Elvis Notargiacomo [url]http://www.sendacow.org.uk/homepage.html[/url]
    all mail refused Guest

  6. #5

    Default Re: Time restricted access to folder?

    On 3 Feb 2004 22:16:22 GMT, [email]elvis@notatla.org.uk[/email] (all mail refused)
    wrote:
    >In article <vilain-4CCE51.11474903022004@comcast.ash.giganews.com>,
    >"Michael Vilain wrote:
    >
    >>1) user fills in information into web form and clicks "Submit" button
    >>2) CGI script creates temporary directory which is accessible to
    >> web server (e.g. a Alias directive is in httpd.conf for it)
    >>3) script copies files (including .htaccess) into temporary directory
    >>4) script runs htpasswd to create user and password file referenced by
    >> .htaccess file
    >>4) script creates "at" job which will use htpasswd to change
    >> password for user after 30 minutes
    >
    >Why not have the CGI directly show and refuse to show the content -
    >thereby avoiding all the external commands ?
    Elvis and Michael

    thanks to you both - will investigate further...

    Cheers

    Geoff
    Geoff Cox Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139