protect one page/structurelevel

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
volkman
Posts: 179
Joined: Wed 13. Jul 2005, 12:52
Location: Hamburg, Germany

protect one page/structurelevel

Post by volkman »

In pure html-file-enviroments I used a combination of .htaccess and .htusers to protect a single page of my website.

something like

Code: Select all

AuthType Basic
AuthName "secret area"
AuthUserFile /path/to/userfile/.htusers
 <Files secretpage.html>
  require user paul
 </Files>
in my .htaccess made the dialog pop up and grant access if username and password were ok. This seems not to work with php/mysql-driven sites.

I don't need a shiny-sexy user-management just want to make sure that one single page/structure in my phpwcms-installation could only be accessed after authentification, no user-management, no phpwcms-integration.
Tried the above example with "index.php?structurealias" or "index.php?id=102,0,0,1,0,0" instead of "secretpage.html". Did not work at all.

Any ideas for a solution is greatly appreciated

thx in advance

volkman
Post Reply