Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Anonymous (guest) access using HTACCESS
January 26, 2007, 6:11 pm
rate this thread
Is it possible to have one file (perl script) that is available for
BOTH logged-in users AND non-logged in "guests"?
The Perl script could then simply reveal the extra, sensitive
information, only when the environment variable $ENV is
defined (i.e., not null).
The point is, I don't want to write two separate (yet, almost
identical) versions of the script; one full access, and one restricted
access. Is it possible to configure the .htaccess file to both "require
valid-user" and allow anonymous access? I've heard of an "Everyone"
group. How does this work?
Btw, I don't have root access to the server, so I can't change stuff in
Apache-files, or restart the server...
Hope someone can help :)
Re: Anonymous (guest) access using HTACCESS
You probably mean REMOTE_USER ?
Simple answer to that one: create a module, or maybe better: create two.
One base module with basic for all functionality, and one that inherits
and adds extra functionality for logged in users. That way you don't risk
a user not logged in finding a backdoor into the secure part.
John Need help with SEO? Get started with a SEO report of your site:
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum