protection of directories

Markus Schaber markus at schabi.de
Sun Aug 12 14:03:04 EDT 2001


Hi,

Alexander Rebholz <alexander.rebholz at monkey-design.de> schrub:

> I don't  know  nothing at all about python. Unfortunately I have to
> modify a pyhton script anyhow. The problem is the following. A user
> has to fill out a form which will also ask for a password. That form
> is forwarded to a pyhton script. With this script the filled out
> content of the form is forworded via email. Furthermore if the
> password is correct the user will get access to certain directories.
> Well now the problem: If a user knows the correct link of the
> "password protected" directory, he can get there without filling out
> the form. So I guess I do need a script which will check out whether
> the user did fill out the form before. Can that be done with python?
> Or is there any other simple solution?

I assume you talk about http access to a webserver. 

In the case you use apache, .htaccess is the right place to look, you 
can configure there that the user has to supply username and password.

markus
-- 
1) Customers cause problems.
2) Marketing is trying to create more customers.
Therefore:
3) Marketing is evil.  (Grand Edwards in comp.lang.python)



More information about the Python-list mailing list