Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: (nrd) Changing the address line/location bar

by newrisedesigns (Curate)
on Feb 28, 2003 at 18:21 UTC ( #239501=note: print w/ replies, xml ) Need Help??


in reply to Changing the address line/location bar

Obscurity does not equal security.

Use Apache's basic authentication, or a CGI script.

#Psuedo Code my $q = CGI->new(); if($q->param("password") eq "my password"){ my $base_dir = '../secure_docs/'; my $requested_file = $q->param("file") || ''; if($requested_file =~ /(\w+)/){ $requested_file = $1 . '.html'; } else{ exit; } my file = $base_dir . $requested_file; if(-e $file){ open($fh, $file); print while <$fh>; close $fh; } } else{ exit; } # of course, there are other/better ways...

Hope this helps.

John J Reiser
newrisedesigns.com


Comment on Re: (nrd) Changing the address line/location bar
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://239501]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2014-09-23 15:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (225 votes), past polls