1
LupusC
No login on frontpage
  • 2005/4/13 16:37

  • LupusC

  • Just popping in

  • Posts: 26

  • Since: 2005/4/13


Hi,

I have to build a site where only administrators and special user who enter the artcles may login.

Is there a way to supress the login on the frontpage and make a secured directory (with .htaccess) for the administrator to log in?

thx LupusC

2
ackbarr
Re: No login on frontpage

not using .htaccess, no, but you can disable the login block, then access the site by going to:

http://yoursite.com/user.php

3
LupusC
Re: No login on frontpage
  • 2005/4/14 8:19

  • LupusC

  • Just popping in

  • Posts: 26

  • Since: 2005/4/13


Thanks for your answer.

OK, disabling the login block. But the users.php, admin.php and register.php is furthermore accessible for all.

With a .htaccess file I can limit the use of these three files to certain users:

AuthType Basic
AuthName 
"Service-Area"
AuthUserFile /var/spool/totallysecret/.htusers
<Files user.php>
   require 
user  user1 reporter1 reporter2
</Files>
<
Files admin.php>
   require 
user  user1 reporter1 reporter2
</Files>
<
Files register.php>
   require 
user  user1 reporter1 reporter2
</Files>

These limits the access to the three files to the users user1, reporter1 and reporter2.

cu LupusC