I want my login form will not appear to the end user it should display to admin only when url is
http://localhost/drupal/admin/* but currently this is not so login is appearing to everyone who visit the site.

Comments

tinycg’s picture

I'm not aware of it ever working for me to force the block just to show on the admin side to an unauthenticated anonymous user, what I do is disable the login block and have the user or admin go to /drupal/user to login. Then they will be on the admin side, logged in under their user role and you can now control what blocks the user or admin has use of. The problem with doing it with an unauthenticated user is that everyone is 'anonymous'. Since they aren't logged in you can't really know who they are.

Once logged in you could tell drupal that admin users can see x, y, and z blocks... but a regular user can see only x. Useful for not making drupal so scary to people. hehe.

sangamreddi’s picture

You can login by accessing to the url like this.
http://localhost/drupal/user
Once logged in you can enable the login block if U wish.

Sunny                      
www.gleez.com | www.sandeepone.com

Ritu-2’s picture

Thanx Sandeep,

this works for me,