Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl
acces control via cookies for webdirectories
 

Index | Next | Previous | View Flat


timon.roth at digitalforce

Mar 14, 2012, 12:49 AM


Views: 397
Permalink
acces control via cookies for webdirectories

hello list

i try to figure out, how to protect webspace with mod_perl. the
situation is like this:

someone wants to access a certrain file on the webserver. if he have a
cookie set, this one will be validatet by a remote database and,
if the database allow the access, the access to the directory will be
allowed.

i tryed it with the <location /custom-content>-directive like this:

<Location /custom-content>
SetHandler perl-script
PerlHandler Test::MyAccess
</Location>

in the module i figure out the cookie from the %ENV-hash, validate it
and i can make a decision, if the request is allowed or not.

my problem now is, of i redirect th the directory, the access-process
falls into an infinte loop..:-(

i would like to shown now the content of this directory and even more,
php-scripts in it must then be displayed and executed, and sent back to
the client.

thanks for your help and any ideas!

gruess from switzerland,
timon
--
Timon Roth, Triemlistrasse 92, 8047 Zürich
+4143 8174031,+4179 6365728, skype: timon.roth
timon.roth [at] digitalforce, www.digitalforce.ch
http://tel.search.ch/zuerich/triemlistrasse-92/timon-roth

Subject User Time
acces control via cookies for webdirectories timon.roth at digitalforce Mar 14, 2012, 12:49 AM
    RE: acces control via cookies for webdirectories jnarins at seniorbridge Mar 14, 2012, 7:28 AM
    Re: acces control via cookies for webdirectories vv.lists at wanadoo Mar 20, 2012, 10:46 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.