Click here to get back home

Anonymous (guest) access using HTACCESS

 HomeNewsGroups | Search | About
 alt.www.webmaster    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Anonymous (guest) access using HTACCESS joakim.grahl 01-26-2007
Posted by joakim.grahl on January 26, 2007, 1:11 pm
Please log in for more thread options


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 :)


Posted by John Bokma on January 26, 2007, 1:55 pm
Please log in for more thread options


joakim.grahl@gmail.com wrote:

> 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).

You probably mean REMOTE_USER ?

> 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.

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:

--> http://johnbokma.com/websitedesign/seo-expert-help.html

Similar ThreadsPosted
Court rules in favor of anonymous blogger for keeping his identity anonymous October 6, 2005, 12:25 pm
Anonymous Surfing - Free Anonymous Proxy- Surfing7.com November 19, 2007, 12:57 pm
Restrict File Access using .htaccess ? September 20, 2006, 4:55 pm
Controlling access via specific referrer (htaccess)? September 27, 2008, 4:15 am
List of anonymous forums October 4, 2005, 4:30 pm
Anonymous SMTP Server October 9, 2005, 2:15 pm
anonymous forums on google October 22, 2005, 6:30 pm
Post Your Anonymous Online Secrets July 17, 2006, 6:47 pm
Guest Book - would this be foolproof? May 23, 2006, 6:29 am
New Free Anonymous Proxy Server - HideGlobal.com November 13, 2007, 2:50 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap